fix: let archived fixtures bypass Git version gates (#1622)#2732
Draft
Sebastian Thiel (Byron) wants to merge 2 commits into
Draft
fix: let archived fixtures bypass Git version gates (#1622)#2732Sebastian Thiel (Byron) wants to merge 2 commits into
Sebastian Thiel (Byron) wants to merge 2 commits into
Conversation
Git-dependent fixture tests currently skip outright when the installed Git is incompatible, even when a checked-in archive contains a known-good fixture that could run safely. This also keeps 32-bit CI pinned to Debian 12 because Debian 13 ships affected Git 2.47.x. Add guarded scripted-fixture loaders that use normal generation for compatible Git versions and require an identity-matching archive otherwise. Required archives use a dedicated cache, ignore GIX_TEST_IGNORE_ARCHIVES, and never fall back to generation. Apply this to minimum-version worktree tests and the shared rev-spec fixture, then return 32-bit CI to Debian stable. Git 57fb139b5e introduced reversed :/<text> traversal in 2.47.x; Git 0ff919e87a restored youngest-first ordering in 2.48.0. The regression tests cover missing, stale, ignored, and valid required archives. Validated with: - cargo test -p gix-testtools --all-features --lib - cargo test -p gix-testtools --no-default-features --lib - cargo nextest run -p gix revision::spec::from_bytes - focused default and non-revparse-regex rev-spec tests - focused worktree tests - cargo clippy for gix-testtools and supported gix features - cargo doc -p gix-testtools --no-deps Refs #1622
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.
Tasks
This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here.
Everything below this line was generated by Codex GPT-5.
Created by Codex on behalf of Byron. Byron will review before this is ready to merge.
Summary
Git 57fb139b5e introduced reversed :/ traversal in 2.47.x; Git 0ff919e87a restored youngest-first ordering in 2.48.0.
Refs #1622
Validation