Skip to content

chore(amber): remove the unused ElidableStatement - #7451

Open
aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:chore/remove-elidable-statement
Open

chore(amber): remove the unused ElidableStatement#7451
aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:chore/remove-elidable-statement

Conversation

@aglinxinyuan

@aglinxinyuan aglinxinyuan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Deletes ElidableStatement and its spec. Pure deletion, no behaviour change: −175 lines.

The object wraps statements in scala.annotation.elidable so they can be compiled out below a threshold. That threshold comes from the -Xelide-below scalac option, which appears in no build.sbt in this repo — so the wrapper had no effect even in principle. A case-insensitive search for elidable across all Scala and sbt sources returns only the object and its own spec; nothing calls it.

Reviewer note: it acquired unit tests during the 2026 coverage work, which is why it currently looks live. The spec covers this object and nothing else, so it goes with it.

Any related issues, documentation, discussions?

Closes #7448

How was this PR tested?

Existing tests only — this PR adds none, since it removes code and the spec that covered it.

Locally, from the repo root with Java 17:

  • sbt "WorkflowExecutionService/Test/compile" — success.

Verification, re-runnable by a reviewer:

git grep -in elidable          # only the two deleted files

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5)

Copilot AI lite review requested due to automatic review settings August 9, 2026 11:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 4 better · 🔴 1 worse · ⚪ 10 noise (<±5%) · 0 without baseline

Compared against main e03d971 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 · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 429 0.262 22,854/31,269/31,269 us 🔴 +22.1% / 🔴 +94.0%
🟢 bs=100 sw=10 sl=64 948 0.578 104,313/125,771/125,771 us 🟢 -17.2% / 🔴 +13.1%
bs=1000 sw=10 sl=64 1,110 0.677 895,992/984,290/984,290 us ⚪ within ±5% / 🟢 +12.8%
Baseline details

Latest main e03d971 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 429 tuples/sec 442 tuples/sec 752.25 tuples/sec -2.9% -43.0%
bs=10 sw=10 sl=64 MB/s 0.262 MB/s 0.27 MB/s 0.459 MB/s -3.0% -42.9%
bs=10 sw=10 sl=64 p50 22,854 us 18,712 us 13,006 us +22.1% +75.7%
bs=10 sw=10 sl=64 p95 31,269 us 37,382 us 16,117 us -16.4% +94.0%
bs=10 sw=10 sl=64 p99 31,269 us 37,382 us 19,286 us -16.4% +62.1%
bs=100 sw=10 sl=64 throughput 948 tuples/sec 973 tuples/sec 953.66 tuples/sec -2.6% -0.6%
bs=100 sw=10 sl=64 MB/s 0.578 MB/s 0.594 MB/s 0.582 MB/s -2.7% -0.7%
bs=100 sw=10 sl=64 p50 104,313 us 99,986 us 105,130 us +4.3% -0.8%
bs=100 sw=10 sl=64 p95 125,771 us 151,855 us 111,226 us -17.2% +13.1%
bs=100 sw=10 sl=64 p99 125,771 us 151,855 us 121,065 us -17.2% +3.9%
bs=1000 sw=10 sl=64 throughput 1,110 tuples/sec 1,140 tuples/sec 984.25 tuples/sec -2.6% +12.8%
bs=1000 sw=10 sl=64 MB/s 0.677 MB/s 0.696 MB/s 0.601 MB/s -2.7% +12.7%
bs=1000 sw=10 sl=64 p50 895,992 us 868,196 us 1,024,295 us +3.2% -12.5%
bs=1000 sw=10 sl=64 p95 984,290 us 945,887 us 1,062,710 us +4.1% -7.4%
bs=1000 sw=10 sl=64 p99 984,290 us 945,887 us 1,095,400 us +4.1% -10.1%
Raw 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,465.99,200,128000,429,0.262,22853.77,31269.09,31269.09
1,100,10,64,20,2110.69,2000,1280000,948,0.578,104312.74,125770.80,125770.80
2,1000,10,64,20,18020.52,20000,12800000,1110,0.677,895991.78,984290.20,984290.20

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.32%. Comparing base (e03d971) to head (fcadde7).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7451      +/-   ##
============================================
- Coverage     85.32%   85.32%   -0.01%     
+ Complexity     4151     4149       -2     
============================================
  Files          1169     1168       -1     
  Lines         46740    46739       -1     
  Branches       5202     5202              
============================================
- Hits          39882    39880       -2     
+ Misses         5148     5147       -1     
- Partials       1710     1712       +2     
Flag Coverage Δ *Carryforward flag
access-control-service 70.00% <ø> (ø) Carriedforward from e03d971
agent-service 85.50% <ø> (ø) Carriedforward from e03d971
amber 80.88% <ø> (-0.01%) ⬇️
computing-unit-managing-service 50.72% <ø> (ø) Carriedforward from e03d971
config-service 65.97% <ø> (ø) Carriedforward from e03d971
file-service 69.05% <ø> (ø) Carriedforward from e03d971
frontend 87.85% <ø> (ø) Carriedforward from e03d971
notebook-migration-service 78.89% <ø> (ø) Carriedforward from e03d971
pyamber 97.51% <ø> (ø) Carriedforward from e03d971
workflow-compiling-service 26.31% <ø> (ø) Carriedforward from e03d971

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the unused ElidableStatement from the amber engine

3 participants