Skip to content

refactor: remove unused version, list-item and CI setup code - #9706

Merged
aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:refactor/unused-version-list-and-image-setup
Nov 26, 2026
Merged

aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:refactor/unused-version-list-and-image-setup

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Remove code that nothing uses, or that repeats what the code next to it already does, from the workflow version service, the versions list, the workspace menu, the dashboard list item, the computing-unit picker and the image build workflow (+42/−165 lines). There is no behavior change.

  • Version history: WorkflowVersionService.displayWorkflowVersions and its only caller, MenuComponent.onClickGetAllVersions, which no template has bound since Change the style of saved workflow timestamp  #2500 removed the button's click handler. Their two spec cases go with them.
  • Version differences: getWorkflowsDifference loops over a configurable list of element types that has held only operators since Show workflow version difference #1503 added it, with an ID-field map that names a type the loop never visits. It now compares operators directly.
    • The bracket highlighting for links of deleted operators, written twice, becomes one helper.
    • The versions list's two expand loops, identical but for the value they set, become one.
    • The unused Element and WorkflowContentKeys aliases go, and the URL constant that only the spec imported becomes file-local.
  • List item: ListItemComponent only ever sets editingDescription to false, and its template has had no #descriptionInput since feat: add Markdown editor for dataset/workflow descriptions #4212 replaced the inline editor. The flag, its class binding and style, and the view query go. CardItemComponent keeps its own, live copy.
  • Computing-unit picker: three pieces go.
    • An unused ShareAccessComponent import; its dialog left this component in feat(gui): add full computing unit tab #4331.
    • A doubled userPackages assignment.
    • A skippedMessages list that nothing fills, with the block that would print it.
  • Image builds: the AMD64 and ARM64 jobs build inside Docker, so their JDK, sbt launcher and coursier cache setup and their JAVA_OPTS/JVM_OPTS go. The JOOQ job, which does run sbt, keeps its setup.
Event PR / Commit
Introduced by Version history: #1343 (2021-09-28); version differences: #1503 (2022-06-07), the second bracket block #5285 (2026-06-05), the versions list #1444 (2022-02-15); list item: #2819 (2024-09-07); picker: #3508 (2025-07-07) and #4902 (2026-05-12); image builds: #4055 (2025-11-21)
Usage removed by Version history: #2500 (2024-03-24) removed the button that called it. List item: #4212 (2026-02-18) replaced the inline description editor. Picker import: #4331 (2026-04-09) moved the share dialog out. Everything else: unused since introduction.

As of 2026-11-25:

  • The element-type list has held a single type for over 4 years.
  • The version-history handler has had no caller for over two and a half years.
  • The image jobs have set up a JDK they never use for a year.
  • The list item's edit state has been unreachable for 9 months, and the picker's import has been unused for over 7 months.
  • The skipped-message list has stayed empty for the 6 months since it was added.

Any related issues, documentation, discussions?

Closes #9705.

How was this PR tested?

Ran on this branch and on main at fd0e2d5338 (Windows 11; Node 24 with Yarn 4.14.1):

cd frontend
npx ng test --watch=false --include='**/workflow-version.service.spec.ts' --include='**/menu.component.spec.ts' --include='**/versions-list.component.spec.ts' --include='**/list-item.component.spec.ts' --include='**/computing-unit-selection.component.spec.ts'
npx tsc --noEmit -p src/tsconfig.app.json
npx tsc --noEmit -p src/tsconfig.spec.json
npx ngc -p src/tsconfig.app.json --noEmit
yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src)
yarn eslint $(git diff --name-only --relative origin/main -- src | grep -E '\.(ts|html)$')
  • Frontend: the five specs run 478 tests on this branch and 480 on main, all passing. The two extra on main are the deleted methods' own cases; every other test keeps its name and outcome. Both typechecks, the AOT compile, prettier-eslint and ESLint pass.
  • Workflow: build-and-push-images.yml parses, both image jobs keep their Docker steps, and only the JOOQ job sets up a JDK. The image jobs themselves run only after merge.

To re-check, both commands return no hits on this branch:

git grep -nwE "displayWorkflowVersions|onClickGetAllVersions|skippedMessages|ELEMENT_TYPES_IN_WORKFLOW_DIFF_CALC|ID_FILED_FOR_ELEMENTS_CONFIG" -- frontend/src
git grep -nw editingDescription -- frontend/src/app/dashboard/component/user/list-item/list-item.component.ts frontend/src/app/dashboard/component/user/list-item/list-item.component.html

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

Generated-by: Claude Code (Claude Opus 5.5)

- WorkflowVersionService.displayWorkflowVersions and its only caller,
  MenuComponent.onClickGetAllVersions, which no template binds.
- WorkflowVersionService computes version differences through a
  configurable element-type list that only ever held operators; it now
  compares operators directly. The duplicated bracket highlighting and the
  versions list's duplicated expand loops are written once, and the unused
  type aliases, ID map and URL export go.
