-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Feature requestion: add "retry" option #321
Comments
I don't know how I feel about this: I get your situation, but wouldn't it be better to execute those jobs one after the other in the first place? There's a |
Thanks for the quick reply, Both steps that name: screenshots
jobs:
screenshots:
runs-on: ubuntu-latest
strategy:
matrix:
device: [ 'desktop', 'mobile' ]
steps:
- uses: actions/checkout@v2
- name: generate screenshots
run: ./generate-screenshots ${{ matrix.device }}
- name: Commit screenshots
uses: EndBug/add-and-commit@v7.4.0
with:
message: "Update screenshots for ${{ matrix.device }}"
# --rebase: make sure both the mobile and desktop screenshots can be
# uploaded
pull: "--rebase" I like the |
I'm running into the exact situation (committing UI screenshots updated across a few browsers in a matrix)! How did you sort it out @nmattia? |
Oh it's been a while! If I (re) understand the issue and solution correctly, I ended up doing this:
In particular, here's the matrix job (in your case you'd probably replace desktop/mobile for firefox/chrome/whatever) # Job that starts the showcase and takes a screenshot of every page
screenshots:
runs-on: ubuntu-latest
strategy:
matrix:
device: [ 'desktop', 'mobile' ]
# Make sure that one failing test does not cancel all other matrix jobs
fail-fast: false and here's the "aggregator": # Download the desktop screenshots artifacts
- uses: actions/download-artifact@v3
with:
name: e2e-screenshots-desktop
path: screenshots/desktop
# Download the mobile screenshots artifacts
- uses: actions/download-artifact@v3
with:
name: e2e-screenshots-mobile
path: screenshots/mobile
- name: Commit screenshots
uses: EndBug/add-and-commit@v9
with:
add: screenshots
default_author: github_actions
message: "🤖 Selenium screenshots auto-update" Here's the workflow for reference: dfinity/internet-identity/.github/workflows/frontend-check.yml Let me know if you have any questions! |
Ah, communicating via artifacts, that's clever! Thanks |
Hi @EndBug Any chance to reconsider this? I have a big mono-repo, which many different workflows push to. Adding a For example:
WDYT? |
@GreasyAvocado Since it seems like a lot of people would find it useful, I guess it's worth implementing it 😄 I'll reopen this issue and put it as pinned so it doesn't go stale, but I can't promise I'll have the time to make it happen soon. |
any update on this one? |
It would be great to be able to retry. My use case is that I have different workflows that push to a PR with
pull: --rebase
. However it can happen that Workflow 1 pulls, then workflow 2 pulls, then workflow 1 pushes, and then workflow 2 will fail; even though it did rebase, it rebased too early.The text was updated successfully, but these errors were encountered: