Github actions: "Re-run failed jobs" will run the entire test suite
See original GitHub issueWe have the e2e tests configure to run on cypress dashboard parellely.
I was following this thread to add the custom-build-id
to the command to distinguish different run based on different build id. Every thing works fine until github actions roll out the ability to Re-run failed jobs.
If i just set the custom-build-id
to ${{ github.run_id }}
, the second attempt will always marks tests as passing with ‘Run Finished’ but tests are not triggered at all.
So I set set the custom-build-id
to ${{ github.run_id }}-${{ github.run_attempt }}
, now it will run the entire test suite instead of running the originally allocated subset of tests.
E2E_tests:
runs-on: ubuntu-latest
name: E2E tests
strategy:
fail-fast: false
matrix:
ci_node_total: [6]
ci_node_index: [0, 1, 2, 3, 4, 5]
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Install Dependencies
run: npm ci
- name: Start app
run: make start-app-for-e2e
timeout-minutes: 5
- name: Cypress Dashboard - Cypress run
run: |
npm run cypress
Issue Analytics
- State:
- Created a year ago
- Reactions:18
- Comments:25 (5 by maintainers)
Top Results From Across the Web
Re-running workflows and jobs - GitHub Docs
You can re-run a workflow run, all failed jobs in a workflow run, or specific jobs in a workflow run up to 30...
Read more >Save time with partial re-runs in GitHub Actions
It is now possible to re-run only failed jobs or a single job in GitHub Actions workflows. Save time with partial re-runs in...
Read more >How to re-run only failed jobs on Github Actions - Medium
1. Set up a step to get the current timestamp - id: timestamp · 2. Name a cache container using the above timestamp...
Read more >Only re-run the failed job in a GitHub Actions matrix
My CI matrix takes a lot of time to run, and I don't want to waste energy re-running the whole matrix because one...
Read more >How to re-run only failed jobs on GitHub Actions - Testableapple
Yeah, the thing is that it restarts absolutely all the jobs (green, red, whatever), even if just the only one has failed. You...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to get some more clarity on this from our Cloud team. Issue #574 also has some additional context.
Here is the current status:
I will be updating this issue as new information is available.
That’s definitly something critical given how the billing works (Cypress and Github included), it sounds like we’re getting billed for something that already passed