You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/07/02 04:56:54 UTC

[PR] test(workflow-core): add unit test coverage for PhysicalPlan and PhysicalOp [texera]

aglinxinyuan opened a new pull request, #6056:
URL: https://github.com/apache/texera/pull/6056

   ### What changes were proposed in this PR?
   
   Add unit test coverage for the two largest uncovered files in `workflow-core` per the Codecov report. No production-code changes.
   
   | File | Codecov before | Missed lines targeted |
   | --- | --- | --- |
   | `PhysicalPlan.scala` | 27.0% | 71 — `addOperator`/`addLink` (incl. schema hand-off + undeclared-port rejection), `removeLink`, `setOperator`, `getPhysicalOpByWorkerId`, `getLinksBetween`, `getOutputPartitionInfo` (all three branches), blocking/dependee link detection, `getDependeeLinksRemovedDAG`, `getNonBridgeNonBlockingLinks` (bridge vs diamond), `maxChains` (maximal-subset filter), `layeredReversedTopologicalOrder` (diamond, parallel edges, empty), plan-level `propagateSchema` |
   | `PhysicalOp.scala` | 46.2% | 66 — the Java-function `SchemaPropagationFunc` wrapper, all four factory families (`source`/`oneToOne`/`manyToOne`/`local`, both overloads each), `dependeeInputs`/`isInputLinkDependee`, `isPythonBased`/`getCode`, `withPartitionRequirement`/`withDerivePartition`/`withIsOneToManyOp`/`withPveName`, partial-schema propagation gating, `getInputPortDependencyPairs`, `addOutputLink` guards, primary-constructor defaults |
   
   New `PhysicalPlanSpec` and `PhysicalOpSpec` in `workflow-core` (no name clash repo-wide); deliberately does not duplicate the `PhysicalOp`/plan surfaces already covered by `WorkflowCoreTypesSpec`.
   
   ### Any related issues, documentation, discussions?
   
   Follow-up to the review feedback on #6043: prioritize tests that fill uncovered code paths.
   
   ### How was this PR tested?
   
   - `sbt "WorkflowCore/testOnly *PhysicalPlanSpec *PhysicalOpSpec"` — 38 tests, all green
   - `sbt "WorkflowCore/Test/scalafmtCheck"` and `sbt "WorkflowCore/scalafixAll --check"` — clean
   - CI + Codecov delta to confirm
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(workflow-core): add unit test coverage for PhysicalPlan and PhysicalOp [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6056:
URL: https://github.com/apache/texera/pull/6056#issuecomment-4862335713

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - No candidates found from `git blame` history.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(workflow-core): add unit test coverage for PhysicalPlan and PhysicalOp [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6056:
URL: https://github.com/apache/texera/pull/6056#issuecomment-4862365648

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 4 better · 🔴 4 worse · ⚪ 7 noise (<±5%) · 0 without baseline
   
   > Compared against main `878eb8a` 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](https://apache.github.io/texera/dev/bench/) · [Run](https://github.com/apache/texera/actions/runs/28566472364)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 380 | 0.232 | 25,262/33,989/33,989 us | 🔴 +18.8% / 🔴 +129.9% |
   | 🔴 | bs=100 sw=10 sl=64 | 792 | 0.483 | 128,012/138,144/138,144 us | 🟢 -12.9% / 🔴 +29.2% |
   | ⚪ | bs=1000 sw=10 sl=64 | 905 | 0.552 | 1,105,475/1,149,813/1,149,813 us | ⚪ within ±5% / 🔴 +12.4% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `878eb8a` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 380 tuples/sec | 404 tuples/sec | 786.27 tuples/sec | -5.9% | -51.7% |
   | bs=10 sw=10 sl=64 | MB/s | 0.232 MB/s | 0.247 MB/s | 0.48 MB/s | -6.1% | -51.7% |
   | bs=10 sw=10 sl=64 | p50 | 25,262 us | 21,274 us | 12,495 us | +18.8% | +102.2% |
   | bs=10 sw=10 sl=64 | p95 | 33,989 us | 36,961 us | 14,784 us | -8.0% | +129.9% |
   | bs=10 sw=10 sl=64 | p99 | 33,989 us | 36,961 us | 18,468 us | -8.0% | +84.0% |
   | bs=100 sw=10 sl=64 | throughput | 792 tuples/sec | 799 tuples/sec | 991.49 tuples/sec | -0.9% | -20.1% |
   | bs=100 sw=10 sl=64 | MB/s | 0.483 MB/s | 0.488 MB/s | 0.605 MB/s | -1.0% | -20.2% |
   | bs=100 sw=10 sl=64 | p50 | 128,012 us | 120,726 us | 100,929 us | +6.0% | +26.8% |
   | bs=100 sw=10 sl=64 | p95 | 138,144 us | 158,636 us | 106,894 us | -12.9% | +29.2% |
   | bs=100 sw=10 sl=64 | p99 | 138,144 us | 158,636 us | 114,085 us | -12.9% | +21.1% |
   | bs=1000 sw=10 sl=64 | throughput | 905 tuples/sec | 917 tuples/sec | 1,023 tuples/sec | -1.3% | -11.5% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.552 MB/s | 0.559 MB/s | 0.624 MB/s | -1.3% | -11.6% |
   | bs=1000 sw=10 sl=64 | p50 | 1,105,475 us | 1,088,670 us | 983,835 us | +1.5% | +12.4% |
   | bs=1000 sw=10 sl=64 | p95 | 1,149,813 us | 1,128,821 us | 1,023,777 us | +1.9% | +12.3% |
   | bs=1000 sw=10 sl=64 | p99 | 1,149,813 us | 1,128,821 us | 1,053,883 us | +1.9% | +9.1% |
   
   </details>
   
   <details><summary>Raw CSV</summary>
   
   ```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,526.38,200,128000,380,0.232,25262.36,33989.18,33989.18
   1,100,10,64,20,2525.20,2000,1280000,792,0.483,128012.33,138143.92,138143.92
   2,1000,10,64,20,22094.70,20000,12800000,905,0.552,1105474.70,1149812.57,1149812.57
   ```
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(workflow-core): add unit test coverage for PhysicalPlan and PhysicalOp [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #6056:
URL: https://github.com/apache/texera/pull/6056#issuecomment-4862350809

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/6056?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 56.37%. Comparing base ([`322babf`](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`8914e29`](https://app.codecov.io/gh/apache/texera/commit/8914e29a4031f7d9b404490decbcd8a8b19d1e65?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 1 commits behind head on main.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff            @@
   ##               main    #6056   +/-   ##
   =========================================
     Coverage     56.37%   56.37%           
     Complexity     2989     2989           
   =========================================
     Files          1129     1129           
     Lines         43794    43794           
     Branches       4743     4743           
   =========================================
     Hits          24689    24689           
     Misses        17654    17654           
     Partials       1451     1451           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `44.59% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.29% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.30% <ø> (ø)` | | |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `62.81% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `50.12% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.57% <ø> (ø)` | | |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.20% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [python](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.76% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/6056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.14% <ø> (ø)` | | Carriedforward from [322babf](https://app.codecov.io/gh/apache/texera/commit/322babf6205cf72277d13a4f2d16c5954a4dfbd9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/6056?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org