Repository navigation
test: remove provider tests that dependencies already run, and low-value tests - #1785
Merged
Merged
Conversation
…lue tests Class A (exact duplicates; the dependency's own Fork Tests run them on the pinned commits): the GPTOSSOptimizationTests target, whose twelve files were symlinks into libs/mlx-swift and libs/mlx-swift-lm; the provider copies of the SDK's GLM5NextAlignedPayloadReaderTests, GLM5NextArtifactCachePolicyTests and GLM5NextArtifactLoaderTests and their namespace file; SequenceStateMachineTests (the SDK suite covers every case); EvalProbeTests (mlx-swift EvalProbeTests). Class D (little value, David's ruling on the defaults): tests that assert only a constant or a default, a sleep-bound test that could not detect what it names, a reconnect test whose sibling runs the same steps and more, a supervisor restart test that a faster test covers, a no-assertion diagnostic that no lane runs, and redundant parameter cases (SSDBlockIndex counts 4097/20000, three --help cases of the upgrade notice test). The shard weights drop the deleted suites' entries; docs/developer/test.md no longer describes the removed SDK copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…behind FlashNextReclaimDiagnostics was the only caller that passed a beforeReload closure to runReloadLifecycle, so the parameter and its call are removed. The coordinator reconnect section header had no test left under it. The GLM5Next test-guide paragraph is rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
added a commit
that referenced
this pull request
Nov 4, 2026
dev's one ci.yml change, Release Integrity's new scripts/test-provider-release-notes.py, goes into ci-master.yml, where Release Integrity now runs; provider-tests.yml keeps this branch's lanes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 4, 2026
This branch had an error being deployed
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.
Do not merge: David schedules the merge.
Why
David asked to remove provider tests that a dependency's own CI already runs, and tests with little value. He ruled the class defaults: remove class A, trim class B to the wiring check, keep class C, remove class D; tests kept by rule stay. The inventory with every candidate, its evidence and the tests left in place is
work/d-inference-test-dedup-inventory.mdin the layr-labs work folder (DRAFT, 2026-11-04).Seconds below are measured: suite seconds from
scripts/provider-test-shard-weights.json, per-test seconds and XCTest seconds from the dev CI run 41852182460 (3ac8dd7).Class A: exact duplicates, removed
Each covering test runs unskipped in the dependency's Fork Tests on the pinned commit: Layr-Labs/mlx-swift-lm 32f5c744 (run 41707650518, main push, green) and Layr-Labs/mlx-swift c633d221 (run 40602051379, green).
GPTOSSOptimizationTeststarget: 7 symlinks intolibs/mlx-swift-lm/Tests/MLXLMTests(CBv2ModelTests, GPTOSSCompiledExperts, GPTOSSGateUpFusion, GPTOSSPrefillOutput, GPTOSSRealCheckpointParity, IncrementalCheckpointMaterialization, QuantizedSwitchLinearConstantCast)Tests/MLXLMTests/*.swift@32f5c744(e.g.CBv2ModelTests.swift:231,472,777,945,GPTOSSPrefillOutputTests.swift:12)GPTOSSOptimizationTeststarget: 5 symlinks intolibs/mlx-swift/Tests/MLXTests(ConstantArrayCastCache, GPTOSSMXFP4DecodeTail, GPTOSSMXFP4Kernel, QuantizedBiasAccumulator, QuantizedConstantCast)Tests/MLXTests/*.swift@c633d221:5-6ProviderCoreTests/.../GLM5Next/GLM5NextAlignedPayloadReaderTests.swift,GLM5NextArtifactCachePolicyTests.swift(suiteUnitTests) and their namespace fileTests/MLXLMTests/Unit/Models/GLM5NextAlignedPayloadReaderTests.swift@32f5c744:11,GLM5NextArtifactCachePolicyTests.swift@32f5c744:11(same source up to formatting)ProviderCoreTests/.../GLM5Next/GLM5NextArtifactLoaderTests.swift(suiteKernelTests)Tests/MLXLMTests/Kernel/LLM/GLM5NextArtifactLoaderTests.swift@32f5c744:159(byte-identical)ProviderCoreTests/Inference/Streaming/SequenceStateMachineTests.swift(5 tests)Tests/MLXLMTests/Unit/Common/SequenceStateMachineTests.swift@32f5c744:13(14 tests, all five cases)ProviderCoreTests/Inference/Engine/EvalProbeTests.swiftTests/MLXTests/EvalProbeTests.swift@c633d221:19,30GPTOSSRealCheckpointParityTestsskips on both sides (it needs a real checkpoint), so removing the provider copy loses no executed coverage. The GPT-OSS copies were added on 2026-09-05 (#840), before the SDK had Fork Tests (2026-09-28, mlx-swift-lm #159); the GLM5Next copies were added on 2026-10-19 (a735c3a), before the SDK suites landed (2026-10-21, mlx-swift-lm #314).Class B: trimmed to the wiring check
None trimmed. Each candidate's dependency re-assertion and its provider wiring share one test body (NemotronSuperLocalMTP/MTPBatched/PrefixCache/Paged, EngineV2BenchmarkMTPVerification, DistributedPrefixPartition, GLM5NextCalibrationQuoteOwnership), or the test is a regression test kept by rule (GLM5NextMediaRouting OpenRouter video, #1561). Trimming them would mean rewriting tests, which the ruling does not cover. The inventory lists each.
Class D: little value, removed
DarkbloomCLITests/ClusterServiceLoginAgentTests.swift@3ac8dd76a:92theServiceSupervisorRestartsAKilledServiceAfterTheBackoffAndNamesItselflogNameandrestartHintare never assertedDarkbloomCLITests/ClusterMemberSupervisorTests.swift@3ac8dd76a:69, 1.256 sProviderCoreTests/Server/Distributed/DistributedLocalServerTests.swift@3ac8dd76a:65distributedLocalServerHasNoLifetimeAndServesUntilStopped:5, 0.051 sProviderCoreTests/Coordinator/CoordinatorIntegrationTests.swift@3ac8dd76a:330coordinatorReconnectAfterDrop:390outboundDeliverySurvivesReconnect, 1.014 sDarkbloomCLITests/MacOSUpgradeNoticeTests.swift@3ac8dd76a:30, casesmodels --help,start --help,stop --help--helptakes the same path--versionand--helpcases (kept)ProviderCoreTests/KVCacheSSD/SSDBlockIndexTests.swift@3ac8dd76a:31, counts 4_097 and 20_000tieBreakOrder:69DarkbloomFanCoreTests/FanPolicyTests.swift@3ac8dd76a:8defaultsProviderCoreTests/KVCacheSSD/SSDPrefixCacheTests.swift@3ac8dd76a:639verifiedWeightBindingRequiredKVCacheSSD/SSDPrefixCacheFactoryTests.swift@3ac8dd76a:155ProviderCoreTests/KVCacheSSD/SSDPrefixCacheTests.swift@3ac8dd76a:1868receiptRetentionProviderCoreTests/KVCacheSSD/SSDCompleteCheckpointStageCapTests.swift@3ac8dd76a:61attentionCapsUnchangedSSDPrefixCacheTests.swift@3ac8dd76a:720ssdKnobsProviderCoreTests/Inference/Engine/MultiModelBatchSchedulerEngineTests.swift@3ac8dd76a:15multiModelEngineReportsRegistry:24multiModelEngineReturnsSortedIDsDarkbloomCLITests/RestartCommandTests.swift@3ac8dd76a:19restartConfigurationrestartParses(registration)DarkbloomCLITests/WatchdogCommandTests.swift@3ac8dd76a:21watchdogConfigurationwatchdogParsesProviderCoreTests/NemotronSuperLongContextTests.swift@3ac8dd76a:15servedContextIsTheVerifiedCeilingProviderCoreTests/Coordinator/NativePairMember/NativePairMemberInvocationTests.swift@3ac8dd76a:203thisBuildsInstalledOwnerServesACommittedStartOnlyOverTheLinkstatic let ... == trueProviderCoreTests/Benchmark/ThroughputSweepTests.swift@3ac8dd76a:436strategyLabel (its suite is now empty and is removed)ProviderCoreTests/Benchmark/ThroughputSweepTests.swift@3ac8dd76a:107fixedDecodeBudgetProviderCoreTests/Service/WatchdogTests.swift@3ac8dd76a:73defaultGraceIsFiveMinutesProviderCoreTests/Inference/Distributed/ClusterLocalServingTests.swift@3ac8dd76a:23theNoticeIsOnePlainLineProviderCoreTests/Inference/Models/GLM5Next/GLM5NextLocalLoadPolicyTests.swift@3ac8dd76a:266providerLoadsUseTheQualifiedServingPolicyProviderCoreTests/FlashNextReclaimDiagnostics.swift@3ac8dd76a:14No removed test is a security, attestation, billing, signing, release-integrity, updater or incident-regression test; each was checked with
git logon its file and function. Candidates in those categories stay and are listed in the inventory under "kept by rule".Seconds saved per lane
The provider shards ran 959 s of Swift tests in run 41852182460 (299, 289 and 371 s), so this is about 5.0 %. Measured on this PR (run 41868389528, head cd7a225): 300, 276 and 344 s, 920 s in all, 39 s less; the slowest shard is 27 s shorter. Shard order and runner speed differ between runs, so read these as one sample. The build also stops compiling and linking the
GPTOSSOptimizationTestsbundle; that time is not measured here.Shard plan (
scripts/provider-test-shards.py, 3 shards): estimated 382.3 s per shard before, 371.0 s after. The 7.79 s of mlx-swift XCTest classes were not in the weights (SwiftPM writes no XCTest xUnit report for a serial run); they ran in the last shard. Three shards stay. Removing entries lets the greedy plan re-place the other suites;NemotronSuperManagedSlotTestsandQwen4PagingPrefixIntegrationTestsstill land in different shards (KEPT_APART).Hooked up
provider-swift/Package.swift: theGPTOSSOptimizationTeststest target is removed with its directory.scripts/provider-test-shard-weights.json: 16 entries of deleted suites removed (10 GPT-OSS suites,UnitTests,KernelTests,SequenceStateMachineTests,EvalProbeTests,FlashNextReclaimDiagnostics,SchedulerPrefillBenchmarkTests). No other weight changed.scripts/test-provider-test-shards.py: dropsGPTOSSOptimizationTestsfrom the serial-target list.docs/developer/test.md: the GLM5Next SDK copies paragraph now says the SDK's Fork Tests run them.swift test list, so the removed tests drop out of both sides.Refactor pass
An independent subagent reviewed the diff statically and pushed cd7a225: it removed the
beforeReloadparameter ofFlashNextQuietCancellationReloadLiveTests.runReloadLifecycle, whose only caller was the deleted diagnostic, an emptyMARKsection inCoordinatorIntegrationTests.swift, and re-wrapped one doc line. No assertion changed.Not changed
ci.ymland the Provider SDK Tests lane. Its suites duplicate the SDK's Fork Tests, but the lane is not in the gate and builds with the provider's SDK 27 toolchain; it is a separate decision in the inventory.NemotronSuperRecurrentAdmissionTests: duplicates an SDK test, butscripts/nemotron-qualification/templates/Provider.Package.swiftcompiles the file.scripts/provider-test-shard-weights.jsonkeeps the staleEnrollmentRecoveryTestsweight (22.2 s, measured 0.02 s); refreshing weights is out of scope here.🤖 Generated with Claude Code