Repository navigation
test(drift): make drift-sync tests independent of recorded deprecations - #608
Merged
Merged
Conversation
drift-sync's routine PR #606 records 17 openai retirements in deprecatedFamilies.openai, and its CI failed on tests that assume that ledger is empty: - drift-sync-core: two tests picked "absent" stand-ins straight from includeFamilies.openai (slice(0, 10); gpt-4, gpt-4-turbo). The sync correctly skips families the real ledger already records, so the expected counts no longer held. They now derive stand-ins with unrecordedFamilies(provider, n), the existing anthropic helper generalized to any provider. - drift-sync-check: the fixtures replay run 42286556743's 17 deprecations on top of the real registry. Once those are committed, the writer refuses to add them twice and the file throws at load. The baseline is now the real registry with deprecatedFamilies.openai emptied back to its comment-only shape. No drift-sync behavior changes.
commit: |
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.
Drift-sync's routine PR #606 (17 openai deprecations recorded in
deprecatedFamilies.openai) failed CI run 42346883216 (test (20)). The tests assumed that ledger is empty. drift-sync itself works correctly; this PR changes tests only.Root cause
drift-sync-core.test.ts: "a whole morning's worth of deprecations…" took its stand-ins from[...includeFamilies.openai].slice(0, 10). "recording a deprecation leaves the includeFamilies checksum pin GREEN" hard-codedgpt-4andgpt-4-turbo.detectDeprecatedFamiliesForSynccorrectly drops families the real ledger already records (scripts/drift-sync.ts:450-454), so after fix(drift-sync): mechanical model-family sync (2026-11-07) #606 those stand-ins are no longer reported. Fix: derive them withunrecordedFamilies(provider, n), which is the existing anthropic-only helper made to work for any provider.drift-sync-check.test.ts(same class of failure; it only showed up once fix(drift): skip the live re-collect in drift-sync-check for deprecation-only syncs #605 landed on main): the fixtures add run 42286556743's 17 deprecations on top of the real registry. Once fix(drift-sync): mechanical model-family sync (2026-11-07) #606 commits those same 17, the writer refuses to add a duplicate and the file throws at load. Fix: start from the real registry withdeprecatedFamilies.openaiemptied back to its comment-only shape.RED / GREEN
drift-sync-corehad 2 failures:expected … to have a length of 10 but got 6andexpected [ 'gpt-4o' ] to deeply equal [ 'gpt-4', 'gpt-4-turbo', 'gpt-4o' ].drift-sync-checkfailed at load withfixture: could not add gpt-3.5-turbo to deprecatedFamilies.openai.deprecationOnlyOutcomesbail on families that are already recorded makes 5 check tests fail.