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
[Bug/Question]: Does not work when jobs are in the same file? #754
Labels
bug
Something isn't working
Comments
Thanks for this report!
I didn't expect the behavior, I'll check! |
kachick
added a commit
that referenced
this issue
Apr 12, 2024
…e workflow (#755) This is a bug, but I bumped the major version for the behavior changes. Add a new option `skip-same-workflow` to keep the behavior as v2 era. A workflow that has multiple `wait-other-jobs` patterns appears frequently in my use. And the `skip-list` can't track file name changes, so adding an option will fit here. Other changes are chore tasks, refactored, and added a minimum changelog. Fixes #754
Excellent, this fixes that, but introduces two new issues that don't show in v2... isn't that the way it always goes :D
|
This was referenced Apr 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Stripped down to the following test:
I expect job2 NOT to finish first. But it does, the very first poll passes, despite job1 not being done. If job1 and job2 are in separate yml files, it works as expected. Behavior is no different if specifying @v1, though THAT does have the interesting log output:
It seems perhaps it thinks other jobs in the same file are also itself (and therefore shouldn't wait)?
It's actually probably best for me to split my jobs into separate files anyway, but if this is the case (not sure if GH maybe changed something very recently), several of the examples ought not to work either.
Version
v2.0.4
Permissions
GITHUB_TOKEN Permissions
Actions: read
Checks: read
Contents: read
Metadata: read
Parameters
Relevant log output
Not really useful -- it waits 10 seconds, polls, decides to continue: Wait about 10 seconds before first polling. Polling 1: 2024-04-12T06:09:52.142Z all jobs passed
The text was updated successfully, but these errors were encountered: