ci: trigger E2E tests on merge to main#85
Closed
beonde wants to merge 1 commit into
Closed
Conversation
After CI passes on a push to main, dispatch a repository_dispatch event to capiscio/capiscio-e2e-tests so cross-product E2E tests run within minutes instead of waiting for the daily 6am cron.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a CI follow-up mechanism in capiscio-core to proactively kick off cross-repo E2E coverage after merges land on main, reducing the time-to-detect for integration regressions.
Changes:
- Adds a new
trigger-e2ejob that dispatches arepository_dispatchevent tocapiscio/capiscio-e2e-tests. - Gates the dispatch to pushes on
mainand waits for thetestjob to succeed.
|
|
||
| trigger-e2e: | ||
| name: Trigger E2E Tests | ||
| needs: [test] |
Comment on lines
+129
to
+136
| steps: | ||
| - name: Dispatch E2E workflow | ||
| uses: peter-evans/repository-dispatch@v3 | ||
| with: | ||
| token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
| repository: capiscio/capiscio-e2e-tests | ||
| event-type: upstream-merge | ||
| client-payload: '{"repo": "capiscio-core", "sha": "${{ github.sha }}"}' |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
trigger-e2ejob that dispatchesrepository_dispatchtocapiscio/capiscio-e2e-testsafter thetestjob passes on pushes tomain.This closes the gap where merges to capiscio-core could only be caught by the daily 6am E2E cron — regressions now trigger cross-product E2E within minutes.
Requires
REPO_ACCESS_TOKENsecret (already configured in capiscio-e2e-tests CI).