- ListItemComponent never sets editingDescription to true and its template
  has no descriptionInput, so the flag, its class binding and style, and the
  view query go.
- ComputingUnitSelectionComponent: an unused ShareAccessComponent import, a
  doubled userPackages assignment, and a skippedMessages list nothing fills.
- build-and-push-images: the AMD64 and ARM64 image jobs build inside Docker,
  so their JDK, sbt and coursier setup and JVM options were unused.
Copilot AI balanced review requested due to automatic review settings November 26, 2026 04:50

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 insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI ci changes related to CI labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @yangzhang75, @Ma77Ball, @kz930
    You can notify them by mentioning @yangzhang75, @Ma77Ball, @kz930 in a comment.

@codecov-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (fd0e2d5) to head (cce8346).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9706      +/-   ##
============================================
+ Coverage     91.78%   91.79%   +0.01%     
- Complexity     5134     5135       +1     
============================================
  Files          1306     1306              
  Lines         58240    58197      -43     
  Branches       7582     7564      -18     
============================================
- Hits          53453    53421      -32     
+ Misses         2894     2887       -7     
+ Partials       1893     1889       -4     
Flag Coverage Δ
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø)
amber 85.95% <ø> (+<0.01%) ⬆️
computing-unit-managing-service 63.81% <ø> (ø)
config-service 87.50% <ø> (ø)
file-service 82.16% <ø> (ø)
frontend 96.46% <100.00%> (+0.02%) ⬆️
notebook-migration-service 83.84% <ø> (ø)
pyamber 98.70% <ø> (+0.04%) ⬆️
result-service 86.48% <ø> (ø)
workflow-compiling-service 80.90% <ø> (ø)

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

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 November 26, 2026 04:54
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 0 better · 🔴 7 worse · ⚪ 8 noise (<±5%) · 0 without baseline

Compared against main fd0e2d5 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 603 0.368 15,493/23,660/23,660 us 🔴 +11.5% / 🔴 +74.4%
⚪ bs=100 sw=10 sl=64 1,274 0.778 77,929/90,950/90,950 us ⚪ within ±5% / 🟢 -11.5%
🔴 bs=1000 sw=10 sl=64 1,439 0.878 686,076/844,765/844,765 us 🔴 +16.1% / 🟢 -14.5%
Baseline details

Latest main fd0e2d5 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 603 tuples/sec 674 tuples/sec 956.03 tuples/sec -10.5% -36.9%
bs=10 sw=10 sl=64 MB/s 0.368 MB/s 0.411 MB/s 0.584 MB/s -10.5% -36.9%
bs=10 sw=10 sl=64 p50 15,493 us 13,897 us 10,527 us +11.5% +47.2%
bs=10 sw=10 sl=64 p95 23,660 us 21,365 us 13,570 us +10.7% +74.4%
bs=10 sw=10 sl=64 p99 23,660 us 21,365 us 16,510 us +10.7% +43.3%
bs=100 sw=10 sl=64 throughput 1,274 tuples/sec 1,320 tuples/sec 1,273 tuples/sec -3.5% +0.1%
bs=100 sw=10 sl=64 MB/s 0.778 MB/s 0.806 MB/s 0.777 MB/s -3.5% +0.1%
bs=100 sw=10 sl=64 p50 77,929 us 74,430 us 82,483 us +4.7% -5.5%
bs=100 sw=10 sl=64 p95 90,950 us 89,774 us 90,219 us +1.3% +0.8%
bs=100 sw=10 sl=64 p99 90,950 us 89,774 us 102,794 us +1.3% -11.5%
bs=1000 sw=10 sl=64 throughput 1,439 tuples/sec 1,475 tuples/sec 1,318 tuples/sec -2.4% +9.2%
bs=1000 sw=10 sl=64 MB/s 0.878 MB/s 0.9 MB/s 0.804 MB/s -2.4% +9.2%
bs=1000 sw=10 sl=64 p50 686,076 us 681,267 us 802,593 us +0.7% -14.5%
bs=1000 sw=10 sl=64 p95 844,765 us 727,691 us 843,998 us +16.1% +0.1%
bs=1000 sw=10 sl=64 p99 844,765 us 727,691 us 894,722 us +16.1% -5.6%
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,331.76,200,128000,603,0.368,15493.46,23660.46,23660.46
1,100,10,64,20,1569.33,2000,1280000,1274,0.778,77929.11,90949.77,90949.77
2,1000,10,64,20,13902.22,20000,12800000,1439,0.878,686075.51,844765.43,844765.43

@kunwp1 kunwp1 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.

LGTM! One nit below.

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Nov 26, 2026
Merged via the queue into apache:main with commit ae5291c Nov 26, 2026
41 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/unused-version-list-and-image-setup branch November 26, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI frontend Changes related to the frontend GUI refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused version, list-item and CI setup code

4 participants