Skip to content

fix(deploy): check the receiver resolver file - #100

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/gm-j4-codex
Nov 23, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/gm-j4-codex

Conversation

@tbhb-dev-agent-pull-requests

@tbhb-dev-agent-pull-requests tbhb-dev-agent-pull-requests Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Why

A missing or invalid resolver file can reach Docker after the deployment has already started preparing the App key. The deployment view also needs to tell operators how the resolver mount affects collector access. Previous change

Behavior change

deploy/up.sh checks that the receiver resolver variable names an existing, non-empty regular file before it calls Docker. A bad value exits with status 2 and prints a message that includes the variable name. The deployment view explains that the mounted file replaces Docker's embedded DNS for the receiver. The receiver then needs the collector's IP address.

Decisions

An exported value takes precedence over a literal path in .env. Compose resolves relative paths beside compose.yaml. The temporary Compose environment file carries the checked path through sudo when it filters environment variables.

Deviations from the task

The tests also cover an empty variable and a symlink to a directory. They cover a resolver assignment inside an unrelated quoted value, and precedence for an exported path.

Needs human judgment

Check whether any deployment uses variable expansion for the resolver path in .env. It can set a literal path there or export the resolved value before calling deploy/up.sh.

Risk

Deployments with a missing resolver variable or an invalid file stop before the key helper runs. The caller must supply a valid path for deployment to proceed.

Verification

bazelisk run //:format, bazelisk run //:gazelle, and bazelisk test //:golangci_lint_test passed. bazelisk test //... reported 33 passes and one skipped test on Linux. The deployment tests cover the resolver preflight, the successful path through sudo, and the receiver bind setting create_host_path: false. The committed size was pr_size: code=170/400 raw=199/1500.

Human steering

The PR J4 brief specified the resolver preflight, Compose assertion, and deployment documentation.

Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli

Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:6d03a43d0f3dbada;surface=exec
@tbhb-agent
tbhb-agent merged commit a567cc1 into main Nov 23, 2026
8 checks passed
@tbhb-agent
tbhb-agent deleted the agent/gm-j4-codex branch November 23, 2026 19:20
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.

1 participant