Skip to content

Conversation

@adityamandaleeka
Copy link
Member

Skip a bunch of the Linux variants for PR jobs. There's almost nothing we can do in this repo to break these so we're mostly just spending the extra ~hour of machine time per PR run for no value.

Note that I left Linux x64 alone but moved the others to not be triggered on PR jobs.

image

@adityamandaleeka adityamandaleeka requested review from a team and wtgodbe as code owners December 9, 2025 22:30
Copilot AI review requested due to automatic review settings December 9, 2025 22:30
@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes CI pipeline execution time for pull requests by skipping Linux architecture variant builds that are unlikely to catch issues specific to those platforms. The Linux x64 build continues to run on PRs, while ARM, ARM64, and Musl variants are only built for non-PR scenarios (merges, releases, manual runs).

Key Changes:

  • Wrapped 5 Linux build variants in notin(variables['Build.Reason'], 'PullRequest') conditionals
  • Preserved Linux x64 builds for PR validation
  • Reduced PR build time by approximately one hour per run

@adityamandaleeka adityamandaleeka merged commit 708ab16 into dotnet:main Dec 10, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview1 milestone Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants