Repository navigation
Delete Guard-stage tests that assert spelling, slice 3 (#5833) - #5839
Merged
Merged
Conversation
CommandDeadlineScannerAdoptionTests and CommentFilterAdoptionTests are rosters of which test pins use which helper; CollectionLogWebRowPreservesFullTextPinTests pins one call's argument text. None fails on a product defect.
Deletes the methods that assert a call's text, a signature, a SQL fragment, a description's wording or a roster, and the private helpers only they used. Censuses that fail on a real defect (a missing deadline, a leaked statement, an alert past the master switch, a Lite/Darling drift) stay.
…helpers (slice 3, #5833)
…budget ratchet files (#5833 slice 2)
…ovenancePinTests (#5833)
Three doc crefs in test files and two in DarlingCloudIdentityProbe named deleted tests; CrossAppGuardCiGateTests exempted four Lite.Tests reads that only the deleted CommentFilterAdoptionTests and NeitherFixHasALiteTwinToDriftFrom made.
… census and keep LockedModeRestoreCoverageTests on the LF roster (#5833 slice 2)
erikdarlingdata
marked this pull request as ready for review
October 15, 2026 04:32
McpToolsListBudgetTests.cs: the slice removed the tools/list byte ratchet, so dev's TotalCeilingBytes raise (#5819) goes with it; the served-shape checks stay.
CommentFilterAdoptionTests.cs: deleted by slice 1, trimmed by slice 2 (its DocCommentHygieneTests entry). The deletion stands.
CommentFilterAdoptionTests.cs: deleted by slice 1, trimmed by slice 3 (its RefreshCeilingProvenancePinTests entry and census summary). The deletion stands. RepoFileAdoptionTests.cs: deleted by slice 3, trimmed by slice 2 (DocCommentHygieneTests entry, LF roster). The deletion stands.
…ys deleted (the roster is gone; dev's change to it was an entry)
This was referenced Oct 15, 2026
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.
Claude posting for Erik Darling.
Part of #5833.
Why
The ruling on #5833: "tests should be load bearing." This is slice 3 of the Guard-stage triage: 37 Darling test files that carry
[Trait("Stage", "Guard")]and read source text. Each test method was judged on its own. It stays if it fails on a real defect. It goes if it fails on a correct change: a signature or call at a line, SQL or comment wording, a roster, a doc-comment figure, or a file convention. Nothing was moved, skipped or replaced, and no test was added. No production code changed.What changes
Counts: 8 files deleted, 15 trimmed, 14 kept; 86 test methods removed (101 Guard test cases, counting Theory rows).
sourceliteral, the tool's serializer lines. Kept: the dense migration ladder, the probe mapping a V138 store to 138 (byInvoke), the reader census (an unscoped read ofpg_server_configshadows settings by name), and the file-settings query parity.plan_force_actions.detailoutside the scrub leaks unsanitized detail text (masking family). See Undecided.new PlanWarningspellsRuleNumber =;IsRuleDisabled(7/29)text). Kept the runtime censuses: every analyzer finding carries a rule number, and disabling every rule leaves zero analyzer findings (a guard not wired to config).Clipboard.GetTextcrashes the app when another process holds the clipboard; the re-entrancy guard and its span stop a held Ctrl+V opening several tabs; the selection handler subscribed once. No behavior test can reach a WPF window. See Not done forPlanViewerCapabilities_NoneDisappeared.DarlingWorker/connector call arguments ("ERROR", 0, 0, 0,runClock.ElapsedMillisecondsslots, database stamping) and theirReadSourcehelper. 43 behavior tests stay.procedure_statsand the floor is an index probe, not a globalmin()(query shapes with a known cost),DatabaseNamesOf, and the tier-clock routing behavior.PerformanceMonitorLite-.zip.provision-roles.sqland the C# column ACL: a BYO viewer seat gets 42501, or a role is granted a secret column.QueryStoreIntervalConvergencePinTests(5 source pins; its own summary says the live tests in the same file prove the behavior) and the now-unusedProductSourcereader. The live class is untouched.Invoke), and the raw-row writer census (see Undecided).RowCappedDeleteSql(table.Legacyand drop ordering; its own summary namesQueryStoreIntervalRetentionLiveTestsas the behavior proof.KEEP (wiring): losing it leaves orphaned per-database state unpruned.CopyBatchOnceAsync, plus their helpers. Kept the two behavior tests of the fence (a failed write poisons the server until a clean write ends).query_store_stats.KEEP (wiring).Darling/README.mdbeside the test binary; nothing else read it.RepoFilereader, and the LF-reading pins rostered.RuntimePreconditionReadWiringTests: capability is asked before precondition (KEEP (wiring): the order decides which status a read returns), every wired read names a real collector, and both products wire the same reads (parity).pg_database_sizeon the serial loop scales with the store and overran its 5 s deadline on a large store; the census holds it to budgeted callers.default_trace_events.event_timeis the server's local clock; a read that does not de-skew it returns wrong times.Cost=Slowtrait roster and the CI wiring text that acts on it..sqlplanfile. The WPF save dialog has no behavior test.Other edits the deletions required: a stale
CommentFilterAdoptionTestsroster entry for the deletedRefreshCeilingProvenancePinTests.cs(it failed the Guard run until removed; the class summary's count of doc-run collectors went from eight to seven with it), and five<see cref>references to deleted classes or methods turned into<c>text inPgExtensionDependencyContractTests,QueryStoreDatabaseWatermarkWiringPinTests,RefreshCeilingStalenessTests,RepoFile.cs,QueryStoreStatePruneTestsandQueryStoreTouchGuardSingleSourceTests.Shared helpers left in place:
RepoFile,CSharpSourceWalkerandWindowsPowerShellStartInfoare used by files outside this slice. No production code is left unused by these deletions.Undecided (kept; the coordinator rules)
PlanForceActionDetailCensusTests: the defect is real (a rawdetailread leaks), but the mechanism is an exact per-file count of literals naming both words, so a correct second reader also fails it.PgServerConfigScopeRungTests.EveryProductReadOfTheConfigTable_...andQueryStoreIntervalLatestRungTests.RawQueryStoreRows_EnterTheStoreOnlyThroughTheWriterThatAppliesThem: real defects (a duplicate-name read; a write that bypasses the applier), but both carry an exact count or a named-exception roster.TheProbeMapsAStoreStoppedHereToThisRung, two files): theInvokeassertions are behavior, but the same methods also assertreader.GetBoolean(<n>)text and that a comment block exists. A trim inside the method would leave the behavior half.ScratchDatabaseDisposalCensusTests,ScratchPostgresQuiesceCensusTests,StaThreadCensusTests: test-harness rules (leaked scratch databases slow every run; an unquiesced force drop crashed a TimescaleDB worker on CI; an owned STA thread overlaps the shared one). None is a product defect, and none fails on its own when broken.Not done
PlanViewerCapabilityPinTests.PlanViewerCapabilities_NoneDisappearedshould be deleted (a probe-table baseline ratchet with a regen switch); I found it after the gate run and left it rather than push it ungated.CollectorRuntimePreconditionTestsinRuntimePreconditionMissTests.cs, the live classes)..github/scripts/darling-shard-weights.jsonstill listsDarling.Tests.RepoFileResolutionEquivalenceTests(0.23). It is a table, and the brief said not to touch the shard scripts;darling-shard-pack.pyshould warn on a weight for a class that no longer exists rather than carry it.RepoFileAdoptionTestsin eight files.Test plan
dotnet build Darling/Darling.Tests -c Debug: 0 Warning(s), 0 Error(s). No Lite file changed.pre-push.sh), first run, before theCommentFilterAdoptionTestsroster fix:[guard-darling] Darling.Tests Total: 4500, Errors: 0, Failed: 1(the stale roster entry; dev: 4601)[guard-lite] Lite.Tests Total: 1281, Errors: 0, Failed: 0(dev: 1281)classes: darling 258, lite 35; classes-darling 2807 passed + 1857 with the same one failure; classes-lite 622 passed.[guard-darling] Total: 4500, Failed: 2(CommentFilterAdoptionTests.TheCensusSummary_CountsTheMapItDescribesandTheCensusSummaryPin_ReportsDriftFromEitherSide: the class summary said "Eight collect a doc run", now seven);[guard-lite] Total: 1281, Failed: 0; classes-darling 2807 passed, 1857 with the same two; classes-lite 622 passed. GATE RED on those two only.Darling.Tests.exe -class *CommentFilterAdoptionTests -class *DocCommentHygiene*: Total: 82, Failed: 0.CommentFilterAdoptionTests.cs, and the first commits were pushed before the second gate run finished. CI decides.SECTION: Changed
ENTRY: - Guard-stage spelling tests deleted, slice 3 ([#PR]) - 86 test methods in 23 files that asserted how code is spelled, not what it does.