Repository navigation
refactor: remove redundant imports, branches and exports - #9692
aglinxinyuan merged 2 commits into
Conversation
- The dataset and model detail pages tap the route params instead of switching each emission to a route.data subscription nothing reads. - The version uploader drops a 404 branch that does what the fall-through does, and its three constants become file-local. - Computing-unit actions, loop blocks and agent interaction drop an optional chain on a value dereferenced two lines up, a test-only export and a second import from the same module. - The licensing scripts drop a hash nothing reads and a test-helper parameter no caller passes. - PveResource drops two imports that `javax.ws.rs._` already covers. - SQLSourceOpExec's three fallback arms list types before `_`, which already matches them. - agent-service/.dockerignore goes: every image build passes the repository root as the context, so Docker reads the root ignore file.
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9692 +/- ##
=========================================
Coverage 91.77% 91.77%
Complexity 5139 5139
=========================================
Files 1306 1306
Lines 58291 58277 -14
Branches 7595 7590 -5
=========================================
- Hits 53496 53485 -11
Misses 2896 2896
+ Partials 1899 1896 -3
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 405 | 0.247 | 23,298/36,530/36,530 us | 🔴 -13.3% / 🔴 +169.2% |
| 🟢 | bs=100 sw=10 sl=64 | 963 | 0.588 | 102,264/117,690/117,690 us | 🟢 -14.0% / 🔴 +30.4% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,120 | 0.684 | 888,271/962,913/962,913 us | ⚪ within ±5% / 🔴 -15.0% |
Baseline details
Latest main 315de0b from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 405 tuples/sec | 467 tuples/sec | 956.03 tuples/sec | -13.3% | -57.6% |
| bs=10 sw=10 sl=64 | MB/s | 0.247 MB/s | 0.285 MB/s | 0.584 MB/s | -13.3% | -57.7% |
| bs=10 sw=10 sl=64 | p50 | 23,298 us | 21,076 us | 10,527 us | +10.5% | +121.3% |
| bs=10 sw=10 sl=64 | p95 | 36,530 us | 32,277 us | 13,570 us | +13.2% | +169.2% |
| bs=10 sw=10 sl=64 | p99 | 36,530 us | 32,277 us | 16,510 us | +13.2% | +121.3% |
| bs=100 sw=10 sl=64 | throughput | 963 tuples/sec | 974 tuples/sec | 1,273 tuples/sec | -1.1% | -24.4% |
| bs=100 sw=10 sl=64 | MB/s | 0.588 MB/s | 0.594 MB/s | 0.777 MB/s | -1.0% | -24.3% |
| bs=100 sw=10 sl=64 | p50 | 102,264 us | 97,570 us | 82,483 us | +4.8% | +24.0% |
| bs=100 sw=10 sl=64 | p95 | 117,690 us | 136,790 us | 90,219 us | -14.0% | +30.4% |
| bs=100 sw=10 sl=64 | p99 | 117,690 us | 136,790 us | 102,794 us | -14.0% | +14.5% |
| bs=1000 sw=10 sl=64 | throughput | 1,120 tuples/sec | 1,118 tuples/sec | 1,318 tuples/sec | +0.2% | -15.0% |
| bs=1000 sw=10 sl=64 | MB/s | 0.684 MB/s | 0.682 MB/s | 0.804 MB/s | +0.3% | -14.9% |
| bs=1000 sw=10 sl=64 | p50 | 888,271 us | 887,988 us | 802,593 us | +0.0% | +10.7% |
| bs=1000 sw=10 sl=64 | p95 | 962,913 us | 955,927 us | 843,998 us | +0.7% | +14.1% |
| bs=1000 sw=10 sl=64 | p99 | 962,913 us | 955,927 us | 894,722 us | +0.7% | +7.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,493.89,200,128000,405,0.247,23298.49,36529.80,36529.80
1,100,10,64,20,2076.93,2000,1280000,963,0.588,102264.29,117689.50,117689.50
2,1000,10,64,20,17850.04,20000,12800000,1120,0.684,888270.97,962913.00,962913.00
kunwp1
left a comment
There was a problem hiding this comment.
LGTM! One optional suggestion and two nits below.
SQLSourceOpExec.hasNext and AsterixDBSourceOpExec.batchAttributeToString had the same `... | _` fallback arm as the three already changed. THROTTLE_TIME_MS in dataset-detail.component.ts is used only in that file: workspace.component.ts and the hub spec import the copy in hub-workflow-detail.component.ts.
What changes were proposed in this PR?
Remove redundant code from the frontend, the licensing scripts, two Scala sources and the agent service (+26/−41 lines). There is no behavior change.
route.paramsemission was switched tothis.route.data, and the empty.subscribe()threw away what that emitted. The pages nowtapthe params, so the same fetches run in the same order without the extra subscription. The dataset page'sTHROTTLE_TIME_MSalso becomes file-local:workspace.component.tsand the hub spec import the copy inhub-workflow-detail.component.ts, never this one.done()and returned, which is what the handler already does for every error it does not retry. Its three constants become file-local: nothing importedFINISHED_TASK_HIDE_DELAY_MS, and only the spec imported the other two. The spec now states the retry policy it expects.confirmAndTerminatereadsunit.computingUnit.uriandunit.computingUnit.namebeforeunit?.computingUnit.type, so the?.goes.LOOP_END_OP_TYPEbecomes file-local. Only its spec imported it, and the spec now checks the backend's"LoopEnd"name directly.agent.servicebecome one.audit_jar_licenses.pystored each group's notice hash in a field that nothing reads, and the NOTICE test helpermake_jarhad anextraparameter that no caller passes.PveResource: dropsimport javax.ws.rs.DELETEandimport javax.ws.rs.PathParam, whichimport javax.ws.rs._already covers.SQLSourceOpExecandAsterixDBSourceOpExec: five fallback arms listBOOLEAN,STRINGandANYbefore a trailing_, as incase AttributeType.BOOLEAN | AttributeType.STRING | AttributeType.ANY | _. The_matches those types as well, so each becomescase _.agent-service/.dockerignore: Docker reads the ignore file at the root of the build context. CI's image matrix (build-and-push-images.yml) andbin/build-images.shboth use the repository root as the context, and the agent Dockerfile copiesagent-service/...paths from there, so the root.dockerignoreapplies and this file is never read.PveResource: #5035 (2026-05-13);SQLSourceOpExec: #1013 (2021-02-11);AsterixDBSourceOpExec: #1044 (2021-02-25);agent-service/.dockerignore: #4495 (2026-04-28)agent-service/.dockerignore: #4544 (2026-05-01) added the agent image's Dockerfile with paths from the repository root, so no build has read the file. Everything else: unused or redundant since introduction.As of 2026-11-25:
agent-service/.dockerignorehas gone unread for almost 7 months.Any related issues, documentation, discussions?
Closes #9691.
How was this PR tested?
Ran on this branch and on
mainatafc2b3db7a(Windows 11; Node 24 with Yarn 4.14.1; Python 3.12 with pytest 9.0.3 and CI's pinnedruff0.14.7; JDK 17):audit_jar_licenses.pyprints the same report on both sides for 60 jars from the local Coursier cache.source.sqlsuites run 204 tests, all passing on both sides.agent-service/.dockerignore: no image was built. The build context comes fromcontext="."for everybin/dockerfiles/*.dockerfileinbuild-and-push-images.yml, and from the..thatbin/build-images.shpasses frombin/.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)