From 96686203c316a3f47c996705a9f7ae21891a72f9 Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Thu, 12 Mar 2026 21:26:55 +0000 Subject: [PATCH] fix: remove AZURE_RECORD_MODE override from Set-CliBuildVariables.ps1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script unconditionally set AZURE_RECORD_MODE=playback as a pipeline variable before the test task runs, overriding the AzureRecordMode pipeline parameter introduced in PR #6893. This caused manually triggered LIVE test runs to still execute in playback mode. The record mode is now fully controlled by the AzureRecordMode parameter chain (release-cli.yml → build-and-test.yml → build-cli.yml). Fixes #7102 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/scripts/Set-CliBuildVariables.ps1 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/eng/scripts/Set-CliBuildVariables.ps1 b/eng/scripts/Set-CliBuildVariables.ps1 index 463946d2ddc..04bcc1ce3ba 100644 --- a/eng/scripts/Set-CliBuildVariables.ps1 +++ b/eng/scripts/Set-CliBuildVariables.ps1 @@ -24,13 +24,5 @@ } -# AZURE_RECORD_MODE is used for running tests in a specific recording mode. -if (-not $env:AZURE_RECORD_MODE) { - $recordMode = "playback" - - if ($BuildReason -eq "PullRequest") { - $recordMode = "playback" - } - - Set-BuildVariable -Key "AZURE_RECORD_MODE" -Value $recordMode -} +# AZURE_RECORD_MODE is controlled by the AzureRecordMode pipeline parameter +# defined in release-cli.yml and passed through build-and-test.yml → build-cli.yml.