The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
74fecdfa121fc864c4f5f674157791d75c28725c / Xinyuan Lin <[email protected]>
test(workflow-operator): add unit test coverage for visualization descriptors 
(CarpetPlot, DumbbellPlot, ParallelCoordinatesPlot) (#5844)

### What changes were proposed in this PR?

Pin behavior of three more previously-untested visualization
`PythonOperatorDescriptor`s in `common/workflow-operator/`. No
production-code changes.

| Spec | Source class | Tests |
| --- | --- | --- |
| `CarpetPlotOpDescSpec` | `CarpetPlotOpDesc` | 5 |
| `DumbbellPlotOpDescSpec` | `DumbbellPlotOpDesc` | 5 |
| `ParallelCoordinatesPlotOpDescSpec` | `ParallelCoordinatesPlotOpDesc`
| 5 |

**Behavior pinned (each descriptor)**

| Surface | Contract |
| --- | --- |
| `operatorInfo` | exact name + visualization group (`Scientific` /
`Basic` / `Scientific`); one input / one output |
| `getOutputSchemas` | single `html-content` STRING column, asserted as
the full map keyed by `operatorInfo.outputPorts.head.id` |
| Field defaults | Carpet `a`/`b`/`y == ""`; Dumbbell column fields `==
""` + `showLegends == false`; ParallelCoordinates `dimensions` empty |
| `generatePythonCode` | Carpet `go.Carpet(`; Dumbbell `go.Scatter(`;
ParallelCoordinates `px.parallel_coordinates(` (structural Python only)
|
| Round-trip | config fields preserved through the polymorphic base |

**Note for reviewers:** `ParallelCoordinatesPlotOpDesc.color` defaults
to `null` and `dimensions` to empty — both are null/empty-guarded in
`generatePythonCode`, so codegen on a fresh instance is exercised
safely. Codegen assertions pin only structural Python, never the
base64-encoded `EncodableString` values.

### Any related issues, documentation, discussions?

Closes #5839.

### How was this PR tested?

- `sbt "WorkflowOperator/testOnly
org.apache.texera.amber.operator.visualization.carpetPlot.CarpetPlotOpDescSpec
org.apache.texera.amber.operator.visualization.dumbbellPlot.DumbbellPlotOpDescSpec
org.apache.texera.amber.operator.visualization.parallelCoordinatesPlot.ParallelCoordinatesPlotOpDescSpec"`
— 15 tests, all green
- `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt
"WorkflowOperator/Test/scalafix --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/27915264503

With regards,
GitHub Actions via GitBox

Reply via email to