-
-
Notifications
You must be signed in to change notification settings - Fork 389
Fail if main or pre jobs are cancelled #2493
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
jneira
commented
Dec 16, 2021
•
edited
Loading
edited
- To hopefully ensure the job does no terminate succesfully before the cancellation is effective
- This workflow was marked as succesful although the cancel action was succesful: https://github.com/haskell/haskell-language-server/runs/4549724494?check_suite_focus=true
- It seems the cancel request is asynchronous and here https://github.heygears.community/t/is-there-a-way-to-cancel-a-running-workflow-within-one-of-its-jobs/17493/4 uses this trick to ensure the cancel action is effective
To hopefully ensure the job does no terminate succesfully before the cancellation is effective
I am not convinced with the sleep, we dont know how time could take the completion of the cancellation so that could happen again. |
logic changed to fail if the main or pre job is cancelled and it was not due to skip-duplicate-actions it has worked for https://github.com/haskell/haskell-language-server/actions/runs/1591163279/attempts/1 |
To check haskell#2493
I've checked in my fork a pr changing only docs is cancelling the main job but marking post job as succesful: https://github.com/jneira/haskell-language-server/actions/runs/1591406645 |
I'm concerned that the windows jobs seem to be stuck at over an hour testing again. Could Pepe's changes have actually made them hang? |
ops, i did not read this, yeah might be, i am gonna try it twice to be sure |
Abusing admin perms to merge this asap |