Repository navigation
refactor(workflow-operator): share chart Python codegen - #9646
Open
aglinxinyuan wants to merge 1 commit into
Open
aglinxinyuan wants to merge 1 commit into
aglinxinyuan wants to merge 1 commit into
Conversation
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9646 +/- ##
============================================
+ Coverage 91.67% 91.70% +0.02%
- Complexity 5135 5140 +5
============================================
Files 1304 1304
Lines 58088 58131 +43
Branches 7582 7584 +2
============================================
+ Hits 53254 53308 +54
+ Misses 2922 2910 -12
- Partials 1912 1913 +1
*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
✅ No material benchmark regressions detected🟢 4 better · 🔴 0 worse · ⚪ 11 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_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,380.43,200,128000,526,0.321,18480.49,24910.22,24910.22
1,100,10,64,20,1584.78,2000,1280000,1262,0.770,78136.34,95648.14,95648.14
2,1000,10,64,20,13928.50,20000,12800000,1436,0.876,693828.54,796238.34,796238.34 |
This 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?
Share duplicated runtime (
generatePythonCode) and standalone (generateStandaloneCode) Plotly Python code generation across four visualization operators incommon/workflow-operator(4files,+364/-571,-207net lines):NetworkGraphOpDesc.scalaNetworkGraphPython.body(indent)for graph construction, seededspring_layout, edge/node traces, and figure layout+107/-181(-74)BulletChartOpDesc.scaladeltaReferenceLiteral,thresholdLiteral,stepsLiteral, andBulletChartPython(helperDefs,stepsListBody,figureBody)+96/-136(-40)TreePlotOpDesc.scalaTreePlotPython.annotationsBody,parseEdges, andfigureBody(reusingPythonCodeFragment.render)+94/-135(-41)ContinuousErrorBandsOpDesc.scalabuildFigure(tableVar, encode, indent)returningPythonTemplateBuilderso runtimecreatePlotlyFigure()preserves both.plainand.encodemodes while standalone renders viapyStringLiteral+67/-119(-52)Notes for reviewers:
pybbase64 encoding (self.decode_python_template(...)) and standalonepyStringLiteralescaping are preserved unchanged.Any related issues, documentation, discussions?
Closes #9645
How was this PR tested?
Verified on
cd3fc253ee(based onorigin/main95e2748b97) with JDK 17.0.14,sbt 1.12.9, and Python 3.12 (pandas 2.2.3,plotly 5.24.1,networkx 3.4.2):WorkflowOperator/scalafixAll --checkandWorkflowOperator/scalafmtCheckAllexit0.WorkflowOperator:5suites,100cases (99passed,1pre-existingpendingUntilFixedskipped inBulletChartOpDescSpec,0failed), including all5liveNeedsPythonPackageslayout tests inTreePlotOpDescSpec.WorkflowCompilingService:WorkflowToPythonTranslatorSpec19/19passed.generatePythonCode) and standalone (generateStandaloneCode) scripts for all four operators in Python 3.12 againstorigin/main95e2748b97:8/8Plotly figure JSON outputs matched identically, andContinuousErrorBandsOpDesc.createPlotlyFigure()preserved literal column names under.plainand base64 decode expressions under.encode.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity