Skip to content
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

Fail if main or pre jobs are cancelled #2493

Merged
merged 6 commits into from Dec 17, 2021
Merged

Fail if main or pre jobs are cancelled #2493

merged 6 commits into from Dec 17, 2021

Conversation

jneira
Copy link
Member

@jneira jneira commented Dec 16, 2021

To hopefully ensure the job does no terminate succesfully before the cancellation is effective
@jneira
Copy link
Member Author

jneira commented Dec 16, 2021

I am not convinced with the sleep, we dont know how time could take the completion of the cancellation so that could happen again.
Otoh there had been several cancellations and this is the first failing one so it seems the delay is very short

@jneira jneira marked this pull request as draft December 17, 2021 07:32
@jneira jneira changed the title Wait for test post-job cancellation Fail if main job is cancelled Dec 17, 2021
@jneira
Copy link
Member Author

jneira commented Dec 17, 2021

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

@jneira jneira marked this pull request as ready for review December 17, 2021 07:40
@jneira jneira changed the title Fail if main job is cancelled Fail if main or pre jobs are cancelled Dec 17, 2021
jneira added a commit to jneira/haskell-language-server that referenced this pull request Dec 17, 2021
@jneira
Copy link
Member Author

jneira commented Dec 17, 2021

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

@michaelpj
Copy link
Collaborator

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?

@jneira
Copy link
Member Author

jneira commented Dec 17, 2021

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

@jneira
Copy link
Member Author

jneira commented Dec 17, 2021

Abusing admin perms to merge this asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants