The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
ef0634def01bbf820708be74075708dcd9091d36 / Xinyuan Lin <[email protected]>
test(workflow-operator): pin Sklearn OpDesc registry strings (#4827)

### What changes were proposed in this PR?

Add `SklearnOpDescRegistrySpec` covering every concrete
`SklearnClassifierOpDesc` (24 subclasses) and `SklearnTrainingOpDesc`
(26 subclasses) with the exact `(importStatement,
userFriendlyModelName)` pair each one returns. A typo in either string
would silently misroute either the generated Python pipeline or the
user-facing UI label; pinning them in one table makes that a test
failure.

Also covers:
- `SklearnClassifierOpDesc` base default (empty strings)
- `SklearnTrainingOpDesc` base default (RandomForest)
- `generatePythonCode` smoke test for a classifier (`UDFOperatorV2`) and
a training (`UDFTableOperator`) subclass, verifying the import string is
embedded

### Any related issues, documentation, discussions?

Closes #4826

### How was this PR tested?

`sbt "WorkflowOperator/testOnly
org.apache.texera.amber.operator.sklearn.SklearnOpDescRegistrySpec"` —
104/104 tests pass.

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

Generated-by: Claude Code (Claude Opus 4.7)

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to