Skip to content

Conversation

@mmitche
Copy link
Member

@mmitche mmitche commented Oct 9, 2020

This removes the Validation stage if both of these conditions are false:

  • There's an inline v2 publishing (for checking whether a channel exists)
  • Any post-build validation is enabled

Every job dependency transition has a pretty decent cost. The stage typically takes a minute or so, and also requires getting a machine, etc. This adds up

This removes the Validation stage if both of these conditions are false:
- There's an inline v2 publishing (for checking whether a channel exists)
- Any post-build validation is enabled

Every job dependency transition has a pretty decent cost. The stage typically takes a minute or so, and also requires getting a machine, etc. This adds up
@mmitche
Copy link
Member Author

mmitche commented Oct 9, 2020

dependsOn: Validate
${{ if or(eq(parameters.enableNugetValidation, 'true'), eq(parameters.enableSigningValidation, 'true'), eq(parameters.enableSourceLinkValidation, 'true'), eq(parameters.SDLValidationParameters.enable, 'true')) }}:
dependsOn: Validate
${{ if and(ne(parameters.enableNugetValidation, 'true'), ne(parameters.enableSigningValidation, 'true'), ne(parameters.enableSourceLinkValidation, 'true'), ne(parameters.SDLValidationParameters.enable, 'true')) }}:
Copy link
Contributor

Choose a reason for hiding this comment

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

I hate that we can't extract part of these conditions to some variable to avoid all the duplication.

@mmitche mmitche merged commit 74e9d88 into dotnet:master Oct 9, 2020
mmitche added a commit to mmitche/arcade that referenced this pull request Oct 27, 2020
This removes the Validation stage if both of these conditions are false:
- There's an inline v2 publishing (for checking whether a channel exists)
- Any post-build validation is enabled

Every job dependency transition has a pretty decent cost. The stage typically takes a minute or so, and also requires getting a machine, etc. This adds up
mmitche added a commit that referenced this pull request Oct 27, 2020
This removes the Validation stage if both of these conditions are false:
- There's an inline v2 publishing (for checking whether a channel exists)
- Any post-build validation is enabled

Every job dependency transition has a pretty decent cost. The stage typically takes a minute or so, and also requires getting a machine, etc. This adds up
@mmitche mmitche deleted the remove-validation-stage-if-not-necessary branch February 9, 2022 18:59
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.

3 participants