The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5843-b2886ca8b1bc6658c4bfb362a9d328e668038b3b
 has failed.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
444862845a13e57edd4df4ba0b85f05143059fcb / Xinyuan Lin <[email protected]>
test(workflow-operator): add unit test coverage for visualization descriptors 
(GaugeChart, RangeSlider, SankeyDiagram) (#5843)

### What changes were proposed in this PR?

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

| Spec | Source class | Tests |
| --- | --- | --- |
| `GaugeChartOpDescSpec` | `GaugeChartOpDesc` | 5 |
| `RangeSliderOpDescSpec` | `RangeSliderOpDesc` | 5 |
| `SankeyDiagramOpDescSpec` | `SankeyDiagramOpDesc` | 5 |

**Behavior pinned (each descriptor)**

| Surface | Contract |
| --- | --- |
| `operatorInfo` | exact name + visualization group (`Financial` /
`Basic` / `Basic`); one input / one output |
| `getOutputSchemas` | single `html-content` STRING column, asserted as
the **full map keyed by `operatorInfo.outputPorts.head.id`** (input
ignored — `Map.empty` proves it) |
| Field defaults | Gauge `value`/`delta`/`threshold == ""` + empty
`steps`; RangeSlider `xAxis`/`yAxis == ""`; Sankey
`source`/`target`/`value == ""` |
| `generatePythonCode` | Gauge `go.Indicator(`; RangeSlider
`go.Scatter(`; Sankey `go.Sankey(` (structural Python only) |
| Round-trip | config fields preserved through the polymorphic base |

Codegen assertions check only structural Python (class def / import /
plotly call) — never the interpolated `EncodableString` values, which
are base64-encoded at `.encode` time and do not appear literally.

### Any related issues, documentation, discussions?

Closes #5838.

### How was this PR tested?

- `sbt "WorkflowOperator/testOnly
org.apache.texera.amber.operator.visualization.gaugeChart.GaugeChartOpDescSpec
org.apache.texera.amber.operator.visualization.rangeSlider.RangeSliderOpDescSpec
org.apache.texera.amber.operator.visualization.sankeyDiagram.SankeyDiagramOpDescSpec"`
— 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/27914656887

With regards,
GitHub Actions via GitBox

Reply via email to