From 218dd3ee2a08850f1b54c53a175db1de779e6cd4 Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Wed, 18 Feb 2026 14:43:56 -0800 Subject: [PATCH 1/2] Add pipeline yaml and script --- pipelines/azure-benchmarks.yml | 22 +++++++++++++++ .../scripts/Invoke-CopilotBenchmarks.ps1 | 5 ++++ pipelines/templates/variables/globals.yml | 5 ++++ pipelines/templates/variables/image.yml | 28 +++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 pipelines/azure-benchmarks.yml create mode 100644 pipelines/scripts/Invoke-CopilotBenchmarks.ps1 create mode 100644 pipelines/templates/variables/globals.yml create mode 100644 pipelines/templates/variables/image.yml diff --git a/pipelines/azure-benchmarks.yml b/pipelines/azure-benchmarks.yml new file mode 100644 index 00000000..342ae5c0 --- /dev/null +++ b/pipelines/azure-benchmarks.yml @@ -0,0 +1,22 @@ +stages: +- stage: RunBenchmark + pool: + name: $(LINUXPOOL) + image: $(LINUXVMIMAGE) + os: linux + variables: + - template: /pipelines/templates/variables/image.yml + - template: /pipelines/templates/variables/globals.yml + jobs: + - job: RunBenchmark + displayName: 'Run Copilot Benchmarks' + steps: + - task: AzureCLI@2 + displayName: 'Run Copilot Benchmarks script' + inputs: + azureSubscription: 'Azure SDK Engineering System' + scriptType: 'pscore' + scriptLocation: 'scriptPath' + scriptPath: $(Build.SourcesDirectory)/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 + arguments: > + -BuildId $(OfficialBuildId) diff --git a/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 b/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 new file mode 100644 index 00000000..cb4e4386 --- /dev/null +++ b/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 @@ -0,0 +1,5 @@ +param( + [string]$BuildId +) + +Write-Host "Invoking Copilot Benchmarks for Build ID: $BuildId" diff --git a/pipelines/templates/variables/globals.yml b/pipelines/templates/variables/globals.yml new file mode 100644 index 00000000..31743ad1 --- /dev/null +++ b/pipelines/templates/variables/globals.yml @@ -0,0 +1,5 @@ +variables: + OfficialBuildId: $(Build.BuildNumber) + skipComponentGovernanceDetection: true + nugetMultiFeedWarnLevel: 'none' + GDN_SUPPRESS_FORKED_BUILD_WARNING: true diff --git a/pipelines/templates/variables/image.yml b/pipelines/templates/variables/image.yml new file mode 100644 index 00000000..87ab8d56 --- /dev/null +++ b/pipelines/templates/variables/image.yml @@ -0,0 +1,28 @@ +# Default pool image selection. Set as variable so we can override at pipeline level + +variables: + - name: LINUXPOOL + value: azsdk-pool + - name: LINUXARMPOOL + value: azsdk-pool-arm64 + - name: WINDOWSPOOL + value: azsdk-pool + - name: MACPOOL + value: Azure Pipelines + + - name: LINUXVMIMAGE + value: ubuntu-24.04 + - name: LINUXARMVMIMAGE + value: azure-linux-3-arm64 + - name: WINDOWSVMIMAGE + value: windows-2022 + - name: MACVMIMAGE + value: macos-latest + + # Values required for pool.os field in 1es pipeline templates + - name: LINUXOS + value: linux + - name: WINDOWSOS + value: windows + - name: MACOS + value: macOS From 93f3e754e76bf33ff85ee814b683ae3c9979977a Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Mon, 23 Feb 2026 11:49:21 -0800 Subject: [PATCH 2/2] Fix yaml --- pipelines/azure-benchmarks.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pipelines/azure-benchmarks.yml b/pipelines/azure-benchmarks.yml index 342ae5c0..89f2a9b9 100644 --- a/pipelines/azure-benchmarks.yml +++ b/pipelines/azure-benchmarks.yml @@ -12,11 +12,11 @@ stages: displayName: 'Run Copilot Benchmarks' steps: - task: AzureCLI@2 - displayName: 'Run Copilot Benchmarks script' - inputs: - azureSubscription: 'Azure SDK Engineering System' - scriptType: 'pscore' - scriptLocation: 'scriptPath' - scriptPath: $(Build.SourcesDirectory)/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 - arguments: > - -BuildId $(OfficialBuildId) + displayName: 'Run Copilot Benchmarks script' + inputs: + azureSubscription: 'Azure SDK Engineering System' + scriptType: 'pscore' + scriptLocation: 'scriptPath' + scriptPath: $(Build.SourcesDirectory)/pipelines/scripts/Invoke-CopilotBenchmarks.ps1 + arguments: > + -BuildId $(OfficialBuildId)