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/25 07:27:12 UTC
[PR] test(workflow-operator): add unit test coverage for Sklearn ridge/SGD/dummy classifier descriptors [texera]
aglinxinyuan opened a new pull request, #5946:
URL: https://github.com/apache/texera/pull/5946
### What changes were proposed in this PR?
Pin behavior of four previously-untested Sklearn classifier descriptors (ridge/SGD/dummy) in `common/workflow-operator`. No production-code changes.
| Spec | Source class | Tests |
| --- | --- | --- |
| `SklearnRidgeOpDescSpec` | `SklearnRidgeOpDesc` | 5 |
| `SklearnRidgeCVOpDescSpec` | `SklearnRidgeCVOpDesc` | 5 |
| `SklearnSDGOpDescSpec` | `SklearnSDGOpDesc` | 5 |
| `SklearnDummyClassifierOpDescSpec` | `SklearnDummyClassifierOpDesc` | 5 |
**Behavior pinned**
| Surface | Contract |
| --- | --- |
| `operatorInfo` | exact model name + `Sklearn <name> Operator` description; Sklearn group; training/testing input ports + one blocking output |
| field defaults | `countVectorizer`/`tfidfTransformer` `false`; `target`/`text` `null` |
| `getOutputSchemas` | `model_name` (STRING) + `model` (BINARY) keyed by the declared output port |
| `generatePythonCode` | imports the matching sklearn estimator (`RidgeClassifier`/`RidgeClassifierCV`/`SGDClassifier`/`DummyClassifier`) and builds the `make_pipeline` model |
| Round-trip | config fields preserved through the polymorphic `LogicalOp` base, with the correct `operatorType` discriminator |
### Any related issues, documentation, discussions?
Part of the ongoing `workflow-operator` unit-test coverage effort (follow-up to the Sklearn classifier coverage in #5925, #5939, #5940, #5941).
### How was this PR tested?
- `sbt "WorkflowOperator/testOnly *SklearnRidgeOpDescSpec *SklearnRidgeCVOpDescSpec *SklearnSDGOpDescSpec *SklearnDummyClassifierOpDescSpec"` — 20 tests, all green
- `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt "WorkflowOperator/scalafixAll --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 Sklearn ridge/SGD/dummy classifier descriptors [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #5946:
URL: https://github.com/apache/texera/pull/5946#issuecomment-4796897549
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/5946?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 54.81%. Comparing base ([`43ca4b2`](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`13f124f`](https://app.codecov.io/gh/apache/texera/commit/13f124f09db97bcad6c88f2cc64aacafc08938e4?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #5946 +/- ##
=========================================
Coverage 54.81% 54.81%
Complexity 2960 2960
=========================================
Files 1115 1115
Lines 43019 43019
Branches 4633 4633
=========================================
Hits 23580 23580
Misses 18056 18056
Partials 1383 1383
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/5946/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/5946/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/5946/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 [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.02% <ø> (ø)` | | Carriedforward from [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/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/5946/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `51.56% <ø> (ø)` | | |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/5946/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `59.02% <ø> (ø)` | | Carriedforward from [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `48.40% <ø> (ø)` | | Carriedforward from [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/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/5946/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 [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/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 [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946/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 [43ca4b2](https://app.codecov.io/gh/apache/texera/commit/43ca4b2c70849af57656bc9a777d0e53f617bcc4?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/5946?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 Sklearn ridge/SGD/dummy classifier descriptors [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #5946:
URL: https://github.com/apache/texera/pull/5946
--
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 Sklearn ridge/SGD/dummy classifier descriptors [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5946:
URL: https://github.com/apache/texera/pull/5946#issuecomment-4796878222
<!-- 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-operator): add unit test coverage for Sklearn ridge/SGD/dummy classifier descriptors [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5946:
URL: https://github.com/apache/texera/pull/5946#issuecomment-4796915779
<!-- texera-benchmarks-comment -->
## ⚠️ Benchmark changes need a look
🟢 2 better · 🔴 2 worse · ⚪ 11 noise (<±5%) · 0 without baseline
> Compared against main `43ca4b2` 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/28154080292)
| | config | throughput | MB/s | latency | max Δ latest / 7d |
|---|---|---:|---:|---:|---:|
| 🔴 | bs=10 sw=10 sl=64 | 391 | 0.238 | 24,251/37,667/37,667 us | 🔴 +6.9% / 🔴 +151.8% |
| 🟢 | bs=100 sw=10 sl=64 | 806 | 0.492 | 122,402/149,603/149,603 us | 🟢 -6.5% / 🔴 +49.3% |
| ⚪ | bs=1000 sw=10 sl=64 | 918 | 0.561 | 1,090,203/1,115,842/1,115,842 us | ⚪ within ±5% / 🔴 +21.2% |
<details><summary>Baseline details</summary>
Latest main `43ca4b2` from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---:|---:|---:|---:|---:|
| bs=10 sw=10 sl=64 | throughput | 391 tuples/sec | 389 tuples/sec | 799.7 tuples/sec | +0.5% | -51.1% |
| bs=10 sw=10 sl=64 | MB/s | 0.238 MB/s | 0.237 MB/s | 0.488 MB/s | +0.4% | -51.2% |
| bs=10 sw=10 sl=64 | p50 | 24,251 us | 24,787 us | 12,125 us | -2.2% | +100.0% |
| bs=10 sw=10 sl=64 | p95 | 37,667 us | 35,243 us | 14,959 us | +6.9% | +151.8% |
| bs=10 sw=10 sl=64 | p99 | 37,667 us | 35,243 us | 18,503 us | +6.9% | +103.6% |
| bs=100 sw=10 sl=64 | throughput | 806 tuples/sec | 790 tuples/sec | 1,069 tuples/sec | +2.0% | -24.6% |
| bs=100 sw=10 sl=64 | MB/s | 0.492 MB/s | 0.482 MB/s | 0.652 MB/s | +2.1% | -24.6% |
| bs=100 sw=10 sl=64 | p50 | 122,402 us | 121,955 us | 92,709 us | +0.4% | +32.0% |
| bs=100 sw=10 sl=64 | p95 | 149,603 us | 159,987 us | 100,227 us | -6.5% | +49.3% |
| bs=100 sw=10 sl=64 | p99 | 149,603 us | 159,987 us | 109,877 us | -6.5% | +36.2% |
| bs=1000 sw=10 sl=64 | throughput | 918 tuples/sec | 912 tuples/sec | 1,114 tuples/sec | +0.7% | -17.6% |
| bs=1000 sw=10 sl=64 | MB/s | 0.561 MB/s | 0.557 MB/s | 0.68 MB/s | +0.7% | -17.5% |
| bs=1000 sw=10 sl=64 | p50 | 1,090,203 us | 1,097,482 us | 899,197 us | -0.7% | +21.2% |
| bs=1000 sw=10 sl=64 | p95 | 1,115,842 us | 1,148,617 us | 945,162 us | -2.9% | +18.1% |
| bs=1000 sw=10 sl=64 | p99 | 1,115,842 us | 1,148,617 us | 986,231 us | -2.9% | +13.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,511.84,200,128000,391,0.238,24250.70,37667.20,37667.20
1,100,10,64,20,2480.95,2000,1280000,806,0.492,122401.70,149603.32,149603.32
2,1000,10,64,20,21778.61,20000,12800000,918,0.561,1090202.69,1115841.83,1115841.83
```
</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