The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5945-abbe7a30244d6e50bc5ce7a89befcbc7a9d31c28
 has succeeded.
Run started by GitHub user xuang7 (triggered by xuang7).

Head commit for run:
0c179ce6af7129442091fdda8d76ab3dc1e08fb7 / Xinyuan Lin <[email protected]>
test(workflow-operator): add unit test coverage for Sklearn SVM and neighbor 
classifier descriptors (#5945)

### What changes were proposed in this PR?

Pin behavior of four previously-untested Sklearn support-vector and
neighbor classifier descriptors in `common/workflow-operator`. No
production-code changes.

| Spec | Source class | Tests |
| --- | --- | --- |
| `SklearnSVMOpDescSpec` | `SklearnSVMOpDesc` | 5 |
| `SklearnLinearSVMOpDescSpec` | `SklearnLinearSVMOpDesc` | 5 |
| `SklearnKNNOpDescSpec` | `SklearnKNNOpDesc` | 5 |
| `SklearnNearestCentroidOpDescSpec` | `SklearnNearestCentroidOpDesc` |
5 |

**Behavior pinned**

| Surface | Contract |
| --- | --- |
| `operatorInfo` | exact model name + `Sklearn <name> Operator`
description; Sklearn group; training/testing input ports + one blocking
output |
| field defaults | `countVectorizer`/`tfidfTransformer` `false`;
`target`/`text` `null` |
| `getOutputSchemas` | `model_name` (STRING) + `model` (BINARY) keyed by
the declared output port |
| `generatePythonCode` | imports the matching sklearn estimator and
builds the `make_pipeline` model |
| Round-trip | config fields preserved through the polymorphic
`LogicalOp` base, with the correct `operatorType` discriminator |

### Any related issues, documentation, discussions?

Part of the ongoing `workflow-operator` unit-test coverage effort
(follow-up to the Sklearn classifier coverage in #5925, #5939, #5940,
#5941).

### How was this PR tested?

- `sbt "WorkflowOperator/testOnly *SklearnSVMOpDescSpec
*SklearnLinearSVMOpDescSpec *SklearnKNNOpDescSpec
*SklearnNearestCentroidOpDescSpec"` — 20 tests, all green
- `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt
"WorkflowOperator/scalafixAll --check"` — clean
- CI to confirm

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8 [1M context])

Report URL: https://github.com/apache/texera/actions/runs/28185066756

With regards,
GitHub Actions via GitBox

Reply via email to