diff --git a/eng/pipelines/coreclr/templates/helix-queues-setup.yml b/eng/pipelines/coreclr/templates/helix-queues-setup.yml index 69f71ee0a1b171..a8cd074472f1ae 100644 --- a/eng/pipelines/coreclr/templates/helix-queues-setup.yml +++ b/eng/pipelines/coreclr/templates/helix-queues-setup.yml @@ -30,6 +30,9 @@ jobs: pool: ${{ parameters.pool }} platform: ${{ parameters.platform }} shouldContinueOnError: ${{ parameters.shouldContinueOnError }} + + # IMPORTANT: Select public/internal queue aliases explicitly. Runtime macros expand too late + # for helix.yml to strip the .Open suffix at template expansion time for internal runs. helixQueues: # iOS Simulator/Mac Catalyst arm64 diff --git a/eng/pipelines/installer/helix-queues-setup.yml b/eng/pipelines/installer/helix-queues-setup.yml index 63537adce4e97a..90e227460c94f6 100644 --- a/eng/pipelines/installer/helix-queues-setup.yml +++ b/eng/pipelines/installer/helix-queues-setup.yml @@ -18,6 +18,9 @@ steps: osGroup: ${{ parameters.osGroup }} osSubgroup: ${{ parameters.osSubgroup }} useHelixMonitor: ${{ parameters.useHelixMonitor }} + + # IMPORTANT: Select public/internal queue aliases explicitly. Runtime macros expand too late + # for helix.yml to strip the .Open suffix at template expansion time for internal runs. helixQueues: # Linux arm @@ -42,11 +45,17 @@ steps: # OSX arm64 - ${{ if eq(parameters.platform, 'osx_arm64') }}: - - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_arm64_latest_internal) # OSX x64 - ${{ if eq(parameters.platform, 'osx_x64') }}: - - $(helix_macos_x64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_x64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_x64_latest_internal) # windows x64 - ${{ if eq(parameters.platform, 'windows_x64') }}: diff --git a/eng/pipelines/libraries/helix-queues-setup.yml b/eng/pipelines/libraries/helix-queues-setup.yml index d0bbe354121571..124c191c81f030 100644 --- a/eng/pipelines/libraries/helix-queues-setup.yml +++ b/eng/pipelines/libraries/helix-queues-setup.yml @@ -21,6 +21,9 @@ jobs: pool: ${{ parameters.pool }} platform: ${{ parameters.platform }} shouldContinueOnError: ${{ parameters.shouldContinueOnError }} + + # IMPORTANT: Select public/internal queue aliases explicitly. Runtime macros expand too late + # for helix.yml to strip the .Open suffix at template expansion time for internal runs. helixQueues: # Linux arm @@ -81,11 +84,17 @@ jobs: # OSX arm64 - ${{ if eq(parameters.platform, 'osx_arm64') }}: - - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_arm64_latest_internal) # OSX x64 - ${{ if eq(parameters.platform, 'osx_x64') }}: - - $(helix_macos_x64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_x64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_x64_latest_internal) # Android # Use the Ubuntu-based Android queue for x86/x64/bionic_x64 on all projects, @@ -101,19 +110,31 @@ jobs: # iOS Simulator/Mac Catalyst arm64 - ${{ if in(parameters.platform, 'iossimulator_arm64', 'tvossimulator_arm64', 'maccatalyst_arm64') }}: - - $(helix_macos_ios_simulator_arm64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_ios_simulator_arm64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_ios_simulator_arm64_internal) # iOS/tvOS Simulator x64 & MacCatalyst x64 - ${{ if in(parameters.platform, 'iossimulator_x64', 'tvossimulator_x64', 'maccatalyst_x64') }}: - - $(helix_macos_ios_simulator_x64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_ios_simulator_x64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_ios_simulator_x64_internal) # iOS devices - ${{ if in(parameters.platform, 'ios_arm64') }}: - - $(helix_macos_ios_device) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_ios_device) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_ios_device_internal) # tvOS devices - ${{ if in(parameters.platform, 'tvos_arm64') }}: - - $(helix_macos_tvos_device) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_tvos_device) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_tvos_device_internal) # windows x64 - ${{ if eq(parameters.platform, 'windows_x64') }}: @@ -132,7 +153,10 @@ jobs: - (Windows.10.Amd64.ServerRS5.Open)windows.10.amd64.serverrs5.open@mcr.microsoft.com/dotnet-buildtools/prereqs:windowsservercore-ltsc2019-helix-amd64@sha256:377831a7ccbdcbb1d71b5fd7dcf1a5e79314bd4d5e12f818cdc41815a3b3b2a6 - ${{ if or(ne(parameters.jobParameters.isExtraPlatformsBuild, true), eq(parameters.jobParameters.includeAllPlatforms, true)) }}: # Primary Windows queues for all builds: latest + Nano (distinct environment) - - $(helix_windows_x64_latest) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_windows_x64_latest) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_windows_x64_latest_internal) - ${{ if ne(parameters.jobParameters.runtimeFlavor, 'mono') }}: - (Windows.Nano.1809.Amd64.Open)windows.10.amd64.serverrs5.open@mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64@sha256:d2d8804d22eb173947282a2aa24f73fbfe06e35ccbf26dcde3199368218158b8 # Additional Windows versions on non-PR builds for broader coverage @@ -190,6 +214,9 @@ jobs: # Browser WebAssembly macOS - ${{ if eq(parameters.platform, 'browser_wasm_mac') }}: - - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'public') }}: + - $(helix_macos_arm64) + - ${{ if eq(variables['System.TeamProject'], 'internal') }}: + - $(helix_macos_arm64_latest_internal) ${{ insert }}: ${{ parameters.jobParameters }}