Repository navigation
test(workflow-operator): share chart spec drivers and output schema checks - #9733
Open
aglinxinyuan wants to merge 1 commit into
Open
aglinxinyuan wants to merge 1 commit into
aglinxinyuan wants to merge 1 commit into
Conversation
…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.
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
| 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.06This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 stubbedpytexeramodule, runs exported standalone code once per case and reads back the page it wrote, and parses theCASE <id> <verdict>lines that both drivers print. The Tables Plot and Figure Factory Table specs, which carried the same driver, call oneverifyTableChartCases.GeneratedCodeAssertionsgainsassertHtmlOutputSchemaandexpectedHtmlOutputSchemafor the singlehtml-contentSTRING output column, andexpectEmptyFieldErrorfor 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.
PieChartOpDescSpeckeeps 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>"withUDF_PYTHON_PATHset 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.PythonVisualizationOpDescnaming its output columnHTML-CONTENT: the 10 output-schema cases.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)