aglinxinyuan opened a new issue, #9327:
URL: https://github.com/apache/texera/issues/9327

   ### Task Summary
   
   In 
`common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/sklearn/`,
 test suites for Sklearn classifier operator descriptors 
(`SklearnKNNOpDescSpec`, `SklearnSVMOpDescSpec`, `SklearnLinearSVMOpDescSpec`, 
`SklearnExtraTreeOpDescSpec`, and `SklearnSDGOpDescSpec`) duplicate ~85% 
verbatim assertions across:
   1. `operatorInfo` port shape and blocking status checks.
   2. Default property values (`countVectorizer`, `tfidfTransformer`, `target`, 
`text`).
   3. Standard output schema validation (`model_name: STRING`, `model: BINARY`).
   4. Python code generation validation (`sklearn.pipeline.make_pipeline`, 
estimator import, model name).
   5. Polymorphic JSON round-trip serialization via `objectMapper`.
   
   Extract shared descriptor test assertions into a parameterized fixture/trait 
in the test package to eliminate duplicate test setup and assertions across all 
five specifications while keeping every test contract intact.
   
   ### Task Type
   
   - [x] Refactor / Cleanup
   - [x] Testing / QA
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to