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

Fix cancellation handling #7430

Merged
merged 2 commits into from
Jan 16, 2020
Merged

Conversation

mitchdenny
Copy link
Contributor

This PR extends/adjusts conditions on tasks and jobs to better handle cancellations. We have some tasks in jobs with an always() condition which effectively stops that job being cancelled. We need to avoid that in most cases because we generally need to cancel jobs in an build storm and always() conditions slow down recovery time.

@mitchdenny
Copy link
Contributor Author

/azp run java - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mitchdenny mitchdenny self-assigned this Jan 15, 2020
@mitchdenny mitchdenny added the EngSys This issue is impacting the engineering system. label Jan 15, 2020
@mitchdenny mitchdenny merged commit 3c3900a into Azure:master Jan 16, 2020
@mitchdenny mitchdenny deleted the fix-cancellation branch January 16, 2020 23:00
@@ -253,7 +253,7 @@ jobs:

- task: Maven@3
displayName: 'Start Jetty'
condition: ne('${{ parameters.SDKType }}', 'client')
condition: and(succeeded(), ne(variables['SdkType'], 'client'))
Copy link
Member

@JimSuplizio JimSuplizio Jan 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchdenny why was this changed from parameters back to variables? Variables is going to try and pull from the pipeline variable SDKType which isn't set for every pipeline. Using the parameters should, in theory, guarantee that this only runs for the correct track.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad ... I'll fix it up now. I was getting shown some interesting conflict resolutions when I did my rebase.

Copy link
Member

@JimSuplizio JimSuplizio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a question about the Start Jetty task the change from '${{ parameters.SDKType }}' back to variables['SdkType'] in the conditions.

@mitchdenny
Copy link
Contributor Author

I had a question about the Start Jetty task the change from '${{ parameters.SDKType }}' back to variables['SdkType'] in the conditions.

Fixed up in this PR: #7512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants