Repository navigation
Delete the legacy tests that no documented source backs - #4578
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
167 legacy tests and fixtures had no documented source that reproduces them: 96 locked fixtures, 69 never-locked ones with no reference, and two directories that held only a name and a lock. They are deleted, and deleted-fixtures.json records each test's body digest, the fixture files' digests and the reason, which the frozen-catalog and preservation checks now honour. Stale review entries go with them, the newly exposed untitled examples get reviewed names, and twelve of the exposed examples are generated from their pages instead.
This branch has not been 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.
As you decided: remove the legacy tests whose fixtures have no documented source. Stacked on #4577.
Problem
183 legacy fixture directories still ran through
TemplatedTestBase's legacy loader, which step 7 retires. 167 of them had no documented source that reproduces them:unresolvedinform-review.json: undeclared edits, page errors, text the normalizer can't read, commands outside the database, and so on;legacy-references.json;tsIncrement/tsSeconddirectories that held only a name and a lock.Change
Deleted: the 165 owning test methods and all 167 fixture directories. 40 test classes were left with no tests and were removed, along with 40 now-empty operator resource directories.
audits/catalog/deleted-fixtures.jsonrecords each deletion: the test with its body digest (null for the two unowned directories), every fixture file's SHA-256, and the reason (the gap that left it without a source). In the audits module,FixtureDeletions:removedrops the deleted tests from the frozen binding catalog, each exactly as recorded;retiredgives the preservation check the original digests;verifyrequires each deletion to be gone, recorded once, with a reason.LegacyBindingsTestuses all three, alongside the migration ledger.Removed with them:
unresolvedentries inform-review.jsonandlegacy-references.json;repair-review.jsonthat no remaining lock uses;Inventory:
example-names.json, such as$limit's "Return the First Five Movies";Generation: 12 of the newly unowned examples are generated from their pages, integrated under both mappers and promoted, for 38 generated cases.
$bitOr's "Long and Integer" example is excluded again, for the page error tracked in Follow up: report two mongodb/docs operator page errors #4563.Result
cutover.json, each with the strict check it fails;type/queryingByMultipleDataTypes, which needs alternative commands.Decisions for review
Verification
Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.