Skip to content

feat(sp1-e2e): pin checkout to selected image commit#1945

Open
purusang wants to merge 2 commits into
mainfrom
STR-3529-pin-sp1-e2e-commit
Open

feat(sp1-e2e): pin checkout to selected image commit#1945
purusang wants to merge 2 commits into
mainfrom
STR-3529-pin-sp1-e2e-commit

Conversation

@purusang
Copy link
Copy Markdown
Contributor

@purusang purusang commented Jun 5, 2026

Description

Pins the SP1 E2E workflow checkout to the commit that produced the selected Docker images by default. This keeps workflow scripts, Docker compose files, and datatool assumptions aligned with the image tag under test.

Manual runs can still pass checkout_ref to test workflow changes from a branch against an existing image tag.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency Update

Notes to Reviewers

The default path preserves STR-3529's anti-drift behavior: when checkout_ref is omitted, actions/checkout uses the resolved image commit SHA. The override is only for manual workflow debugging.

Is this PR addressing any specification, design doc or external reference document?

  • Yes
  • No

If yes, please add relevant links:

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added (where necessary) tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.
  • I have disclosed my use of AI in the body of this PR.

Validation:

  • git diff --check
  • actionlint .github/workflows/ci-sp1-e2e.yml

AI assistance notice: This PR was prepared with AI assistance.

Related Issues

STR-3529

purusang added 2 commits June 5, 2026 15:58
…scripts

- previously we used to select arbitrary image but latest version of
workflow was used to orchestrate the run
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b973eab97

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +60 to +65
BUILD_SHA=$(gh run list -R "${REPO}" \
--workflow ci-build.yml \
--status success \
--limit 100 \
--json headSha \
--jq ".[] | select(.headSha | startswith(\"${SHORT_TAG}\")) | .headSha" | head -n1)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Resolve explicit tags from the built commit

When ci-build.yml is manually dispatched with its supported ref input, the images are tagged from git rev-parse HEAD after checking out inputs.ref, not from the workflow run's headSha (.github/workflows/ci-build.yml lines 129 and 217-220). This new resolver searches only gh run list --json headSha, so a valid manually built image tag from that ref cannot be found and the SP1 E2E manual run exits with should_run=false instead of testing the requested image.

Useful? React with 👍 / 👎.

@purusang purusang self-assigned this Jun 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Commit: b595590

SP1 Execution Results

program cycles gas
EVM EE Chunk 824,732 969,394
EVM EE Account 404,056 498,593
Checkpoint 2,601,550 3,007,194

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.38%. Comparing base (b5d34b8) to head (9b973ea).

@@            Coverage Diff             @@
##             main    #1945      +/-   ##
==========================================
- Coverage   84.42%   84.38%   -0.04%     
==========================================
  Files         637      637              
  Lines       76805    76805              
==========================================
- Hits        64840    64812      -28     
- Misses      11965    11993      +28     
Flag Coverage Δ
functional 66.41% <ø> (-0.10%) ⬇️
unit 69.52% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant