scripts: allow local test vectors checkout#543
Merged
Conversation
cmoyes-jump
approved these changes
Jun 10, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the test-vector runner script to optionally use a pre-existing local checkout of the test-vectors fixtures via WORK_DIR, avoiding the clone/checkout/cache path when desired.
Changes:
- Add
WORK_DIRoverride to run fixtures from a caller-provided directory. - Keep the existing
dump/test-vectorsclone + pinned commit checkout flow as the default. - Update fixture path mappings to be relative to
WORK_DIR.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+31
to
+47
| # Get commit SHA from file or env | ||
| GIT_REF=${GIT_REF:-$(cat ./scripts/test-vectors-commit-sha.txt)} | ||
| echo "Using test-vectors commit: $GIT_REF" | ||
|
|
||
| # Checkout specific commit non-destructively | ||
| ( | ||
| cd dump/test-vectors | ||
| if ! git checkout -q $GIT_REF; then | ||
| git remote update | ||
| git checkout -q $GIT_REF | ||
| # Fetch/update test-vectors repo | ||
| if [ ! -d dump/test-vectors ]; then | ||
| echo "Cloning test-vectors repository..." | ||
| (cd dump && git clone --depth=1 -q --no-tags https://github.com/firedancer-io/test-vectors.git) | ||
| fi | ||
| ) | ||
|
|
||
| # Show the commit hashes being used | ||
| test_vectors_commit=$(cd dump/test-vectors && git rev-parse HEAD) | ||
| echo "Using test-vectors commit: $test_vectors_commit" | ||
| # Checkout specific commit non-destructively | ||
| ( | ||
| cd dump/test-vectors | ||
| if ! git checkout -q $GIT_REF; then | ||
| git remote update | ||
| git checkout -q $GIT_REF | ||
| fi |
Comment on lines
+26
to
+28
| if [ -n "${WORK_DIR:-}" ]; then | ||
| echo "Using provided WORK_DIR: $WORK_DIR" | ||
| else |
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.
No description provided.