Skip to content

Fix tests-pr workflow skipping in merge queue#7421

Merged
isaacroldan merged 1 commit into
mainfrom
04-29-fix_tests-pr_workflow_skipping_in_merge_queue
Apr 29, 2026
Merged

Fix tests-pr workflow skipping in merge queue#7421
isaacroldan merged 1 commit into
mainfrom
04-29-fix_tests-pr_workflow_skipping_in_merge_queue

Conversation

@isaacroldan

@isaacroldan isaacroldan commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

The e2e-tests job in tests-pr.yml is gated by github.event.pull_request.head.repo.full_name == github.repository. In merge_group events the pull_request object doesn't exist, so that expression evaluates to an empty string and the job is silently skipped — which makes it unsuitable as a required check for the merge queue.

WHAT is this pull request doing?

Updates the guard on e2e-tests to:

if: github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name == github.repository

This allows the job to run in the merge queue while still skipping fork PRs (which can't access the E2E secrets). type-diff is intentionally left as-is — it's not needed in the merge queue.

How to test your changes?

  • Open this PR and confirm E2E tests runs.
  • Once merged, confirm the job runs on merge_group events from the queue.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Apr 29, 2026
@isaacroldan isaacroldan force-pushed the 04-29-fix_tests-pr_workflow_skipping_in_merge_queue branch from c22dc2f to 82bdd4b Compare April 29, 2026 09:43
The `head.repo.full_name == github.repository` guard evaluates to false in `merge_group` events, since `github.event.pull_request` is null there. Allow non-PR events through and only gate fork PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@isaacroldan isaacroldan force-pushed the 04-29-fix_tests-pr_workflow_skipping_in_merge_queue branch from 82bdd4b to 3a955c4 Compare April 29, 2026 09:51
@isaacroldan isaacroldan marked this pull request as ready for review April 29, 2026 09:52
@isaacroldan isaacroldan requested a review from a team as a code owner April 29, 2026 09:52
Copilot AI review requested due to automatic review settings April 29, 2026 09:52

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

Updates the PR test workflow so the E2E test job no longer gets skipped when the workflow runs under GitHub’s merge queue (merge_group), which helps keep required checks consistent for merge-queue merges.

Changes:

  • Allow the e2e-tests job to run for merge_group events in addition to same-repo PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/tests-pr.yml
@isaacroldan isaacroldan added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit c4c6647 Apr 29, 2026
31 checks passed
@isaacroldan isaacroldan deleted the 04-29-fix_tests-pr_workflow_skipping_in_merge_queue branch April 29, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants