-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci build errors due to cancelled jobs #2908
Comments
Prevent progression of the workflow if a build job is cancelled or skipped. Resolves thin-edge#2908 Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
A PR was merged to add an additional dependency to the build job, and the subsequent behaviour will be monitored. |
There is an active discussion going on for similar symptoms to:
The above was taken from this run: |
Root cause There is an active Github Issue where other projects have also reported similar issues with Github Workflows. There seems to be a problem with the Github Runner which results in jobs sporadically being set to skipped, due to unknown reasons. The error can manifest in slightly different ways, but the following are the symptoms seen in the thin-edge.io project:
Secondary effects The root cause resulted in an unexpected side-effect where the To handle the skip case better, the explicit check for the success result on the publish:
name: Publish ${{ matrix.job.target }}
if: |
always() &&
github.event_name != 'pull_request_target' &&
(needs.check-build.result == 'success') &&
(needs.test.result == 'success' || needs.test.result == 'skipped') |
The linked github issue has been closed and no more job cancellations have been observed. |
Describe the bug
Recent failures on the merge queue show unexpected behaviour when a build job is cancelled. This resulted in the workflow continuing even though one architecture failed resulting in only half the packages being published.
Runs with unexpected behaviour
To Reproduce
Expected behavior
Screenshots
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: