Skip to content

Retry connection resets in Build Failure Analysis setup - #56396

Merged
YuliiaKovalova merged 1 commit into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-copilot-install-retries
Sep 25, 2026
Merged

YuliiaKovalova merged 1 commit into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-copilot-install-retries

Conversation

@YuliiaKovalova

Copy link
Copy Markdown
Member

Summary

Fixes #56224.

Adopt the released gh-aw v0.87.1 compiler and matching setup runtime for both Build Failure Analysis entry points. This brings in the existing upstream installer repairs from github/gh-aw#53112 and github/gh-aw#53154 rather than copying or patching an installer in SDK.

  • The compatibility-matrix request now retries connection-reset/TLS errors with --retry-all-errors.
  • Copilot checksum and binary downloads use five retries, a two-second delay, a 60-second retry budget, and --retry-all-errors. Downloads still go to files and are SHA256-verified before installation.
  • The same runtime also contains the corresponding AWF download retry fix.
  • Both the automatic and slash-command workflow locks are regenerated, not hand-edited. The shared source records the exact compiler version and immutable setup SHA needed for reproduction.
  • Existing action-cache entries, credential bindings, protected environment, fetch/selection jobs, trigger/concurrency settings, job dependencies/conditions, and permissions are preserved. No authentication fallback or detection bypass is introduced.

Failure addressed

In SDK run 34404402939, the main agent completed successfully. The detection job failed installing Copilot because the compatibility request and then v1.0.79/SHA256SUMS.txt failed with curl: (35) Recv failure: Connection reset by peer. Ordinary --retry did not retry that error class. The subsequent missing executable / missing detection result errors were consequences, not authentication failures.

The full diagnosis is recorded in #56224 (comment).

Why compiler and runtime move together

A runtime-only pin update is not sufficient: the newer setup bundle no longer includes install_ripgrep.sh, which the v0.86.2-generated workflows still invoke. Using the matching compiler removes those obsolete calls and emits the runtime's expected setup.

The generated update therefore includes framework changes beyond the curl flags: the Copilot fallback version moves from 1.0.79 to 1.0.80, AWF from v0.27.44 to v0.28.1, and framework safe-output/artifact preparation and error reporting are updated. The BFA prompt body, binlog MCP image/mount, PAT selection/bindings, and inference/write permission boundaries are unchanged.

The v0.87.1 setup action is pinned to 423b3dc04bbf1b1797194a4a75aa5cf5d0d4f5b3. The existing v0.88.7 cache entry used elsewhere in the repository is retained.

Validation and limits

  • Both workflows compile with v0.87.1 strict mode and schema/action validation. Repeating generation leaves both locks and the shared action cache byte-identical.
  • Eight local failure-injection cases use real curl against a loopback TLS endpoint, with the download flags extracted from the old and new immutable installer revisions. The old commands fail immediately on connection resets; the new commands recover. A retried partial download produces the exact expected bytes rather than appended content. Persistent resets and HTTP 404s remain failures after six total attempts.
  • Every setup helper referenced by the generated workflows exists in the matching runtime. All 12 setup steps use the intended SHA. Structural comparisons confirm unchanged fetch/selection jobs, authentication expressions, job gates, and permissions.
  • Native actionlint v1.7.12 introduces no new diagnostics. It still reports the two existing github.aw.import-inputs.random_seed expression diagnostics, also reproduced against unchanged upstream main. The compiler's Docker-based actionlint could not run because Docker Desktop's Linux daemon was unavailable; the equivalent checksum-verified native release was used, without shellcheck/pyflakes.
  • No SDK product code changed; no .NET product build/test suite was run.
  • The changed workflow has not yet been executed end-to-end in dotnet/sdk. The failure-injection results establish the retry behavior, not production inference/report delivery. Permanent download outages still fail explicitly.

Regenerate both BFA workflows with matching gh-aw v0.87.1 compiler and setup runtime to pick up bounded connection-reset retries for Copilot and AWF downloads. Preserve existing authentication and detection gates, document regeneration, and retain other workflows action pins.

Co-authored-by: Copilot <[email protected]>
Copilot AI lite review requested due to automatic review settings September 24, 2026 15:46
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🔵 Needs a closer look

Add the required telemetry session ID to both workflows and correct the setup action provenance comments.

Review effort: Lite
Findings: None

What changed in this PR

Updates Build Failure Analysis workflows to gh-aw v0.87.1 with retry-capable setup runtime behavior.

Changes:

  • Regenerates automatic and slash-command workflow locks.
  • Updates Copilot/AWF runtime handling and artifact fallback behavior.
  • Pins the v0.87.1 setup action and records it in the action lock.
File Description
.github/​workflows/​shared/​build-failure-analysis-shared.md Documents compiler and runtime regeneration requirements.
.github/​workflows/​build-failure-analysis.lock.yml Regenerated automatic analysis workflow.
.github/​workflows/​build-failure-analysis-command.lock.yml Regenerated slash-command workflow.
.github/​aw/​actions-lock.json Records the v0.87.1 setup action pin.

Both workflow entry points still require the workflow-scoped telemetry session ID, and the setup action comments should identify the v0.87.1 tag.

@YuliiaKovalova
YuliiaKovalova merged commit 92375db into dotnet:main Sep 25, 2026
15 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 26, 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.

[aw] Failed jobs: Build Failure Analysis

3 participants