Skip to content

Split CI into independently retryable stages - #69897

Merged
wtgodbe merged 2 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/isolate-helix-stage
Oct 16, 2026
Merged

wtgodbe merged 2 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/isolate-helix-stage

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Split CI into independently retryable stages

Important

Estimated retry impact: product-build failures become retryable about 17 minutes earlier and platform-test failures about 8 minutes earlier (median). Retrying one category uses roughly 2.4–2.9 agent-hours instead of about 8 agent-hours for a full rerun.

Split CI into independently retryable stages

Description

Splits the public and internal CI pipelines into four parallel stages:

  • build: Code Check, product builds, SourceBuild, and internal publishing.
  • platform_tests: Windows, macOS, and Linux test jobs.
  • local_validation: Windows local-development validation.
  • helix_tests: both Helix submitters and the Helix Job Monitor.

Each execution stage uses dependsOn: [], so this does not add a join job, artifact transfer, machine provisioning, or expected wall-time cost to a successful run. It allows a failed category to be retried independently, and allows shorter stages to become retryable without waiting for unrelated long-running jobs.

Arcade's Helix Job Monitor scopes Helix jobs and Azure DevOps timeline records by stage. Keeping only the submitters and monitor together prevents failures in other stages from failing the monitor. The monitor intentionally remains parallel with the submitters so it can publish completed work-item results while waiting for the stage's Helix work to finish.

The internal pipeline preserves its existing execution conditions: Windows tests remain unconditional, while macOS/Linux tests, local validation, and Helix run for non-skipped PR/manual builds. Official post-build validation continues to wait for both product builds and the always-present platform-test stage.

The timing estimates use 118 recent public main runs. The previous combined non-Helix stage completed in 65.1 minutes median, compared with 48.4 minutes for product builds and 57.5 minutes for platform tests. This change is not expected to shorten a fully green run; its benefit is earlier, narrower failure recovery.

Validation:

  • YAML parsing passed for both changed pipeline files.
  • The evaluated public and internal structures contain each moved job exactly once in the intended stage.
  • All four execution stages remain parallel.
  • Internal conditions and official post-build dependencies were verified.
  • The current PR build recognized the Build, Platform tests, Local development validation, and Helix tests stages.
  • git diff --check passed.

@wtgodbe
wtgodbe requested a review from a team as a code owner October 16, 2026 20:16
Copilot AI balanced review requested due to automatic review settings October 16, 2026 20:16

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.

🟡 Changes recommended

The internal Helix stage drops the existing build-reason restriction, unintentionally adding builds and test submissions to push-triggered runs.

1 open finding
What changed in this PR

Separates Helix testing from other CI jobs so its monitor is isolated and the stage can be retried independently.

Changes:

  • Moves both Helix submitters and their monitor into dedicated stages in public and internal CI.
  • Uses dependsOn: [] to preserve parallel execution with the build stage.
File Description
.azure/​pipelines/​ci.yml Adds a conditional internal Helix stage.
.azure/​pipelines/​ci-public.yml Separates Helix jobs while retaining local validation and source-build in the build stage.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread .azure/pipelines/ci.yml Resolved
@wtgodbe wtgodbe changed the title Isolate Helix jobs in a dedicated stage Split CI into independently retryable stages Oct 16, 2026
@wtgodbe
wtgodbe requested a balanced review from Copilot October 16, 2026 20:27

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.

🔵 Needs a closer look

Internal template expansion and independent stage-retry behavior still need confirmation.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@wtgodbe
wtgodbe merged commit 819c2d6 into dotnet:main Oct 16, 2026
27 checks passed
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:14 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:14 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:15 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:17 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:18 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:18 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR is a build/CI change that splits pipelines into independently retryable stages.

Documentation surfaces considered

  • Conceptual article: Not required — CI pipeline YAML only; no public API, template, or behavior change.
  • Migration guidance: Not required — No upgrade action for users.
  • Breaking change: Not required — No compatibility impact.

@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 22:19 — with GitHub Actions Inactive
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 30, 2026
wtgodbe added a commit that referenced this pull request Nov 4, 2026
Backport to release/11.0.

(cherry picked from commit 819c2d6)

Co-authored-by: Copilot <[email protected]>
wtgodbe added a commit that referenced this pull request Nov 4, 2026
Adapt for release/10.0 while retaining branch-specific jobs, conditions, source indexing, source-build settings, and official validation dependencies.

(cherry picked from commit 819c2d6)

Co-authored-by: Copilot <[email protected]>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 47f8a17a Deployed Oct 16, 2026 by wtgodbe via conclusion #59
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