From db0a44822bc92f1e50a768b6dec90bd70f09d880 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:57:50 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 7543 (#28281) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7543 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Ben Broderick Phillips --- .../stress-testing/stress-test-deployment-lib.ps1 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 2e71a6bd7396..f05f7388f788 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -321,7 +321,18 @@ function DeployStressPackage( $generatedConfigPath = Join-Path $pkg.Directory generatedValues.yaml $subCommand = $Template ? "template" : "upgrade" $subCommandFlag = $Template ? "--debug" : "--install" - $helmCommandArg = "helm", $subCommand, $releaseName, $pkg.Directory, "-n", $pkg.Namespace, $subCommandFlag, "--values", $generatedConfigPath, "--set", "stress-test-addons.env=$environment" + $helmCommandArg = @( + "helm", $subCommand, $releaseName, $pkg.Directory, + "-n", $pkg.Namespace, + $subCommandFlag, + "--values", $generatedConfigPath, + "--set", "stress-test-addons.env=$environment" + ) + + $gitCommit = git -C $pkg.Directory rev-parse HEAD 2>&1 + if (!$LASTEXITCODE) { + $helmCommandArg += "--set", "GitCommit=$gitCommit" + } if ($LockDeletionForDays) { $date = (Get-Date).AddDays($LockDeletionForDays).ToUniversalTime()