-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: Add support in yml for detecting darc dependency changes in eng/Version.Details.xml
#73435
Conversation
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue Detailsnull
|
eng/Version.Details.xml
eng/Version.Details.xml
Tagging subscribers to this area: @directhex Issue Detailsnull
|
@akoeplinger thoughts? The changes right now include an artificial change to
|
eng/Version.Details.xml
eng/Version.Details.xml
.. conditioning on that.
Tagging subscribers to this area: @dotnet/runtime-infrastructure Issue DetailsIssueCurrently, whenever a darc flow PR is opened, we cannot trigger different jobs based on which
Solution
|
Tagging subscribers to this area: @directhex Issue DetailsIssueCurrently, whenever a darc flow PR is opened, we cannot trigger different jobs based on which
Solution
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIssueCurrently, whenever a darc flow PR is opened, we cannot trigger different jobs based on which
Solution
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I'd prefer to get someone from the infrastructure team to take a look as well
eng/pipelines/common/variables.yml
Outdated
@@ -34,4 +34,11 @@ variables: | |||
${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | |||
value: Debug | |||
|
|||
- name: wasmDarcDepsChanged | |||
value: $[ or( | |||
eq(dependencies.evaluate_paths.outputs['DarcDependenciesChanged.Microsoft_NET_Workload_Emscripten_Manifest-7_0_100'], true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we somehow do a string contains check here so we don't need to include the 7_0_100
version number? we'll almost certainly forget to update this here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'll try
/azp run runtime, runtime-staging |
Azure Pipelines successfully started running 2 pipeline(s). |
And all of these are unrelated to this PR. |
Issue
Currently, whenever a darc flow PR is opened, we cannot trigger different jobs based on which
dependency got updated. This is needed because in some cases, like for ILLinker, Emscripten
updates we want to trigger all the wasm jobs. But that might not be needed for some of the other
dependencies.
main
, which gets discovered after the fact as other PRfailures, or rolling build failures, creating extra work for developers.
Solution
This PR identifies the changed dependencies, and emits one azure variable per dependency,
which can then be used in conditions in the yml .
The changed dependency can be checked as
dependencies.evaluate_paths.outputs['DarcDependenciesChanged.System_CommandLine']
Included this in the
evaluate_paths
job itself, instead of creating another jobAlso, use this for wasm jobs