Skip to content

Centralize per-platform default build timeouts in sdk-build template - #54804

Merged
MichaelSimons merged 2 commits into
mainfrom
michaelsimons/increase-mac-timeout-90min
Jun 17, 2026
Merged

MichaelSimons merged 2 commits into
mainfrom
michaelsimons/increase-mac-timeout-90min

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Centralizes timeout logic in eng/pipelines/templates/jobs/sdk-build.yml so that each platform gets an appropriate default timeout without callers needing to specify one explicitly.

Motivation: The macOS ARM64 leg timed out at the 60-minute default (build 1466643). Rather than adding yet another per-leg timeoutInMinutes override, this makes the template platform-aware so all macOS legs automatically get the right timeout.

Behavior

The template now applies variable defaults based on parameters.pool.os:

Platform Default timeout
macOS 90 minutes
All others 60 minutes

Callers can still pass an explicit timeoutInMinutes parameter to override the defaults.

Changes

  • eng/pipelines/templates/jobs/sdk-build.yml: Replaced hardcoded 60-minute default with conditional logic based on parameters.pool.os
  • .vsts-pr.yml: Removed now-redundant timeoutInMinutes: 90 from macOS x64 CI-only leg
  • .vsts-ci.yml: Removed now-redundant timeoutInMinutes: 90 from macOS x64 official leg

Copilot AI review requested due to automatic review settings June 16, 2026 18:07
@MichaelSimons
MichaelSimons requested a review from MiYanni as a code owner June 16, 2026 18:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Azure Pipelines configuration to prevent macOS ARM64 legs from timing out by aligning their job timeout with the already-increased macOS x64 timeout.

Changes:

  • Increase macOS ARM64 PR leg timeout to 90 minutes in .vsts-pr.yml.
  • Increase macOS ARM64 CI (TestBuild) leg timeout to 90 minutes in .vsts-ci.yml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.vsts-pr.yml Sets timeoutInMinutes: 90 for the macOS ARM64 PR job matrix invocation.
.vsts-ci.yml Sets timeoutInMinutes: 90 for the macOS ARM64 CI TestBuild job matrix invocation.

@MichaelSimons MichaelSimons changed the title Increase macOS ARM64 build timeout to 90 minutes Centralize per-platform default build timeouts in sdk-build template Jun 16, 2026
Move timeout logic into sdk-build.yml so platforms get appropriate
defaults without requiring each caller to specify them:
- macOS: 90 minutes (to accommodate slower hosted agents)
- All others: 60 minutes
- Callers can still override with an explicit timeoutInMinutes parameter

Removes now-redundant timeoutInMinutes: 90 overrides from .vsts-pr.yml
and .vsts-ci.yml macOS legs.

Fixes timeout in build 1466643.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MichaelSimons
MichaelSimons force-pushed the michaelsimons/increase-mac-timeout-90min branch from 27e9c29 to 0267e2d Compare June 16, 2026 19:13
@MichaelSimons
MichaelSimons requested a review from a team June 16, 2026 19:15
@MichaelSimons

Copy link
Copy Markdown
Member Author

Gentle ping @dotnet/dotnet-cli for a review.

@MichaelSimons

Copy link
Copy Markdown
Member Author

/ba-g known intermittent test failure tracked with #54817.

@MichaelSimons
MichaelSimons merged commit 4442dc3 into main Jun 17, 2026
23 of 25 checks passed
@MichaelSimons
MichaelSimons deleted the michaelsimons/increase-mac-timeout-90min branch June 17, 2026 19:19
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants