Skip to content

web: Share Docker connection for exit-code inspection#49

Merged
cgwalters merged 2 commits into
cgwalters:mainfrom
arewm:detect-missing-binary
Apr 8, 2026
Merged

web: Share Docker connection for exit-code inspection#49
cgwalters merged 2 commits into
cgwalters:mainfrom
arewm:detect-missing-binary

Conversation

@arewm

@arewm arewm commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Address PR #47 review feedback: create the bollard Docker connection once before the enrichment future and reuse it for exit-code inspection, rather than opening a redundant second connection afterward.

Add an integration test that exercises the full diagnostics pipeline by creating a pod without mock-agent mode so the agent container hits the pre-flight check (exit 42). This required adding start_without_mock() and create_pod_expect_degraded() to DevaipodHarness.

Assisted-by: OpenCode (claude-opus-4-6)

arewm added 2 commits April 7, 2026 18:01
…n test

Address PR cgwalters#47 review feedback: create the bollard Docker connection
once before the enrichment future and reuse it for exit-code inspection,
rather than opening a redundant second connection afterward.

Add an integration test that exercises the full diagnostics pipeline by
creating a pod without mock-agent mode so the agent container hits the
pre-flight check (exit 42).  This required adding start_without_mock()
and create_pod_expect_degraded() to DevaipodHarness.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: arewm <arewm@users.noreply.github.com>
The pre-flight check for the agent binary ran after waiting for the
state file, which meant a container with a missing binary would block
indefinitely instead of failing fast. Move the check earlier so the
container exits with code 42 immediately, putting the pod into
Degraded state where the diagnostics pipeline can surface it.

The integration test was also using the default test image
(ghcr.io/bootc-dev/devenv-debian) which ships opencode, so the
pre-flight check always passed. Switch to devcontainers/base:ubuntu
which has git but not opencode.

Assisted-by: Claude Code (claude-opus-4-6)
Signed-off-by: arewm <arewm@users.noreply.github.com>
@arewm arewm marked this pull request as ready for review April 8, 2026 12:35
@cgwalters cgwalters merged commit 3d22630 into cgwalters:main Apr 8, 2026
3 checks passed
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