Skip to content

refactor: remove unused search, wrapper and Parca code - #9714

Merged
aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:refactor/unused-download-search-and-parca-code
Nov 26, 2026
Merged

aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:refactor/unused-download-search-and-parca-code

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Remove code that nothing uses from the workflow persistence service, the dashboard's workflow list, the canvas graph wrapper, a context-menu spec and the Parca deployment files (+48/−274 lines). There is no behavior change.

  • Workflow search clients: WorkflowPersistService.searchWorkflows and retrieveWorkflowsBySessionUser have no caller. Limit initial number to 20 and add a "Load more" button to the search result list #1988 removed the last call to the first, and feat(frontend): remove the deprecated project feature #7463 removed the project feature that called the second. Their private response formatter, the unused WORKFLOW_LIST_URL, WORKFLOW_SEARCH_URL and WORKFLOW_USER_ACCESS constants, and the test stub's searchWorkflows forwarder go with them, along with their spec cases.
  • Dashboard workflow list: UserWorkflowComponent loses five dead pieces.
    • A private nameWorkflow copy that nothing has called since Refactor Frontend to Centralize Downloads Using DownloadService #2920 moved ZIP downloads into DownloadService, which keeps its own.
    • An unused ExecutionMode import.
    • An empty next handler around a commented-out call.
    • An unread error argument.
    • A class comment whose steps name functions the component no longer has, such as searchWorkflows(), synchronousSearch() and asyncSearch().
  • Graph wrapper: JointGraphWrapper loses four unused pieces.
    • The event-tuple detail, unused since Refactor MiniMap #2301 removed the drag stream typed with it.
    • Exports nothing imports, which become file-local.
    • A static _async helper that only returned context.async.
    • A coeditor argument that removeCurrentEditing and removePropertyChanged never read; CoeditorPresenceService stops passing it.
  • Context-menu spec: ReactiveFormsModule, NzDropDownModule and NzModalModule in its two test beds are not needed. NzModalService stays.
  • Parca: parca-agent.env sets PARCA_AGENT_* variables that the pinned agent never reads; the Compose command already passes every value as a flag. The env file and its env_file entry go. The Compose comments, README, ParcaConfigSpec and the release-tarball test now point at the command's values.
Event PR / Commit
Introduced by Workflow search clients: #1885 (2023-04-20); nameWorkflow: #1629 (2022-08-17); graph wrapper: the coeditor argument #1676 (2022-10-06), the context helper #1433 (2022-02-07); context-menu spec: #2901 (2024-10-06); Parca env file: #5377 (2026-10-28)
Usage removed by searchWorkflows: #1988 (2023-06-12). retrieveWorkflowsBySessionUser: #7463 (2026-08-29). nameWorkflow: #2920 (2024-10-11). Graph event detail: #2301 (2024-01-28). Everything else: unused since introduction.

As of 2026-11-25:

  • The coeditor argument has gone unread for over 4 years, and the search client has had no caller for over 2 years.
  • The event-tuple detail has been unread for almost 2 years, and nameWorkflow uncalled for over a year.
  • The session-user client has been unused for almost 3 months, and the Parca variables unread for the month since they were added.

Any related issues, documentation, discussions?

Closes #9713.

How was this PR tested?

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

cd frontend
npx ng test --watch=false --include='**/workflow-persist.service.spec.ts' --include='**/user-workflow.component.spec.ts' --include='**/context-menu.component.spec.ts' --include='**/coeditor-presence.service.spec.ts' --include='**/joint-graph-wrapper.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)$')
cd ..
sbt "Config/testOnly org.apache.texera.observability.ParcaConfigSpec" Config/scalafmtCheckAll "Config/scalafixAll --check"
bash .github/scripts/test_create_release_tarballs.sh
(cd bin/single-node && docker compose config -q)
  • Frontend: the five specs run 301 tests on this branch and 304 on main, all passing.
    • The three extra on main are the deleted methods' own cases (searchWorkflows, retrieveWorkflowsBySessionUser and nameWorkflow). Every other test keeps its name and outcome.
    • Both typechecks, the AOT compile, prettier-eslint and ESLint pass.
  • Parca: ParcaConfigSpec runs 9 tests, all passing on both sides; four of them now read the Compose command instead of the env file. scalafmt and scalafix pass. The release-tarball regression test passes, and docker compose config accepts the single-node file.

To re-check, this returns no hits on this branch:

git grep -nwE "searchWorkflows|retrieveWorkflowsBySessionUser|makeRequestAndFormatWorkflowResponse|WORKFLOW_SEARCH_URL|_async|parca-agent\.env" -- frontend/src bin common/config

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

Generated-by: Claude Code (Claude Opus 5.5)

- WorkflowPersistService: the workflow list and search clients, their
  private formatter, three unused endpoint constants and the stub's
  forwarder had no caller.
- UserWorkflowComponent: a private nameWorkflow copy that nothing calls, an
  unused import, an empty next handler around a commented-out call, an
  unread error argument, and a class comment whose steps name functions the
  component no longer has.
