Repository navigation
Update RIT workflow to run short test suite for PRs - #627
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Rootstock Integration Tests (RIT) GitHub Actions workflow to differentiate between PR validation and post-merge branch validation, enabling a faster default PR suite while still running the full suite on branch pushes and allowing manual/PR-description overrides.
Changes:
- Adds
pushtrigger formasterand*-rcbranches and introduces workflow-level concurrency (cancel in-progress PR runs). - Introduces a
test-suiteinput and logic to default PRs to a short suite (with PR-description override) while keeping push/manual runs on the full suite. - Refactors Slack notification context so notifications can cover both PRs and pushes with the appropriate title/link.
| GITHUB_EVENT_PULL_REQUEST_TITLE: ${{ github.event.pull_request.title || '' }} | ||
| GITHUB_EVENT_PULL_REQUEST_HTML_URL: ${{ github.event.pull_request.html_url || '' }} | ||
| GITHUB_EVENT_HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }} | ||
| GITHUB_EVENT_HEAD_COMMIT_URL: ${{ github.event.head_commit.url || '' }} |
Comment on lines
4
to
+8
| pull_request: | ||
| types: [ opened, synchronize, reopened ] | ||
| branches: [ "master", "*-rc" ] | ||
| push: | ||
| branches: [ "master", "*-rc" ] |
Comment on lines
+105
to
+108
| # PRs default to the short suite for fast feedback, but can opt into the full suite | ||
| # via a `test-suite:full` tag in the PR description (e.g. before merging into master). | ||
| TEST_SUITE=$(get_branch_from_description test-suite) | ||
| : ${TEST_SUITE:=short} |
|
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.



Description
PRs against master or *-rc branches run short RIT test suite by default
After merge, on push full suite is executed and result reported in slack
Short or full test suites can be manually executed from Actions tab in github
Suite to run can also be determined in the PR description. "test-suite:short" or "test-suite:full"
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: