Skip to content

ci: Run e2e tests on PRs with a local image registry - #346

Draft
andreiborza wants to merge 10 commits into
masterfrom
ab/local-registry-e2e
Draft

andreiborza wants to merge 10 commits into
masterfrom
ab/local-registry-e2e

Conversation

@andreiborza

@andreiborza andreiborza commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

What

E2E tests now run on the image built in the same workflow run, from a local registry. Images go to ghcr.io only on push to master or release branches, after all e2e tests pass.

  • Fork PRs run the e2e tests too, except the two jobs that need Sentry secrets.
  • Only the publish job can write to ghcr.io, and it runs only on reviewed code.
  • E2E tests move to their own workflow file, so new tests there gate the publish automatically. Check names change to E2E / ....
  • PRs no longer change the Docker tag in action.yml, so the branch tag hook is removed.

Why

Fork PRs get a read-only token, so they cannot push an image and all e2e tests skip (for example #344). We also want to publish only images that passed the tests.

Comment on lines -93 to -94
with:
fetch-depth: 0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was a leftover from when the step created a sentry release that tested set_commits and is no longer needed.

Comment on lines -14 to -21
env:
# Variables defined in the repository
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
# For master, we have an environment variable that selects the action-release project
# instead of action-release-prs
# For other branches: https://sentry-ecosystem.sentry.io/releases/?project=4505075304693760
# For master branch: https://sentry-ecosystem.sentry.io/releases/?project=6576594
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was needed for e2e tests and moved into the new e2e.yml workflow.

@andreiborza

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 73c6eb2. Configure here.

Comment thread scripts/post-release.sh Resolved
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