Skip to content

scripts: allow local test vectors checkout#543

Merged
mjain-jump merged 1 commit into
agave-v4.1.0-beta.3from
mjain/allow-local-test-vectors
Jun 10, 2026
Merged

scripts: allow local test vectors checkout#543
mjain-jump merged 1 commit into
agave-v4.1.0-beta.3from
mjain/allow-local-test-vectors

Conversation

@mjain-jump

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 20:10
@mjain-jump mjain-jump enabled auto-merge (squash) June 10, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_DIR override to run fixtures from a caller-provided directory.
  • Keep the existing dump/test-vectors clone + 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
@mjain-jump mjain-jump merged commit bdb620f into agave-v4.1.0-beta.3 Jun 10, 2026
5 checks passed
@mjain-jump mjain-jump deleted the mjain/allow-local-test-vectors branch June 10, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants