Skip to content

test(workflow-operator): share chart spec drivers and output schema checks - #9733

Open
aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:test/chart-spec-fixtures
Open

aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:test/chart-spec-fixtures

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Thirty-eight chart operator specs share their Python drivers and two common checks instead of writing them out.

  • ChartPythonTestSupport, new next to the chart specs, runs a generated table operator inside the stubbed pytexera module, runs exported standalone code once per case and reads back the page it wrote, and parses the CASE <id> <verdict> lines that both drivers print. The Tables Plot and Figure Factory Table specs, which carried the same driver, call one verifyTableChartCases.
  • GeneratedCodeAssertions gains assertHtmlOutputSchema and expectedHtmlOutputSchema for the single html-content STRING output column, and expectEmptyFieldError for the "cannot be empty" validation errors.

Each spec keeps its own cases, inputs, expected pages and messages, and every case keeps its name and expected outcome, in the same order. PieChartOpDescSpec keeps its own checks because #9633 edits it.

Any related issues, documentation, discussions?

Closes #9732.

How was this PR tested?

  • sbt "WorkflowOperator/testOnly <the 41 chart suites>" with UDF_PYTHON_PATH set to a Python 3.12 that has pandas and plotly: main and this branch each run 375 cases in 41 suites (373 passing, 2 pending), with the same names, outcomes and order, compared case by case from the JUnit XML reports.
  • Mutation check: each break was applied to main and to this branch and reverted afterwards, and the same cases failed on both.
    • PythonVisualizationOpDesc naming its output column HTML-CONTENT: the 10 output-schema cases.
    • Carpet Plot's exported code rewording its numeric-conversion error page: the standalone page case.
  • sbt "WorkflowOperator/Test/scalafmtCheck" "WorkflowOperator/Test/scalafix --check".

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

Generated-by: Codex (GPT-6) and Claude Code (Claude Opus 5.5)

…hecks

Thirty-eight chart operator specs wrote out the same pieces by hand: the stubbed
pytexera driver that runs a generated table operator, the driver that runs
exported standalone code once per case and reads back the page it wrote,
the CASE verdict parser, the html-content output schema check and the
empty-field error check. ChartPythonTestSupport now holds the two drivers
and the parser, and GeneratedCodeAssertions holds the two checks. Each spec
keeps its own cases, inputs and expected pages.
Copilot AI balanced review requested due to automatic review settings November 27, 2026 22:27
@aglinxinyuan aglinxinyuan self-assigned this Nov 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @kz930, @eugenegujing
    You can notify them by mentioning @kz930, @eugenegujing in a comment.

@codecov-commenter

codecov-commenter commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.77%. Comparing base (923c982) to head (7e1eeac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9733   +/-   ##
=========================================
  Coverage     91.77%   91.77%           
  Complexity     5136     5136           
=========================================
  Files          1308     1308           
  Lines         58048    58048           
  Branches       7558     7558           
=========================================
  Hits          53274    53274           
  Misses         2887     2887           
  Partials       1887     1887           
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø) Carriedforward from 923c982
amber 85.95% <ø> (ø)
computing-unit-managing-service 63.81% <ø> (ø)
config-service 87.50% <ø> (ø)
file-service 82.16% <ø> (ø)
frontend 96.45% <ø> (ø) Carriedforward from 923c982
notebook-migration-service 83.84% <ø> (ø)
pyamber 98.70% <ø> (ø) Carriedforward from 923c982
result-service 86.48% <ø> (ø)
workflow-compiling-service 80.90% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 2 better · 🔴 5 worse · ⚪ 8 noise (<±5%) · 0 without baseline

Compared against main e8c37e6 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 394 0.241 24,250/36,371/36,371 us 🔴 +12.1% / 🔴 +168.0%
🟢 bs=100 sw=10 sl=64 853 0.52 115,404/142,262/142,262 us 🟢 -5.8% / 🔴 +55.6%
⚪ bs=1000 sw=10 sl=64 959 0.586 1,039,253/1,105,251/1,105,251 us ⚪ within ±5% / 🔴 +28.6%
Baseline details

Latest main e8c37e6 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 394 tuples/sec 434 tuples/sec 951.49 tuples/sec -9.2% -58.6%
bs=10 sw=10 sl=64 MB/s 0.241 MB/s 0.265 MB/s 0.581 MB/s -9.1% -58.5%
bs=10 sw=10 sl=64 p50 24,250 us 22,436 us 10,659 us +8.1% +127.5%
bs=10 sw=10 sl=64 p95 36,371 us 32,434 us 13,570 us +12.1% +168.0%
bs=10 sw=10 sl=64 p99 36,371 us 32,434 us 16,744 us +12.1% +117.2%
bs=100 sw=10 sl=64 throughput 853 tuples/sec 856 tuples/sec 1,256 tuples/sec -0.4% -32.1%
bs=100 sw=10 sl=64 MB/s 0.52 MB/s 0.522 MB/s 0.767 MB/s -0.4% -32.2%
bs=100 sw=10 sl=64 p50 115,404 us 112,530 us 84,170 us +2.6% +37.1%
bs=100 sw=10 sl=64 p95 142,262 us 150,973 us 91,401 us -5.8% +55.6%
bs=100 sw=10 sl=64 p99 142,262 us 150,973 us 104,021 us -5.8% +36.8%
bs=1000 sw=10 sl=64 throughput 959 tuples/sec 970 tuples/sec 1,299 tuples/sec -1.1% -26.2%
bs=1000 sw=10 sl=64 MB/s 0.586 MB/s 0.592 MB/s 0.793 MB/s -1.0% -26.1%
bs=1000 sw=10 sl=64 p50 1,039,253 us 1,021,360 us 819,011 us +1.8% +26.9%
bs=1000 sw=10 sl=64 p95 1,105,251 us 1,160,234 us 859,723 us -4.7% +28.6%
bs=1000 sw=10 sl=64 p99 1,105,251 us 1,160,234 us 909,957 us -4.7% +21.5%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,507.16,200,128000,394,0.241,24249.74,36370.58,36370.58
1,100,10,64,20,2345.31,2000,1280000,853,0.520,115404.16,142261.78,142261.78
2,1000,10,64,20,20848.59,20000,12800000,959,0.586,1039252.63,1105251.06,1105251.06

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 November 28, 2026 00:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Share chart spec drivers and output schema checks

3 participants