Skip to content

feat(ci): Ensure self-hosted e2e tests run on PR's#7468

Open
hubertdeng123 wants to merge 5 commits intomasterfrom
hubertdeng123/run-self-hosted-e2e-prs
Open

feat(ci): Ensure self-hosted e2e tests run on PR's#7468
hubertdeng123 wants to merge 5 commits intomasterfrom
hubertdeng123/run-self-hosted-e2e-prs

Conversation

@hubertdeng123
Copy link
Member

self-hosted e2e tests were not run on PR's, and we needed to fix with #7466. This ensures it runs

@hubertdeng123 hubertdeng123 requested a review from a team as a code owner October 22, 2025 18:42
Comment on lines +449 to +452
self-hosted-end-to-end:
needs: [snuba-image, files-changed]
runs-on: ubuntu-latest
timeout-minutes: 30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we only run this when it's ${{ github.event_name == 'pull_request' }}, and keep the one on image.yml file to test it with an actual pushed GHCR Docker image?

Copy link

@cursor cursor bot left a comment

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.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Unnecessary files-changed dependency blocks job without benefit
    • Removed files-changed from the needs array of self-hosted-end-to-end since the job never references any of its outputs.

Create PR

Or push these changes by commenting:

@cursor push 57cf6bf9d0
Preview (57cf6bf9d0)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -577,7 +577,7 @@
         devservices-version: ${{ steps.get-devservices-version.outputs.version }}
 
   self-hosted-end-to-end:
-    needs: [snuba-image, files-changed]
+    needs: [snuba-image]
     if: github.event_name == 'pull_request'
     runs-on: ubuntu-latest
     timeout-minutes: 30
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

devservices-version: ${{ steps.get-devservices-version.outputs.version }}

self-hosted-end-to-end:
needs: [snuba-image, files-changed]
Copy link

Choose a reason for hiding this comment

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

Unnecessary files-changed dependency blocks job without benefit

Low Severity

The self-hosted-end-to-end job lists files-changed in its needs array but never references any of its outputs (like needs.files-changed.outputs.api_changes). Every other job in this workflow that depends on files-changed actually uses its outputs. This unnecessary dependency means a failure in the files-changed job would prevent the e2e tests from running, which conflicts with the stated PR goal of ensuring these tests run on PRs. Removing files-changed from needs would simplify the dependency graph and make the job more robust.

Fix in Cursor Fix in Web

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.

2 participants