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/06/18 01:46:19 UTC

[PR] test(workflow-operator): add unit test coverage for source-descriptor abstractions and small Jackson config bags [texera]

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

   ### What changes were proposed in this PR?
   
   Pin behavior of four small contract / config classes in `common/workflow-operator/`. Each is too thin to justify its own PR but the bundle stays cohesive (everything sits in the descriptor / metadata surface). No production-code changes.
   
   | Spec | Source class | Tests |
   | --- | --- | --- |
   | `SourceOperatorDescriptorSpec` | `SourceOperatorDescriptor` (abstract) | 4 |
   | `PythonSourceOperatorDescriptorSpec` | `PythonSourceOperatorDescriptor` (abstract) | 5 |
   | `GaugeChartStepsSpec` | `GaugeChartSteps` (Jackson bag) | 7 |
   | `DummyPropertiesSpec` | `DummyProperties` (Jackson bag) | 7 |
   
   All four spec files follow the `<srcClassName>Spec.scala` one-to-one convention.
   
   **Behavior pinned — `SourceOperatorDescriptor`**
   
   | Surface | Contract |
   | --- | --- |
   | `sourceSchema()` | declared as an abstract member; pinned via a minimal test-only concrete subclass |
   | `LogicalOp` inheritance | upcast compiles; `case _: LogicalOp` and `case _: SourceOperatorDescriptor` both match a concrete instance |
   
   **Behavior pinned — `PythonSourceOperatorDescriptor`**
   
   | Surface | Contract |
   | --- | --- |
   | Composition | a concrete subclass IS a `SourceOperatorDescriptor` AND a `PythonOperatorDescriptor` (compile-time enforced + four-way `isInstanceOf` check) |
   | Inherited defaults | `parallelizable() == false` and `asSource() == false` (the documented base defaults) when the subclass does not override |
   
   **Behavior pinned — `GaugeChartSteps`**
   
   | Surface | Contract |
   | --- | --- |
   | Defaults | `start == ""` and `end == ""` on a fresh instance |
   | Mutability | both fields are `var`-assignable post-construction |
   | JSON wire-keys | serialize under `start` / `end` (Jackson tree-API verified) |
   | JSON round-trip | preserves both fields |
   | Annotations | `@JsonProperty("start")` and `@JsonProperty("end")` on the corresponding fields (verified via reflection) |
   | Instance independence | no static state shared across `new` |
   
   **Behavior pinned — `DummyProperties`**
   
   | Surface | Contract |
   | --- | --- |
   | Defaults | `dummyProperty == ""` and `dummyValue == ""` |
   | Mutability | both fields are `var`-assignable |
   | JSON round-trip | preserves both fields (including the default-empty round-trip) |
   | Annotations | `@JsonProperty` present on both fields |
   | Instance independence | no static state shared across `new` |
   
   ### Any related issues, documentation, discussions?
   
   Closes #5767.
   
   ### How was this PR tested?
   
   Pure unit-test additions; verified locally with:
   
   - `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.source.SourceOperatorDescriptorSpec org.apache.texera.amber.operator.source.PythonSourceOperatorDescriptorSpec org.apache.texera.amber.operator.visualization.gaugeChart.GaugeChartStepsSpec org.apache.texera.amber.operator.DummyPropertiesSpec"` — 23 tests, all green
   - `sbt scalafmtCheckAll` — clean
   - CI to confirm
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.7 [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-operator): add unit test coverage for source-descriptor abstractions and small Jackson config bags [texera]

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

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/5770?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 53.27%. Comparing base ([`715bccc`](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`483c85f`](https://app.codecov.io/gh/apache/texera/commit/483c85f78e7d1981f11a49a779b196e7ded7001b?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    #5770   +/-   ##
   =========================================
     Coverage     53.27%   53.27%           
     Complexity     2660     2660           
   =========================================
     Files          1095     1095           
     Lines         42398    42398           
     Branches       4560     4560           
   =========================================
     Hits          22587    22587           
     Misses        18479    18479           
     Partials       1332     1332           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/5770/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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.44% <ø> (ø)` | | |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `34.36% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.66% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `1.65% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.71% <ø> (ø)` | | |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.06% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `48.02% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.13% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.80% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `58.69% <ø> (ø)` | | Carriedforward from [715bccc](https://app.codecov.io/gh/apache/texera/commit/715bccc22278a7c8a91ba00014550e8d8d011947?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/5770?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


Re: [PR] test(workflow-operator): add unit test coverage for source-descriptor abstractions and small Jackson config bags [texera]

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

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 4 better · 🔴 3 worse · ⚪ 8 noise (<±5%) · 0 without baseline
   
   > Compared against main `715bccc` 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/27731323339)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 439 | 0.268 | 21,415/29,664/29,664 us | 🔴 +9.1% / 🟢 -15.2% |
   | 🟢 | bs=100 sw=10 sl=64 | 983 | 0.6 | 100,485/114,888/114,888 us | 🟢 -13.4% / 🟢 -17.8% |
   | ⚪ | bs=1000 sw=10 sl=64 | 1,109 | 0.677 | 901,953/983,233/983,233 us | ⚪ within ±5% / 🟢 -7.3% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `715bccc` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 439 tuples/sec | 473 tuples/sec | 410.82 tuples/sec | -7.2% | +6.9% |
   | bs=10 sw=10 sl=64 | MB/s | 0.268 MB/s | 0.289 MB/s | 0.251 MB/s | -7.3% | +6.9% |
   | bs=10 sw=10 sl=64 | p50 | 21,415 us | 19,620 us | 23,785 us | +9.1% | -10.0% |
   | bs=10 sw=10 sl=64 | p95 | 29,664 us | 32,333 us | 34,980 us | -8.3% | -15.2% |
   | bs=10 sw=10 sl=64 | p99 | 29,664 us | 32,333 us | 34,980 us | -8.3% | -15.2% |
   | bs=100 sw=10 sl=64 | throughput | 983 tuples/sec | 991 tuples/sec | 891.94 tuples/sec | -0.8% | +10.2% |
   | bs=100 sw=10 sl=64 | MB/s | 0.6 MB/s | 0.605 MB/s | 0.544 MB/s | -0.8% | +10.2% |
   | bs=100 sw=10 sl=64 | p50 | 100,485 us | 98,797 us | 112,277 us | +1.7% | -10.5% |
   | bs=100 sw=10 sl=64 | p95 | 114,888 us | 132,640 us | 139,802 us | -13.4% | -17.8% |
   | bs=100 sw=10 sl=64 | p99 | 114,888 us | 132,640 us | 139,802 us | -13.4% | -17.8% |
   | bs=1000 sw=10 sl=64 | throughput | 1,109 tuples/sec | 1,117 tuples/sec | 1,041 tuples/sec | -0.7% | +6.5% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.677 MB/s | 0.682 MB/s | 0.635 MB/s | -0.7% | +6.5% |
   | bs=1000 sw=10 sl=64 | p50 | 901,953 us | 896,012 us | 972,714 us | +0.7% | -7.3% |
   | bs=1000 sw=10 sl=64 | p95 | 983,233 us | 939,475 us | 1,023,057 us | +4.7% | -3.9% |
   | bs=1000 sw=10 sl=64 | p99 | 983,233 us | 939,475 us | 1,023,057 us | +4.7% | -3.9% |
   
   </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,455.56,200,128000,439,0.268,21415.44,29664.39,29664.39
   1,100,10,64,20,2034.44,2000,1280000,983,0.600,100484.84,114888.13,114888.13
   2,1000,10,64,20,18040.65,20000,12800000,1109,0.677,901952.63,983232.57,983232.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-operator): add unit test coverage for source-descriptor abstractions and small Jackson config bags [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #5770:
URL: https://github.com/apache/texera/pull/5770


-- 
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