Skip to content

Fix Build Failure Analysis binlog MCP startup - #56536

Merged
Evangelink merged 1 commit into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-binlog-mcp-digest
Oct 7, 2026
Merged

Evangelink merged 1 commit into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-binlog-mcp-digest

Conversation

@YuliiaKovalova

Copy link
Copy Markdown
Member

Summary

  • Keep the custom binlog-mcp source/runtime container reference tag-only so MCP Gateway v0.4.25 accepts it.
  • Cache the current MCR digest in .github/aw/actions-lock.json and regenerate both Build Failure Analysis workflows so image pre-downloads remain immutable.
  • Follow the working gh-aw v0.89.21 pattern used by TestFX: tag-only gateway configuration plus a separately pinned generated manifest entry.

Context

#56422 placed image@sha256:... directly in the custom MCP server configuration. gh-aw accepts that source value, but MCP Gateway rejects the generated runtime container value because its schema only permits image[:tag]. This makes Start MCP Gateway fail deterministically, as seen in run 37557099015.

The apt hash-mismatch originally reported in #56213 was already removed by #56396. This PR fixes the current Build Failure Analysis regression found while investigating that report; it does not recharacterize the original failure.

Validation

  • gh-aw v0.89.21 compiled both workflows in strict mode with workflow/schema validation.
  • actionlint v1.7.12 passed for both generated locks with gh-aw's known GitHub extension ignores.
  • Verified both generated manifests/pre-download steps use sha256:ca760fd18bf8e6168d9b304d65c5d2340e4135fc9080c6e2f2eb4800368e3df4 while runtime MCP JSON remains tag-only and matches the gateway schema.

Keep the MCP gateway runtime value tag-only while preserving an immutable digest for workflow pre-downloads.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 08:41
@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

🟢 Approval recommended

The runtime configuration now satisfies the observed gateway schema while both workflows consistently preload the digest-pinned image.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes Build Failure Analysis MCP startup while preserving immutable container preloading.

Changes:

  • Uses a tag-only runtime container reference accepted by MCP Gateway.
  • Pins the resolved image digest in the action lock.
  • Regenerates both workflow locks consistently.
File Description
.github/​workflows/​shared/​build-failure-analysis-shared.md Configures the tag-only MCP container.
.github/​workflows/​build-failure-analysis.lock.yml Updates the generated automatic workflow.
.github/​workflows/​build-failure-analysis-command.lock.yml Updates the generated command workflow.
.github/​aw/​actions-lock.json Records the immutable container and setup pins.

@Evangelink Evangelink left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed all four changed files and the complete producer-consumer startup path. No PR-introduced correctness issues found.

The tag-only runtime reference is compatible with MCP Gateway v0.4.25 without weakening the image pin: the setup action at 924af5fdc64061cfbf66fb584c8b07e2ac230c60 pulls the digest-qualified image and creates its digest-free tag alias; the gateway uses that locally cached image rather than forcing a tag pull.

Review evidence for aaff395ede4d86f168740ecb109507ba24aa378c:

  • Regenerated both workflows using gh-aw v0.89.21 with gh aw compile build-failure-analysis build-failure-analysis-command --strict --approve --no-check-update --schedule-seed dotnet/sdk --action-mode action --action-tag v0.89.21 --validate. Generated content matches the committed locks exactly after line-ending normalization.
  • Ran actionlint v1.7.12 against both HEAD and the merge base. All 14 diagnostics are identical pre-existing diagnostics; the PR introduces none. The Windows compiler's actionlint wrapper passes Windows paths into its Linux container, so this comparison used the pinned actionlint image directly with Linux-container paths.
  • Exercised the actual pinned setup preloader, gateway image ghcr.io/github/gh-aw-mcpg:v0.4.25@sha256:9be0a86220e807a0ecc89e53d7453468f7a53fbc6b3d1efd2299025ffe01d086, and binlog image pinned to sha256:ca760fd18bf8e6168d9b304d65c5d2340e4135fc9080c6e2f2eb4800368e3df4. The digest-qualified runtime configuration fails with a container-pattern validation error; the tag-only configuration becomes healthy and completes MCP initialization and tool discovery.
  • Queried real clean and intentionally failing MSBuild binlogs through the gateway using binlog_errors. The clean log reports no errors; the failing log reports the expected BFA0002 diagnostic. Confirmed the launched backend's image ID matches the pinned digest and its binlog mount is read-only. Used a unique temporary tag and translated host mount paths for the local Docker Desktop smoke check, without changing the shared existing image tag.

This validates the changed startup boundary locally; it is not a claim that a complete hosted Azure DevOps-to-GitHub analysis run was performed.

Note

This review was AI-generated by GitHub Copilot.

@Evangelink
Evangelink merged commit a893b31 into dotnet:main Oct 7, 2026
15 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 8, 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