Skip to content

Resolve enclave MCP gateway DNS after network attachment - #11393

Merged
lpcox merged 2 commits into
mainfrom
copilot/aw-failed-jobs-smoke-enclave-build-test
Nov 10, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/aw-failed-jobs-smoke-enclave-build-test

Conversation

Copilot AI commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The Smoke Enclave Build Test timed out because its prestarted MCP gateway could not resolve the enclave service after joining the private control network. The downstream verification job then failed because no token-usage records were produced.

  • Resolution: Validate the private network membership and MCP server IPv4 address, then add the service alias to the gateway’s /etc/hosts:
    172.30.0.2 awf-enclave-mcp
    
  • Failure handling: Reject invalid addresses or failed host mapping; detach the gateway on setup failure.
  • Coverage: Add regression cases for successful mapping and fail-closed behavior.

Copilot AI linked an issue Nov 10, 2026 that may be closed by this pull request
1 task done
Copilot AI changed the title [WIP] Fix failed jobs in smoke enclave build test Resolve enclave MCP gateway DNS after network attachment Nov 10, 2026
Copilot AI requested a review from lpcox November 10, 2026 02:26
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 02:48
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 02:48

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

The startup-critical sed -i edit of Docker-managed /etc/hosts needs validation in the supported gateway container because tests mock docker exec and the available environment could not verify the mount behavior.

No open issues 🎉

What changed in this PR

This PR addresses enclave MCP service resolution for a prestarted gateway after it joins the private control network, targeting the startup failure associated with #11392.

Changes:

  • Validates network membership and the enclave MCP server’s IPv4 address before configuring the gateway’s /etc/hosts.
  • Rejects failed host mapping and disconnects the gateway when setup fails.
  • Adds regression cases for successful mapping, invalid addresses, and mapping failures.
File Description
src/​enclave/​gateway.ts Adds validated service host mapping during gateway network attachment.
src/​enclave/​gateway.test.ts Covers host mapping and fail-closed cleanup behavior.

Review effort: Balanced (auto)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

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: Smoke Enclave Build Test

3 participants