Repository navigation
Seed the $bits* fixtures as their page does and convert them - #4569
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
The 12 $bits* query fixtures share seed data whose third document had a: 20.0, a Double. The page inserts it through mongosh, which stores the whole-number literal as an Int32, so no documented reference reproduced them. The seed now has a: 20; the references pin the pages the gaps already named, and all 12 convert and pass under both mappers. The ledger records each changed data.json as a reviewed file edit with the digest it started from, so the preservation check still holds every retired file to the corpus snapshot.
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.
Follows up the #4547 finding, as you asked ("fix the seed data"). Stacked on #4568.
Problem
The 12
$bits*query fixtures ($bitsAllClear,$bitsAllSet,$bitsAnyClearand$bitsAnySet, each withbinDataBitmask,bitPositionArrayandintegerBitmask) share one seed file. Its third document was:The legacy reader stores that
20.0as a Double. The page inserts the same text through mongosh, which stores a whole-number literal as an Int32. So no documented reference reproduced these fixtures, and they stayed on the legacy path:legacy-references.jsonlisted them asRESIDUAL_DIFFERENCE, a type difference at/2/a, with no lock explaining why.Change
ais now20in all 12data.jsonfiles, matching what the page's insert stores. The pages print the result as20or20.0, and both encode as the whole-number constraint (an Int32 or a Double), so the expected results needed no change.legacy-references.json, and each pins the same source and origin its unresolved entry already named. I didn't rerunreferencesover the whole file, because that would re-derive every pin against today's tree, where most fixtures have already converted. The summary moves 12 fromRESIDUAL_DIFFERENCEtoreferences(239 → 251), and unresolved goes from 81 to 69.scenario.json. The manifest and ledger are regenerated.NameBackport.verifyholds every retired fixture file to its bytes in the preserved corpus, so the edited seed failed preservation. The ledger already records reviewed test-body edits (bodyEdit), and this adds the same for fixture files:fileEdits, by file name, holds the digest the edit started from and the reason;FixtureMigration.preserved(ledger)gives the preservation check those starting digests;FixtureMigration.verifyrejects an edit of a file the move didn't remove, an edit that changes nothing, and an edit with no reason;Decisions for review
20.0as an Int32. A Double20.0would test the same bitwise behavior, but no page documents it.Verification
TestBitsAllClear,TestBitsAllSet,TestBitsAnyClearandTestBitsAnySet(12 cases, none skipping a check) pass under Critter, then reflection.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.