- JointGraphWrapper: event-type detail nothing reads, exports nothing
  imports, a static helper that only read context.async, and a coeditor
  argument that removeCurrentEditing and removePropertyChanged never read.
- context-menu spec: module imports the component does not need.
- Parca: parca-agent.env set variables the agent never reads; the compose
  file, README, ParcaConfigSpec and the tarball test now point at the values
  the agent command passes.
@aglinxinyuan
aglinxinyuan requested review from kunwp1 and a balanced review from Copilot November 26, 2026 05:29
@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI ci changes related to CI docs Changes related to documentations infra common labels Nov 26, 2026

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

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

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

  • Committers with relevant context: @parshimers
    You can request their reviews formally with /request-review @parshimers.

  • Contributors with relevant context: @Ma77Ball, @yangzhang75, @zyratlo
    You can notify them by mentioning @Ma77Ball, @yangzhang75, @zyratlo 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.78%. Comparing base (f4adf7f) to head (263586a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9714      +/-   ##
============================================
- Coverage     91.78%   91.78%   -0.01%     
+ Complexity     5137     5135       -2     
============================================
  Files          1306     1306              
  Lines         58240    58221      -19     
  Branches       7582     7581       -1     
============================================
- Hits          53454    53436      -18     
+ Misses         2893     2892       -1     
  Partials       1893     1893              
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø)
amber 85.94% <ø> (-0.02%) ⬇️ Carriedforward from d07e8e9
computing-unit-managing-service 63.81% <ø> (ø)
config-service 87.50% <ø> (ø)
file-service 82.16% <ø> (ø) Carriedforward from d07e8e9
frontend 96.45% <100.00%> (+0.01%) ⬆️ Carriedforward from d07e8e9
notebook-migration-service 83.84% <ø> (ø)
pyamber 98.66% <ø> (ø)
result-service 86.48% <ø> (ø)
workflow-compiling-service 80.90% <ø> (ø)

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

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

✅ No material benchmark regressions detected

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

Compared against main f4adf7f 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 602 0.367 15,517/22,717/22,717 us 🟢 -22.6% / 🔴 +67.4%
⚪ bs=100 sw=10 sl=64 1,318 0.804 74,480/89,470/89,470 us ⚪ within ±5% / 🟢 -13.0%
⚪ bs=1000 sw=10 sl=64 1,474 0.899 679,066/730,623/730,623 us ⚪ within ±5% / 🟢 -18.3%
Baseline details

Latest main f4adf7f from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 602 tuples/sec 589 tuples/sec 956.03 tuples/sec +2.2% -37.0%
bs=10 sw=10 sl=64 MB/s 0.367 MB/s 0.359 MB/s 0.584 MB/s +2.2% -37.1%
bs=10 sw=10 sl=64 p50 15,517 us 16,870 us 10,527 us -8.0% +47.4%
bs=10 sw=10 sl=64 p95 22,717 us 29,347 us 13,570 us -22.6% +67.4%
bs=10 sw=10 sl=64 p99 22,717 us 29,347 us 16,510 us -22.6% +37.6%
bs=100 sw=10 sl=64 throughput 1,318 tuples/sec 1,307 tuples/sec 1,273 tuples/sec +0.8% +3.5%
bs=100 sw=10 sl=64 MB/s 0.804 MB/s 0.798 MB/s 0.777 MB/s +0.8% +3.5%
bs=100 sw=10 sl=64 p50 74,480 us 76,464 us 82,483 us -2.6% -9.7%
bs=100 sw=10 sl=64 p95 89,470 us 93,366 us 90,219 us -4.2% -0.8%
bs=100 sw=10 sl=64 p99 89,470 us 93,366 us 102,794 us -4.2% -13.0%
bs=1000 sw=10 sl=64 throughput 1,474 tuples/sec 1,482 tuples/sec 1,318 tuples/sec -0.5% +11.9%
bs=1000 sw=10 sl=64 MB/s 0.899 MB/s 0.905 MB/s 0.804 MB/s -0.7% +11.8%
bs=1000 sw=10 sl=64 p50 679,066 us 677,184 us 802,593 us +0.3% -15.4%
bs=1000 sw=10 sl=64 p95 730,623 us 704,844 us 843,998 us +3.7% -13.4%
bs=1000 sw=10 sl=64 p99 730,623 us 704,844 us 894,722 us +3.7% -18.3%
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,332.25,200,128000,602,0.367,15517.49,22716.85,22716.85
1,100,10,64,20,1517.73,2000,1280000,1318,0.804,74480.31,89470.47,89470.47
2,1000,10,64,20,13570.93,20000,12800000,1474,0.899,679066.43,730622.86,730622.86

@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 8973cf0 Nov 26, 2026
41 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/unused-download-search-and-parca-code branch November 26, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI common docs Changes related to documentations frontend Changes related to the frontend GUI infra refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused search, wrapper and Parca code

4 participants