-
Notifications
You must be signed in to change notification settings - Fork 185
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
Stress tests: Fix image tag for multiimage deployments #7498
Conversation
@@ -302,7 +302,7 @@ function DeployStressPackage( | |||
} | |||
} | |||
$generatedHelmValues.scenarios = @( foreach ($scenario in $generatedHelmValues.scenarios) { | |||
$dockerPath = if ("image" -notin $scenario) { | |||
$dockerPath = if ("image" -notin $scenario.keys) { |
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.
$scenarios
is a dictionary, and notin
checks if item is in the collection, so it never contained image
item and did $scenario.imageTag = $imageTag
for all scenarios on line 311
The following pipelines have been queued for testing: |
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
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.
FYI @ckairen
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#7498 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
@lmolkova I went ahead and merged this since we have a sync process to the other repos I didn't want you to have to worry about. |
When multiple docker files are used, one
imageTag
value was incorrectly applied to all imagesBefore:
resulted in followoing generated values
Now proper
imageTag
is generated