-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(e2e): Add framework for canary testing #5935
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 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
185790c
test(e2e): Add framework for canary testing
0ef64c6
Remove version tests
a5e71c2
Add canary workflow
b5e6d8c
Update workflow
10feb86
Update workflow
d7db6f4
Fix logic for chosing what versions to test
a766f9b
Intentionally fail test
2e3e0f5
Update workflow
fa76acc
Fix intentionally failing test
d7dfb31
Don't run workflow on PR
a19d893
Cleanup
c82affb
Add new properties to recipe schema
3ba4f38
Add tests label (let's hope this works)
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Canary tests failed | ||
labels: 'Status: Untriaged' | ||
--- | ||
Canary tests failed: {{ env.RUN_LINK }} |
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,54 @@ | ||
name: 'Canary Tests' | ||
on: | ||
schedule: | ||
# Run every day at midnight | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
commit: | ||
description: If the commit you want to test isn't the head of a branch, provide its SHA here | ||
required: false | ||
|
||
env: | ||
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }} | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
job_canary_test: | ||
name: Run Canary Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: 'Check out current commit' | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ env.HEAD_COMMIT }} | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
# ember won't build under node 16, at least not with the versions of the ember build tools we use | ||
node-version: 14 | ||
- name: Install dependencies | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
- name: Build packages | ||
run: yarn build | ||
- name: Run Canary Tests | ||
env: | ||
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ env.DEFAULT_NODE_VERSION }} | ||
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }} | ||
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }} | ||
CANARY_E2E_TEST: 'yes' | ||
run: | | ||
cd packages/e2e-tests | ||
yarn test:e2e | ||
- name: Create Issue | ||
if: failure() | ||
uses: JasonEtco/create-an-issue@1a16035489d05041b9af40b970f02e301c52ffba | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
with: | ||
filename: .github/CANARY_FAILURE_TEMPLATE.md |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the tests label here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good input 3ba4f38