Repository navigation
Fix Build Failure Analysis binlog MCP startup - #56536
Conversation
Keep the MCP gateway runtime value tag-only while preserving an immutable digest for workflow pre-downloads. Co-authored-by: Copilot <[email protected]>
|
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. |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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 tosha256: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 expectedBFA0002diagnostic. 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.
Summary
binlog-mcpsource/runtime container reference tag-only so MCP Gateway v0.4.25 accepts it..github/aw/actions-lock.jsonand regenerate both Build Failure Analysis workflows so image pre-downloads remain immutable.Context
#56422 placed
image@sha256:...directly in the custom MCP server configuration. gh-aw accepts that source value, but MCP Gateway rejects the generated runtimecontainervalue because its schema only permitsimage[:tag]. This makesStart MCP Gatewayfail 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
sha256:ca760fd18bf8e6168d9b304d65c5d2340e4135fc9080c6e2f2eb4800368e3df4while runtime MCP JSON remains tag-only and matches the gateway schema.