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/19 23:54:14 UTC
[PR] test(workflow-operator): add unit test coverage for operator config bags (LineConfig, UiUDFParameter, SortCriteriaUnit) [texera]
aglinxinyuan opened a new pull request, #5815:
URL: https://github.com/apache/texera/pull/5815
### What changes were proposed in this PR?
Pin behavior of three previously-untested Jackson config-bag classes in `common/workflow-operator/` — plain `@JsonProperty` holders (no `LogicalOp`) that sit on a descriptor's wire-format, so drift in defaults, wire-key names, enum mapping, or annotations silently breaks the workflow saved-state round-trip. No production-code changes.
| Spec | Source class | Tests |
| --- | --- | --- |
| `LineConfigSpec` | `LineConfig` | 7 |
| `UiUDFParameterSpec` | `UiUDFParameter` | 3 |
| `SortCriteriaUnitSpec` | `SortCriteriaUnit` | 6 |
All three spec files follow the `<srcClassName>Spec.scala` one-to-one convention.
**Behavior pinned — `LineConfig`**
| Surface | Contract |
| --- | --- |
| Defaults | `yValue`/`xValue`/`name`/`color == ""`, `mode == LineMode.LINE_WITH_DOTS` |
| Wire-keys | serializes under `y` / `x` / `mode` / `name` / `color` (not `yValue`/`xValue`) |
| `LineMode` `@JsonValue` | `LINE → "line"`, `DOTS → "dots"`, `LINE_WITH_DOTS → "line with dots"` |
| `LineMode.fromString` | case-insensitive (`"LINE WITH DOTS" → LINE_WITH_DOTS`); unknown string throws `IllegalArgumentException` |
| `LineMode.getModeInPlotly` | `lines` / `markers` / `lines+markers` |
| Round-trip | all five fields preserved |
**Behavior pinned — `UiUDFParameter`**
| Surface | Contract |
| --- | --- |
| Default | `value == ""` (the `attribute` var is left null on a fresh instance and is not dereferenced) |
| Round-trip | `attribute` (`Attribute`) + `value` preserved through JSON |
| `value` defaulting | deserializing JSON that omits `value` yields `""` |
**Behavior pinned — `SortCriteriaUnit`**
| Surface | Contract |
| --- | --- |
| Deserialize | `{"attribute":...,"sortPreference":"ASC"/"DESC"}` → `attributeName` + `SortPreference` |
| Wire-key | serializes under `attribute` (not `attributeName`); `sortPreference` key present |
| Round-trip | both fields preserved |
| Annotations | `@JsonProperty("attribute", required = true)` and `@JsonProperty("sortPreference", required = true)` |
### Any related issues, documentation, discussions?
Closes #5808.
### How was this PR tested?
Pure unit-test additions; verified locally with:
- `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.visualization.lineChart.LineConfigSpec org.apache.texera.amber.operator.udf.python.UiUDFParameterSpec org.apache.texera.amber.operator.sort.SortCriteriaUnitSpec"` — 16 tests, all green
- `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt "WorkflowOperator/Test/scalafix --check"` — clean
- CI 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-operator): add unit test coverage for operator config bags (LineConfig, UiUDFParameter, SortCriteriaUnit) [texera]
Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 merged PR #5815:
URL: https://github.com/apache/texera/pull/5815
--
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 operator config bags (LineConfig, UiUDFParameter, SortCriteriaUnit) [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5815:
URL: https://github.com/apache/texera/pull/5815#issuecomment-4755536894
<!-- texera-benchmarks-comment -->
## ⚠️ Benchmark changes need a look
🟢 2 better · 🔴 1 worse · ⚪ 12 noise (<±5%) · 0 without baseline
> Compared against main `00b4ea0` 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/27853724492)
| | config | throughput | MB/s | latency | max Δ latest / 7d |
|---|---|---:|---:|---:|---:|
| 🔴 | bs=10 sw=10 sl=64 | 419 | 0.256 | 23,778/34,530/34,530 us | 🔴 +9.6% / ⚪ within ±5% |
| 🟢 | bs=100 sw=10 sl=64 | 926 | 0.565 | 106,000/123,682/123,682 us | 🟢 -16.9% / 🟢 -11.5% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,110 | 0.677 | 902,522/947,790/947,790 us | ⚪ within ±5% / 🟢 -7.4% |
<details><summary>Baseline details</summary>
Latest main `00b4ea0` from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---:|---:|---:|---:|---:|
| bs=10 sw=10 sl=64 | throughput | 419 tuples/sec | 432 tuples/sec | 410.82 tuples/sec | -3.0% | +2.0% |
| bs=10 sw=10 sl=64 | MB/s | 0.256 MB/s | 0.264 MB/s | 0.251 MB/s | -3.0% | +2.1% |
| bs=10 sw=10 sl=64 | p50 | 23,778 us | 21,691 us | 23,785 us | +9.6% | -0.0% |
| bs=10 sw=10 sl=64 | p95 | 34,530 us | 33,676 us | 34,980 us | +2.5% | -1.3% |
| bs=10 sw=10 sl=64 | p99 | 34,530 us | 33,676 us | 34,980 us | +2.5% | -1.3% |
| bs=100 sw=10 sl=64 | throughput | 926 tuples/sec | 923 tuples/sec | 891.94 tuples/sec | +0.3% | +3.8% |
| bs=100 sw=10 sl=64 | MB/s | 0.565 MB/s | 0.563 MB/s | 0.544 MB/s | +0.4% | +3.8% |
| bs=100 sw=10 sl=64 | p50 | 106,000 us | 104,074 us | 112,277 us | +1.9% | -5.6% |
| bs=100 sw=10 sl=64 | p95 | 123,682 us | 148,798 us | 139,802 us | -16.9% | -11.5% |
| bs=100 sw=10 sl=64 | p99 | 123,682 us | 148,798 us | 139,802 us | -16.9% | -11.5% |
| bs=1000 sw=10 sl=64 | throughput | 1,110 tuples/sec | 1,112 tuples/sec | 1,041 tuples/sec | -0.2% | +6.6% |
| bs=1000 sw=10 sl=64 | MB/s | 0.677 MB/s | 0.679 MB/s | 0.635 MB/s | -0.3% | +6.5% |
| bs=1000 sw=10 sl=64 | p50 | 902,522 us | 892,455 us | 972,714 us | +1.1% | -7.2% |
| bs=1000 sw=10 sl=64 | p95 | 947,790 us | 992,362 us | 1,023,057 us | -4.5% | -7.4% |
| bs=1000 sw=10 sl=64 | p99 | 947,790 us | 992,362 us | 1,023,057 us | -4.5% | -7.4% |
</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,476.88,200,128000,419,0.256,23778.16,34530.05,34530.05
1,100,10,64,20,2160.23,2000,1280000,926,0.565,106000.34,123682.12,123682.12
2,1000,10,64,20,18019.50,20000,12800000,1110,0.677,902521.94,947790.41,947790.41
```
</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 operator config bags (LineConfig, UiUDFParameter, SortCriteriaUnit) [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #5815:
URL: https://github.com/apache/texera/pull/5815#issuecomment-4755530828
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/5815?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.44%. Comparing base ([`72071ff`](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`fcaff5f`](https://app.codecov.io/gh/apache/texera/commit/fcaff5f90889962e97f9538f2fcc5a63210da99c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 2 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #5815 +/- ##
=========================================
Coverage 53.44% 53.44%
Complexity 2696 2696
=========================================
Files 1099 1099
Lines 42541 42541
Branches 4577 4577
=========================================
Hits 22734 22734
Misses 18476 18476
Partials 1331 1331
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/5815/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/5815/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/5815/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 [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `54.05% <ø> (ø)` | | Carriedforward from [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `1.65% <ø> (ø)` | | |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/5815/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/5815/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 [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `48.09% <ø> (ø)` | | Carriedforward from [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/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 [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/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 [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815/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 [72071ff](https://app.codecov.io/gh/apache/texera/commit/72071fffc4222d4d7e55b0dbdf7903f3a3b18649?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/5815?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