Open bjchambers opened 1 year ago
Could you please share your config?
Created a repro repository.
The workflow is setup to use skip jobs. It ignores changes to README.md
but always fail to run tests (false
).
https://github.com/bjchambers/skip-actions-repro/blob/main/.github/workflows/workflow.yml
I made a PR that first added a file. This behaves as follows:
I then added a commit that changed README.md
. This shows all checks as having passed!
Push action succeeded, because it only changes README.md
and all files were already in an action run. https://github.com/bjchambers/skip-actions-repro/actions/runs/3904209440/jobs/6669676073.
PR action succeeded. https://github.com/bjchambers/skip-actions-repro/actions/runs/3904209861/jobs/6669676367
Thanks! 👍 I'll have a look at this.
Thank you for providing the reproducing repo! I recognize that there are multiple problems with “concurrent skipping“, which is why I made the decision to disable concurrent skipping by default. I made this decision many months ago because there have been several concurrency-issues, some of them are safety-critical.
In fact, I would consider concurrent skipping as an experimental feature. For me, it is an open research question whether we could change the behaviour of concurrent skipping in a way that is useful for the general public. Perhaps we might implement a new skipping-mode, similar to “same_content_newer“?
1-push
because of the push and1-pr
because of the pull request.1-pr
because it is concurrent and newer than1-push
.1-push
(see it's going to fail, etc.)What I'd expect: No successful, non-skipped run has occurred, so we need to run things.
What happens: Both jobs run on commit 2, but both decide that since (a) the only change is ignorable and (b) the most recent run (
1-pr
succeeded -- by skipping everything) there is nothing to do.It seems like perhaps instead of "skip if there are no changed files since a successful run" it should be "skip if there are no changed files since a non-skipped successful run".
Is this a known issue / existing work arounds?