#69593·aspnetcore

Add agent guidance for AzDO and Helix CI investigation

Author: javiercnCreated Sep 29, 2026Updated Sep 29, 2026
Labelsdesign-proposal

Summary

Add repository-specific Copilot guidance for diagnosing and retrying Azure Pipelines and Helix failures on ASP.NET Core pull requests.

Motivation and goals

Agent-driven CI investigations currently require rediscovering several ASP.NET Core-specific distinctions that materially affect the correct response to a red aggregate:

  • A failed Azure Pipelines aggregate may represent a product/test failure, pre-Helix restore failure, Helix submission failure, post-test reporter failure, merge conflict, or unrelated infrastructure problem.
  • GitHub's check-run rerequest endpoint may not support Azure Pipelines external checks.
  • A retry should be scoped to the affected pipeline and should occur only after every failure is attributed.

For example, #69232 had two failed signalr.client.java.Tests-- Helix work items even though every Java test passed. Both failed later in Gradle :test:testReport because Spotless could not load JGit AnyObjectId. The MVC-only diff had no correlation, and a target-branch build using the same target SHA passed both Windows Helix subsets. A scoped /azp run aspnetcore-ci queued a replacement build, which passed along with Build Analysis and Build Insights.

Other recent investigations have encountered materially different red states, including restore failures before any Helix work item was submitted, Helix submission HTTP failures, and merge conflicts where no AzDO build was queued. Durable guidance would make classifications and retry decisions more consistent and evidence-based.

In scope

  • Add a dedicated .github/instructions/ci.instructions.md or an equivalent focused section in .github/copilot-instructions.md.
  • Require resolving every red aggregate to its exact AzDO build and job and, when present, its Helix work item and failure stage.
  • Require correlation with changed files, Build Analysis/known-issue evidence, target-branch comparison, and build progression as applicable.
  • Explicitly distinguish product/test failures from restore, submission, reporter, post-test, merge-conflict, and infrastructure failures.
  • Document the scoped /azp run <pipeline-name> retry path for Azure Pipelines checks when GitHub rerequest is unsupported.
  • Require verifying bot acknowledgement, replacement build ID, PR source SHA, and final Build Analysis/Build Insights state.
  • Prohibit empty commits as a CI retry mechanism.

Out of scope

  • Changing Azure Pipelines or Helix infrastructure.
  • Automatically classifying failures without log evidence.
  • Creating or expanding Known Build Error issues.
  • Repository-specific guidance for non-AzDO CI systems.

Risks / unknowns

  • Guidance could duplicate or drift from Arcade's Build Analysis documentation; the repository instruction should link to or align with the authoritative workflow rather than restating unstable implementation details.
  • Pipeline names and retry-comment behavior may evolve, so examples should emphasize the decision process and scoped retry principle.
  • The instruction's applyTo scope needs to cover PR/CI maintenance tasks without affecting unrelated code-authoring prompts.

Examples

Suggested core guidance:

Do not classify or retry a red Azure Pipelines aggregate until every failure is resolved to its exact build, job, and—when present—Helix work item and failure stage. Correlate the signature with changed files and build progression, compare the target branch and known-issue evidence where needed, and distinguish product/test failures from restore, submission, reporter, post-test, merge-conflict, and infrastructure failures. Retry only after attribution; for external AzDO checks use the repository's scoped /azp run <pipeline-name> path when GitHub rerequest is unsupported, and verify the replacement build was actually queued. Never use an empty commit as a retry mechanism.