Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pipelines/azure-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
stages:
Comment thread
hallipr marked this conversation as resolved.
- stage: RunBenchmark
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
Comment thread
hallipr marked this conversation as resolved.
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)
5 changes: 5 additions & 0 deletions pipelines/scripts/Invoke-CopilotBenchmarks.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
param(
Comment thread
hallipr marked this conversation as resolved.
[string]$BuildId
)
Comment thread
hallipr marked this conversation as resolved.

Comment thread
hallipr marked this conversation as resolved.
Write-Host "Invoking Copilot Benchmarks for Build ID: $BuildId"
5 changes: 5 additions & 0 deletions pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variables:
OfficialBuildId: $(Build.BuildNumber)
skipComponentGovernanceDetection: true
nugetMultiFeedWarnLevel: 'none'
GDN_SUPPRESS_FORKED_BUILD_WARNING: true
Comment thread
hallipr marked this conversation as resolved.
28 changes: 28 additions & 0 deletions pipelines/templates/variables/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Default pool image selection. Set as variable so we can override at pipeline level
Comment thread
hallipr marked this conversation as resolved.

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
Comment thread
hallipr marked this conversation as resolved.
value: macOS
Loading