-
Notifications
You must be signed in to change notification settings - Fork 1
feat: deploy gating model — two-stage dev, readonly prod, PR gate #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d6de73b
feat: two-stage dev smoke gate, readonly-only prod tests
saqibmanan d4ae23b
feat: full-suite PR gate against dev for PRs into main
saqibmanan ec0f301
feat: run provider functional report-only while it is flaky against dev
saqibmanan d100bcb
fix: wait for every test before finalizing or rolling back
saqibmanan f66f6da
Potential fix for pull request finding 'CodeQL / Workflow does not co…
saqibmanan 085f470
Potential fix for pull request finding 'CodeQL / Workflow does not co…
saqibmanan 1ef2ffd
Potential fix for pull request finding 'CodeQL / Workflow does not co…
saqibmanan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Full test suite against dev for every PR into main. Required by branch | ||
| # protection on main, so a PR merges (and prod deploys) only once it's green. | ||
| # dev already runs the PR's code (it was merged to dev first); deployed_sha | ||
| # makes the suite fail if dev is running anything else. | ||
| name: PR Gate | ||
|
|
||
| permissions: {} | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| concurrency: | ||
| group: pr-gate-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| full-suite: | ||
| name: Full Suite (dev) | ||
| uses: CivicDataLab/CivicDataSpace-test/.github/workflows/run-smoke.yml@CI | ||
| with: | ||
| suite: full | ||
| # Provider is flaky against dev: it reports in provider-report below, which | ||
| # branch protection does not require. | ||
| skip_provider: true | ||
| api_base_url: ${{ vars.DEV_API_BASE_URL }} | ||
| deployed_sha: ${{ github.event.pull_request.head.sha }} | ||
| secrets: | ||
| HOME_URL_DEV: ${{ secrets.HOME_URL_DEV }} | ||
| TEST_EMAIL_1: ${{ secrets.TEST_EMAIL_1 }} | ||
| TEST_PASSWORD_1: ${{ secrets.TEST_PASSWORD_1 }} | ||
| TEST_EMAIL_2: ${{ secrets.TEST_EMAIL_2 }} | ||
| TEST_PASSWORD_2: ${{ secrets.TEST_PASSWORD_2 }} | ||
| KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_CLIENT_SECRET }} | ||
|
|
||
| provider-report: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| name: Provider Full Suite (report-only) | ||
| uses: CivicDataLab/CivicDataSpace-test/.github/workflows/run-smoke.yml@CI | ||
| with: | ||
| suite: full | ||
| only_provider: true | ||
| secrets: | ||
| HOME_URL_DEV: ${{ secrets.HOME_URL_DEV }} | ||
| TEST_EMAIL_1: ${{ secrets.TEST_EMAIL_1 }} | ||
| TEST_PASSWORD_1: ${{ secrets.TEST_PASSWORD_1 }} | ||
| TEST_EMAIL_2: ${{ secrets.TEST_EMAIL_2 }} | ||
| TEST_PASSWORD_2: ${{ secrets.TEST_PASSWORD_2 }} | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.