-
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
correct perf-send-to-helix on windows #42235
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
591589a
correct perf helix workitems on windows
ooooolivia 877ec4f
Will Revert: turn on PR validation
ooooolivia 6900498
change Agent.Os to runtime var
ooooolivia 09a9e68
remove sendparams condition
ooooolivia 3d560c4
test if macro syntax var case sensitive
ooooolivia ee64f7b
try expression for Agent.Os
ooooolivia d81fab5
try $(Agent.Os)
ooooolivia 7549f92
pass osGroup param
ooooolivia b93364e
revert pr trigger:
ooooolivia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
YAML identifiers should be case insensitive. I think you need to use variables['Agent.Os'] but use a different substitution syntax. I'll look it up after our team meeting, I think it's something like$[[ (instead of $ {{) that expands later so that it "waits" until the variable gets populated. @DrewScoggins might remember the syntax off the top of his head.
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.
Is it possible if we directly use this variable as
variables['Agent.Os']
inruntime/eng/pipelines/common/templates/runtimes/send-to-helix-inner-step.yml
Line 10 in 0956285
instead of passing it as a parameter?
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.
$[, see
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops
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.
I think it should be $[ variables('Agent.Os') ], at least I hope so
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.
Well, the problem is that the inner-step is called from three different scripts, we would need to double-check that variables['Agent.Os'] work everywhere, it can likely break for cross-targeting builds.
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.
Thanks for sending the doc! I'll test
$[ variables('Agent.Os') ]
firstThere 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.
From the log it seems the
$[ variables['Agent.Os'] ]
is not expanded before evaluating the condition: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.
It seems that the problem is.. the variable won't be populated until runtime but the condition evaluation happens at compile time? I was thinking we might want to try using runtime expression here
$[ ]
instead of compile expressionruntime/eng/pipelines/common/templates/runtimes/send-to-helix-inner-step.yml
Line 10 in 0956285
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.
I found another place that uses this condition
runtime/eng/pipelines/common/xplat-setup.yml
Line 45 in bb921d6
but in this case it works because the variable's ready at compile time
runtime/eng/pipelines/common/platform-matrix.yml
Line 36 in d992e0c