Repository navigation
refactor: remove unused helpers, constants and bindings - #9696
Merged
aglinxinyuan merged 3 commits intoNov 26, 2026
Merged
aglinxinyuan merged 3 commits into
aglinxinyuan merged 3 commits into
Conversation
- The resource registry's `setCover` hook has no caller outside its own spec: the dataset and model pages call their services directly. - CollaborationResource names four case bindings it never reads. - The result table's `#statsRow` template ref is never read. - The search-results spec's card-template host imports NgTemplateOutlet without using it. - TexeraWebApplication keeps a commented call, with its TODO, to discardUncommittedChangesOfAllDatasets, which no longer exists. - AddMetaInfLicenseFiles imports the Universal plugin's auto-imports without using any of them.
aglinxinyuan
requested review from
kunwp1
and
a balanced review from Copilot
November 26, 2026 00:29
Contributor
Automated Reviewer SuggestionsBased on the
|
Contributor
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 443 | 0.27 | 21,515/43,248/43,248 us | 🔴 +66.9% / 🔴 +218.7% |
| 🔴 | bs=100 sw=10 sl=64 | 1,254 | 0.765 | 78,912/109,013/109,013 us | 🔴 +8.1% / 🔴 +20.8% |
| 🔴 | bs=1000 sw=10 sl=64 | 1,424 | 0.869 | 692,223/801,601/801,601 us | 🔴 +6.6% / 🟢 -13.8% |
Baseline details
Latest main d1a0c5e from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 443 tuples/sec | 595 tuples/sec | 956.03 tuples/sec | -25.5% | -53.7% |
| bs=10 sw=10 sl=64 | MB/s | 0.27 MB/s | 0.363 MB/s | 0.584 MB/s | -25.6% | -53.7% |
| bs=10 sw=10 sl=64 | p50 | 21,515 us | 15,008 us | 10,527 us | +43.4% | +104.4% |
| bs=10 sw=10 sl=64 | p95 | 43,248 us | 25,910 us | 13,570 us | +66.9% | +218.7% |
| bs=10 sw=10 sl=64 | p99 | 43,248 us | 25,910 us | 16,510 us | +66.9% | +162.0% |
| bs=100 sw=10 sl=64 | throughput | 1,254 tuples/sec | 1,270 tuples/sec | 1,273 tuples/sec | -1.3% | -1.5% |
| bs=100 sw=10 sl=64 | MB/s | 0.765 MB/s | 0.775 MB/s | 0.777 MB/s | -1.3% | -1.5% |
| bs=100 sw=10 sl=64 | p50 | 78,912 us | 78,018 us | 82,483 us | +1.1% | -4.3% |
| bs=100 sw=10 sl=64 | p95 | 109,013 us | 100,858 us | 90,219 us | +8.1% | +20.8% |
| bs=100 sw=10 sl=64 | p99 | 109,013 us | 100,858 us | 102,794 us | +8.1% | +6.1% |
| bs=1000 sw=10 sl=64 | throughput | 1,424 tuples/sec | 1,460 tuples/sec | 1,318 tuples/sec | -2.5% | +8.1% |
| bs=1000 sw=10 sl=64 | MB/s | 0.869 MB/s | 0.891 MB/s | 0.804 MB/s | -2.5% | +8.1% |
| bs=1000 sw=10 sl=64 | p50 | 692,223 us | 689,881 us | 802,593 us | +0.3% | -13.8% |
| bs=1000 sw=10 sl=64 | p95 | 801,601 us | 751,862 us | 843,998 us | +6.6% | -5.0% |
| bs=1000 sw=10 sl=64 | p99 | 801,601 us | 751,862 us | 894,722 us | +6.6% | -10.4% |
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,451.59,200,128000,443,0.270,21515.31,43247.75,43247.75
1,100,10,64,20,1595.14,2000,1280000,1254,0.765,78911.83,109013.34,109013.34
2,1000,10,64,20,14044.28,20000,12800000,1424,0.869,692223.08,801601.08,801601.08
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9696 +/- ##
============================================
- Coverage 91.79% 91.76% -0.03%
+ Complexity 5137 5135 -2
============================================
Files 1306 1305 -1
Lines 58272 58111 -161
Branches 7583 7580 -3
============================================
- Hits 53489 53324 -165
- Misses 2893 2894 +1
- Partials 1890 1893 +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:
|
…-setter-bindings-and-imports
- PresetService: getOperatorPreset, filterOperatorPresetProperties and the private ajvStrip validator had no caller outside their own spec. - UserConfigService: set and delete returned observables that no caller read. - WorkflowMetricsRecorder.init: setActiveExecutionsSupplier already binds the instruments, so the second ensureBound() call did nothing. - OtelInit: initialized only ever holds an OpenTelemetrySdk, so resetForTest's fallback arm could not run. - StorageConfig: 12 JDBC, Iceberg and S3 name constants that nothing read; every reader uses the EnvironmentalVariable copies.
aglinxinyuan
deleted the
refactor/unused-cover-setter-bindings-and-imports
branch
November 26, 2026 04:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Remove code that nothing uses, or that repeats work already done, across 16 files in the frontend, Amber, the shared config and observability modules, and the sbt license helper (+22/−152 lines). There is no behavior change.
PresetService:getOperatorPreset,filterOperatorPresetPropertiesand the privateajvStripvalidator they share have no caller outside their own spec. Their two spec blocks go with them.UserConfigService:setanddeletereturn their request observables, and no caller reads them;PresetService, the only caller, discards both. They now returnvoid, so theshareReplaycarriers and theofimport go. Each call still sends its request once and updates the local dictionary when the request succeeds.ResourceDescriptor.setCoverand its dataset and model implementations have no caller outside the registry's own spec. The dataset and model pages set a cover throughDatasetService.updateDatasetCoverImageandModelService.updateModelCoverImagedirectly. The spec drops itssetCovercall, the matching assertion and theupdateModelCoverImagestub, and the workflow descriptor's comment stops naming the hook.StorageConfig: 12 JDBC, Iceberg and S3 name constants that nothing reads. Every reader, such asComputingUnitManagingResource, uses the same names fromEnvironmentalVariable. The four cleanup and warehouse constants stay, becauseStorageConfigSpecreads them.WorkflowMetricsRecorder.initcallsWorkflowMetrics.ensureBound()right aftersetActiveExecutionsSupplier, which already calls it.OtelInit.initializedonly ever holds anOpenTelemetrySdk, so it is now typed that way, andresetForTestloses a fallback arm that could not run.CollaborationResource: theheartbeat,tryLock,acquireLockandrestoreVersionpatterns bind names that their bodies never read, so each becomes_.#statsRowtemplate reference.search-results.component.spec.ts: the card-template host importsNgTemplateOutlet, which its template never uses.TexeraWebApplication: drops a commented-out call todiscardUncommittedChangesOfAllDatasetsand its TODO. That method no longer exists.AddMetaInfLicenseFiles: dropsimport com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport._, which nothing in the helper uses.PresetService: #1164 (2022-01-14);UserConfigService: #1162 (2021-06-27); resource registry: #8299 (2026-08-31);StorageConfig: #3337 (2025-04-06); telemetry: #5375 (2026-10-25) and #5376 (2026-10-27);CollaborationResource: #1427 (2022-02-15); result table: #2931 (2024-10-14); search results spec: #6565 (2026-07-20);TexeraWebApplication: #2391 (2024-02-20), commented out by #2733 (2024-07-15);AddMetaInfLicenseFiles: #4367 (2026-04-17)TexeraWebApplication: #3314 (2025-03-12) deleteddiscardUncommittedChangesOfAllDatasets.AddMetaInfLicenseFiles: #4449 (2026-04-29) removed the lastUniversalreference. Everything else: unused since introduction.As of 2026-11-25:
UserConfigServicereturn values in the more than 5 years since they were added.PresetServicehelpers have had no caller outside their spec for almost 5 years, and theCollaborationResourcebindings have been unused for as long.#statsRowreference has been unread for over 2 years.StorageConfigconstants have been unread, for over a year and a half each.setCoverhook has had no caller in the almost 3 months it has existed, and the telemetry duplicates have done nothing in the month since they were added.Any related issues, documentation, discussions?
Closes #9695.
How was this PR tested?
Ran on this branch and on
mainatd1a0c5e673(Windows 11; Node 24 with Yarn 4.14.1; JDK 17):main, all passing. The 7 extra onmainare the deleted helpers' own spec cases; every other test keeps its name and outcome. Both typechecks, prettier-eslint and ESLint pass.ConfigandObservabilitysuites and the two Amber specs run 212 tests, all passing on both sides with the same names and outcomes. scalafmt and scalafix pass for all three projects.AddMetaInfLicenseFiles.scalacompiled with and without the import.To re-check, both commands return no hits on this branch:
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)