Skip to content

fix(snap): recover gateway after Docker connection - #2866

Open
elezar wants to merge 2 commits into
2055-snap-guest-harness/ekfrom
2055-snap-gateway-lifecycle/ek
Open

fix(snap): recover gateway after Docker connection#2866
elezar wants to merge 2 commits into
2055-snap-guest-harness/ekfrom
2055-snap-gateway-lifecycle/ek

Conversation

@elezar

@elezar elezar commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

Recover the Snap gateway when the Docker interface becomes available after installation, then make the release canary wait for bounded readiness and retain Snap diagnostics on failure.

Related Issue

Closes #2055.

Changes

  • Add a Docker interface connection hook that restarts the Snap gateway without making ordinary startup Docker-dependent.
  • Wait up to 30 seconds for Snap gateway readiness in Release Canary.
  • Add failure-only Snap service, connection, journal, log, and listener diagnostics.
  • Support manual Snap-canary dispatch when a successful Release Dev artifact run ID is supplied.
  • Document the connection lifecycle and update the release-canary skill.

Testing

  • mise run pre-commit passes
  • Hook packaging assertion
  • Local ARM64 Ubuntu VM: original artifact reproduced the connection refusal
  • Local ARM64 Ubuntu VM: hook-enabled artifact passed 5/5 attempts with a 30-second readiness bound
  • Unit tests added/updated
  • E2E tests added/updated (will run through the unchanged Release Canary artifact flow)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown

@elezar
elezar marked this pull request as ready for review August 21, 2026 09:48
@elezar
elezar requested review from a team, derekwaynecarr, mrunalp and sjenning as code owners August 21, 2026 09:48
Comment on lines +107 to +108
Connecting Docker automatically restarts the gateway so it discovers the newly
available Docker socket. This restart interrupts active sandbox sessions.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seems superfluous

Signed-off-by: Evan Lezar <elezar@nvidia.com>
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.

2 participants