Repository navigation
fix(health-check): [#2764] follow the CLI output contract in http_health_check - #2889
Conversation
…t variable in the image test stages The image test stages run from a nextest archive built in another stage, so the path Cargo compiled into CARGO_BIN_EXE_http_health_check does not exist there. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at cacc2bcb55dfdbbdac95d056c37ec2af08f96df1. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop b0fa2abaf writes a clean tree (exit 0), and no file is changed on both sides.
Process: a fix in substance, so fix-bug governs, with write-unit-test for the child-process fixture, create-issue for the spec progress and commit-changes/open-pull-request for the branch. Reproduction, red run, fix, green run and a like-for-like recheck are all recorded; F4 and F5 are gaps in the rows and records, not in the work.
The change against its claim: the binary writes nothing to stdout, one JSON line with a kind to stderr, and exits 0, 1 or 2 as described; the print_*/exit allow is gone and serde_json was already a dependency. Each of the five tests fails against the old binary (text on stdout, or exit 1 for usage), so none would pass with the fix reverted. The nextest fallback matches the image's test stage, which runs from a remapped archive. The HEALTHCHECK is unchanged and its || exit 1 folds exit 2 into 1.
Consistency: the spec's skill link resolves, every path the docs name exists, in-progress is a valid open status, the ADR row is left to the close-out issue as the EPIC plans, and remapped is the only word new to the tree.
Hygiene: four Conventional subjects in the [#2764] form; author equals committer; two commits have no body; two carry an attribution footer, which no rule in the tree forbids; git diff --check is clean; the skill's PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description.
Findings: F1 to F5 Minor, F6 to F8 Nit, F9 Suggestion; none blocks.
Checked, no finding: the new code against the workspace's pedantic and nursery deny set; the argument-count, 404 and closed-port paths; fixture cleanup on panic and on the deadline; the EPIC row, left to the close-out as for the earlier children; the evidence file's own stamp; the PR 2854 and PR 2878 merges the log cites are in the base.
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-990): the repository's pre-commit gate and lint roster exit 0 (387 s wall). The torrust-tracker package's http_health_check test and binary targets exit 0: 5 passed, 0 failed, 0 ignored across 2 test binaries (38 s wall). This PR has no audit record of its own. F2 checked against the bytes at posting: src/bin/http_health_check.rs collects env::args() before the argument count is checked. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker): completed/success; Docker E2E: completed/skipped; Workspace Packaging: completed/success; Shipped Features: completed/success; Layer Boundary Bans: completed/success; Unit (stable): in_progress/pending; Unit (nightly): in_progress/pending; Documented Clippy Allows: completed/success; Test (Docker) (release): queued/pending; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Docs Lint: completed/success". At posting, develop is b0fa2abaf.
|
ACK cacc2bc — the binary's empty stdout, one-JSON-line stderr records and 0/1/2 exit codes, the five child-process tests read against the old and new binary, and the spec and evidence claims were recomputed at this head with no blocking finding |
|
ACK cacc2bc |
There was a problem hiding this comment.
🟡 Changes recommended
Health-check diagnostics can expose credentials from supplied URLs in captured logs, including through formatted request errors.
3 open issues
What changed in this PR
Updates http_health_check for the global CLI output contract under #2764, part of EPIC #2758, while preserving the nonzero failure status used by container health checks.
Changes:
- Replaces plain-text output with JSON stderr records, empty stdout, and exit codes
0,1, and2. - Adds five child-process tests with nextest archive support.
- Records regression, mutation, real-tracker, and container verification evidence.
| File | Description |
|---|---|
tests/http_health_check.rs |
Tests probe outcomes, usage errors, output streams, and exit codes. |
src/bin/http_health_check.rs |
Implements structured diagnostics and usage-error exit code 2. |
docs/issues/open/2764-2758-http-health-check-no-stdout/manual-verification-evidence.md |
Records test results and manual tracker/container checks. |
docs/issues/open/2764-2758-http-health-check-no-stdout/ISSUE.md |
Updates implementation progress, acceptance evidence, and trade-offs. |
Review effort: Balanced
…thout listening A released port can be taken by a concurrent port-0 bind before the probe connects, which would answer the probe. Keep a socket bound to the port for the whole probe instead, as the axum-rest-api-server tests do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n the binary and its tests - Keep the probed URL out of every record and strip it from request errors: it can carry credentials (the contract's redaction policy). - Read the arguments with args_os: a non-UTF-8 argument and an argument that is not a URL are usage errors (exit 2), not a panic or exit 1. - Keep the outcome's exit code when the record cannot be written, as the reference tools do. - Tests: regression tests for the above, stderr in every exit-code assertion message, and the proxy variables removed from the child. - Add "userinfo" (the URL part, RFC 3986) to the project dictionary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/bin tools live Co-Authored-By: Claude Opus 5.5 <[email protected]>
… spec and the evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at f4e06ed35e2653269010a149aad70f4ceab1a4a7. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop 9e463cb0c writes a clean tree (exit 0): the one file both sides changed, the issue spec, takes develop's move of its skill links to the new skills directory, every relative link in the PR's Markdown resolves in the merged tree, and no PR file cites the old skills path.
Round 2 fast-forwards cacc2bcb5 by five commits, and each does what its message says. Round-1 findings at this head: F1 fixed (the unreachable cases hold a bound, non-listening socket until the child exits); F2 fixed (args_os; a non-UTF-8 or unparsable argument is a usage_error with exit 2); F3 fixed (the outcome's code is kept, and the comment says so); F4 fixed (T3 and M2 describe the port-mismatch run); F5 fixed (R1 lists every test's failing assertion, R2 has a row per named clause and names its restore commands); F6 fixed (assert_exit_code); F7 settled by an appended correction, and this round's stamps precede their commits; F8 fixed; F9 fixed (six proxy variables removed from the child).
The redaction change answers the second review's finding under ADR section 7 (diagnostics must not expose credentials), which round 1 here missed: no record carries the URL, request errors pass through without_url before their causes are written, a usage error never echoes the argument, and three tests check userinfo, path and query secrets for each outcome. R1 shows each new test failing against the previous binary.
Audit record: the validator's checks, run offline on the capture with the local commit range, pass (12 rows, 0 failures); each thread has one reply on itself and is resolved; the late start is disclosed in the log.
Hygiene: five Conventional subjects with [#2764]; author equals committer; each commit carries an attribution footer, which no rule in the tree forbids; git diff --check is clean; the PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description.
Findings: F10 and F11 Nit, F12 Suggestion; none blocks.
Checked, no finding: lints on the new code (let _ on fmt::Result, drop on io::Result, the matches that bind their error); TcpSocket bound without a runtime; userinfo in the dictionary, in order; the updated description; develop's audit-template change (paths only).
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-1000): the repository's pre-commit gate and lint roster exit 0 (737 s wall on a loaded node), and the audit-record validator for this PR reports status ok with 12 rows, 5 log entries and 0 failures. The torrust-tracker package's http_health_check test and binary targets exit 0: 10 passed, 0 failed, 0 ignored across 2 test binaries. F12 checked against the bytes at posting: parse_arguments in src/bin/http_health_check.rs (line 79) maps only a Url::parse failure to the usage error, with no check of the scheme. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9e463cb0c.
|
ACK f4e06ed — the nine round-1 findings, the URL redaction and argument handling, the ten child-process tests, the audit record against the capture and the clean merge with develop were recomputed at this head with no blocking finding |
… or https as a usage error Co-Authored-By: Claude Opus 5.5 <[email protected]>
… spec and the evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at bc723d673f8ff3d388e233c9546b914881fd8714. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop 9e463cb0c writes a clean tree (exit 0), the shared issue spec takes develop's skill-link move, and every relative link in the PR's Markdown resolves in the merged tree.
Round 3 fast-forwards f4e06ed35 by three commits, and each does what its message says. Round-2 findings at this head: F10 settled (the evidence states the stage-result argument, what the entrypoint check does not rule out, and that the run is kept on that argument); F11 fixed (R2 rows for exit 0 on a 2xx answer and exit 1 on a failed request, each failing two tests, the non-compiling first attempt disclosed and not counted, AC3 naming the five clauses); F12 fixed (parse_arguments accepts only http and https; the new test fails against the previous binary with exit 1, as recorded, and by reading). F1 to F9 stay fixed: this round touches only parse_arguments, one test, the spec, the evidence and the audit.
Audit record: the validator's checks, run offline on the capture with the local commit range, pass (15 rows, 8 log entries, 0 failures); the three new rows match their source brackets and reviews, each reply sits on its own thread, all 15 threads are resolved, and the replies' claims match the bytes.
Hygiene: three Conventional subjects with [#2764]; author equals committer; each commit carries an attribution footer, which no rule in the tree forbids; git diff --check is clean; the PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description; every new stamp precedes its commit.
Findings: F13 Minor, F14 Nit; none blocks. (The audit already uses F13 to F15 for this review's round-2 F10 to F12; these are new.)
Checked, no finding: the scheme match moving url after borrowing its scheme; the loop test's per-URL messages; the description's eleven-test and not-rebuilt statements.
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-1006): the repository's pre-commit gate and lint roster exit 0 (162 s wall), and the audit-record validator for this PR reports status ok with 15 rows, 8 log entries and 0 failures. The torrust-tracker package's http_health_check test and binary targets exit 0: 11 passed, 0 failed, 0 ignored across 2 test binaries, one more than at the previous head, which is the new scheme test. F12's fix checked against the bytes at posting: parse_arguments now matches url.scheme() and returns the usage error for anything other than http or https. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9e463cb0c.
|
ACK bc723d6 — the scheme check and its test, the round-2 evidence and AC3 fixes, the fifteen-row audit record against the capture and the clean merge with develop were recomputed at this head with no blocking finding |
… evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 8d321bf |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 8d321bf1cab221d2e0425856c68813c1ec9c3423. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop 9e463cb0c writes a clean tree (exit 0), the shared issue spec takes develop's skill-link move, and every relative link in the PR's Markdown resolves in the merged tree.
Round 4 fast-forwards bc723d673 by two documentation commits, and each does what its message says. Round-3 findings at this head: F13 fixed (the evidence reruns the V1 and V3 real-tracker commands, plus an ftp:// case, on the build whose last production change is the scheme-check commit, named by subject; no file under src/ or tests/ changed after it; each record matches the code's messages, and the exits 0, 0, 1, 1, 2, 2, 2, 1 match the runs listed); F14 fixed (the R2 timing sentence names its rows by clause, consistent with the times stated in round 2). F1 to F12 stay as reviewed: this round touches no code or test.
Audit record: the validator's checks, run offline on the capture with the local commit range, pass (17 rows, 11 log entries, 0 failures); rows F16 and F17 match their source brackets and review, each reply sits on its own thread, all 17 threads are resolved, and the replies' claims match the bytes.
Hygiene: two Conventional subjects with [#2764]; author equals committer; each commit carries an attribution footer, which no rule in the tree forbids; git diff --check is clean; the PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description; every new stamp precedes its commit.
Findings: none.
Checked, no finding: the updated description's real-tracker line and audit count; the new progress-log entry against the evidence section it cites.
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-1009): the repository's pre-commit gate and lint roster exit 0 (173 s wall), and the audit-record validator for this PR reports status ok with 17 rows, 11 log entries and 0 failures. The two new commits change documentation only; the package tests ran at bc723d673 with the same code (11 passed, 0 failed). F13's fix checked against the bytes at posting: no commit after the scheme-check commit touches src/ or tests/, and the evidence (line 244) names that commit's build for the rerun, including an ftp:// case. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker): queued/pending; Test (Docker) (release): queued/pending; Docs Lint: completed/success; Docker E2E: completed/skipped; Unit (stable): queued/pending; Unit (nightly): queued/pending; Workspace Packaging: completed/success; Documented Clippy Allows: queued/pending; Layer Boundary Bans: queued/pending; Shipped Features: completed/success; Build on windows-latest (nightly): queued/pending; Build on ubuntu-latest (stable): queued/pending; Build on macos-latest (stable): queued/pending; Build on macos-latest (nightly): completed/success; Build on windows-latest (stable): in_progress/pending; Build on ubuntu-latest (nightly): queued/pending; Generate Coverage Report: queued/pending; Discover Package Coverage: completed/success". At posting, develop is 9e463cb0c.
|
ACK 8d321bf — the real-tracker recheck on the build of the last production change, the R2 timing sentence, the seventeen-row audit record against the capture and the clean merge with develop were recomputed at this head with no blocking finding |
|
ACK 8d321bf |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
5 open issues
Several evidence excerpts appear inconsistent with the currenthttp_health_checkbehavior… · New Several evidence excerpts appear inconsistent with the currenthttp_health_checkbehavior… · New Several evidence excerpts appear inconsistent with the currenthttp_health_checkbehavior… · New Several evidence excerpts appear inconsistent with the currenthttp_health_checkbehavior… · Newlistener.accept()errors are currently treated the same asWouldBlock(sleep and continue).… · New
3 resolved since last review
Review effort: Lite
… cannot accept a connection Only WouldBlock (and Interrupted) keep the accept loop going; any other error panics the server thread, and the server's Drop re-raises it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at b51e646e6190fbf5dd9912c3609fa4e8a3eefd35. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop 166cd8667 writes a clean tree (exit 0), the shared issue spec takes develop's skill-link move, and every relative link in the PR's Markdown resolves in the merged tree.
Round 5 fast-forwards 8d321bf1c by three commits, and each does what its message says. The test server's accept loop now sleeps only on WouldBlock, retries on Interrupted and panics on anything else; Drop joins the thread and re-raises its panic with resume_unwind unless the test is already panicking (a let chain, valid for edition 2024 and rust-version 1.88). The evidence labels G1, V1, V3 and V2 as runs on the first implementation and points to the round sections for the final binary. No file under src/ changed, so the evidence section "Round 3 of PR 2889" still measures the final binary.
Earlier findings: F1 to F14 of this review series stay fixed or settled; this round leaves their code and records intact.
Audit record: the validator's checks, run offline on the capture with the local commit range, pass (22 rows, 14 log entries, 0 failures). The five round-4 threads from the second review carry no severity bracket, so the rows' inferred Minor is not checked against one. Each reply sits on its own thread, all 22 threads are resolved, and the fixes match the concerns raised.
Hygiene: three Conventional subjects with [#2764]; author equals committer; each commit carries an attribution footer, which no rule in the tree forbids; git diff --check is clean; the PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description; every new stamp precedes its commit.
Findings: F18 and F19 Nit; none blocks.
Checked, no finding: thread::panicking() resolving to the module beside the thread binding; no double panic in Drop; the four server-starting tests counted in the failure-path run.
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-1018): the repository's pre-commit gate and lint roster exit 0 (161 s wall), and the audit-record validator for this PR reports status ok with 22 rows, 14 log entries and 0 failures. The torrust-tracker package's http_health_check test and binary targets exit 0: 11 passed, 0 failed, 0 ignored across 2 test binaries (18 s wall). The test-server change checked against the bytes at posting: the accept loop sleeps only on WouldBlock, retries on Interrupted and panics otherwise, and Drop joins the thread and calls resume_unwind unless the test is already panicking. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 166cd8667.
|
ACK b51e646 — the test server's accept-error handling and drop re-raise, the historical notes in the evidence, the twenty-two-row audit record against the capture and the clean merge with develop were recomputed at this head with no blocking finding |
… evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK b51e646 |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK dbf398f |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at dbf398f058d117139ffaf3d1a0ead4d4c5a5ec8b. Recomputed from the bytes at this head, against the merge base c8b1477ad; git merge-tree against develop 166cd8667 writes a clean tree (exit 0), the shared issue spec takes develop's skill-link move, and every relative link in the PR's Markdown resolves in the merged tree.
Round 6 fast-forwards b51e646e6 by two documentation commits, and each does what its message says. Round-5 findings at this head: F18 fixed (the round-4 section now says its run covered the panic arm only; the new section records the exit-code assertion that fired in that run and adds a run where the server panics after answering, every assertion passes and the test fails with only the server's panic printed, which is the Drop re-raise); F19 fixed (the note says the sections are in the order first written and names R1's re-run and the R2 rows). F1 to F17 stay as reviewed: no code or test changed.
The quoted locations match the file: tests/http_health_check.rs:51:35 is the panic! arm and :165:5 the assert_eq! in assert_exit_code.
Audit record: the validator's checks, run offline on the capture with the local commit range, pass (24 rows, 17 log entries, 0 failures); rows F23 and F24 match their source brackets and review, each reply sits on its own thread, and all 24 threads are resolved. The F22 row and the log now correct the round-4 reply that overstated the check, and the F23 reply says so on the thread.
Hygiene: two Conventional subjects with [#2764]; author equals committer; each commit carries an attribution footer, which no rule in the tree forbids; git diff --check is clean; the PR-branch commit-id check prints nothing; the closing-keyword scan matches only Closes #2764 in the description; every new stamp precedes its commit.
Findings: none.
Checked, no finding: run B's location :47:25 implies a second inserted line before the panic!, which the description does not quote; the claim rests on the output, not the line.
Checks
On the loop's compute node at this head, against the merge base c8b1477ad (receipt server-gates-kranich-1022): the repository's pre-commit gate and lint roster exit 0 (198 s wall), and the audit-record validator for this PR reports status ok with 24 rows, 17 log entries and 0 failures. The two new commits change documentation only; the package tests ran at b51e646e6 with the same code (11 passed, 0 failed). The evidence's quoted locations checked against the bytes at posting: tests/http_health_check.rs line 51 is the panic! arm of the accept loop and line 165 the assert_eq! in assert_exit_code. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker): queued/pending; Docker E2E: completed/skipped; Unit (nightly): queued/pending; Unit (stable): queued/pending; Documented Clippy Allows: queued/pending; Shipped Features: queued/pending; Layer Boundary Bans: queued/pending; Workspace Packaging: queued/pending; Test (Docker) (release): queued/pending; Build on macos-latest (stable): queued/pending; Build on windows-latest (nightly): queued/pending; Build on ubuntu-latest (nightly): queued/pending; Build on macos-latest (nightly): queued/pending; Build on windows-latest (stable): in_progress/pending; Build on ubuntu-latest (stable): in_progress/pending; Discover Package Coverage: completed/success; Generate Coverage Report: in_progress/pending; Docs Lint: queued/pending". At posting, develop is 166cd8667.
|
ACK dbf398f — the corrected accept-error record with its drop re-raise run, the ordering note, the twenty-four-row audit record against the capture and the clean merge with develop were recomputed at this head with no blocking finding |
|
ACK dbf398f |
fbaa66e docs(issues): [#2764] address PR 2896 review round 2 (josecelano-bot) 98b0964 docs(issues): [#2764] address PR 2896 review round 1 (josecelano-bot) 57d0d59 docs(issues): [#2764] close out the http_health_check issue (josecelano-bot) Pull request description: Related to #2764 (PR #2889 is merged and the issue is already closed). Part of EPIC #2758. Archives the spec to `docs/issues/closed/` and sets row 5 of the EPIC to DONE. The checkpoint "Reviewer validated acceptance criteria and updated checkboxes" stays open, because no reviewer edited the spec. No code or workflow changes. Validation: the pre-commit hook passed (it runs `linter all`); `gh issue view 2764` printed CLOSED before the move; `git grep` finds no live reference to the old spec path. Leftover for the EPIC: the ADR classification table still lists `http_health_check` as non-compliant. That change was out of scope for #2764. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: da2ce7: ACK fbaa66e — the retrospective's corrected test and mutation statements against the PR 2889 audit, the audit record against its template and the capture, and the clean merge with develop were recomputed at this head with no open finding josecelano: ACK fbaa66e Tree-SHA512: 133bcb8ded33dda735ce9bad38ad9d0fee8edab73f994fe53f284f99412eadefadc16c5151710c61f0eb17f8d19083c80bc02b743ef6678a96f2475cd73e2225


Summary
http_health_checknow follows the global CLI output contract as ano-stdout-resultprogram: stdout is empty, stderr carries one JSON object per line with akind(healthy,unhealthy,unreachable,usage_error), and the exit code is0on a 2xx answer,1on another status or a failed request, and2on a usage error (missing or extra argument, a non-UTF-8 argument, an argument that is not a URL, or a URL whose scheme is nothttporhttps). No record contains the probed URL, because it can carry credentials (the contract's redaction policy); request errors are formatted without it. Unhealthy stays a non-zero exit, so the containerHEALTHCHECKin theContainerfileis unchanged and still works. Theprint_*clippy allow is removed. No new dependency: the records are built withserde_json, which the crate already uses.Closes #2764. Child of EPIC #2758.
Files
src/bin/http_health_check.rs: the rewrite.tests/http_health_check.rs: eleven child-process tests against a local test server and a port held bound without listening: healthy, 503, unreachable, missing argument, extra argument, malformed URL, non-HTTP scheme, non-UTF-8 argument (Unix), and credential redaction for the healthy, unhealthy and unreachable outcomes. They run red against the old binary and green after the fix. The test finds the binary throughNEXTEST_BIN_EXE_http_health_checkfirst, because the image test stages run from a nextest archive built in another stage, where the path compiled intoCARGO_BIN_EXE_http_health_checkdoes not exist (the first image build failed on this, the second passed).tests/AGENTS.md: says why black-box tests of rootsrc/bintools live intests/.project-words.txt: addsuserinfo.docs/issues/open/2764-2758-http-health-check-no-stdout/: spec progress andmanual-verification-evidence.md.docs/pr-reviews/pr-2889-review/PR-REVIEW.md: audit of review rounds 1 to 5 (da2ce7 and Copilot, 24 findings, all fixed).Validation
linter allexits 0 (pre-commit hook on every commit).cargo test --test http_health_checkandcargo nextest run --test http_health_check: 11 passed. Mutation checks, one per clause (2xx exit 0, non-2xx exit 1, failed request exit 1, usage exit 2, JSON on stderr), each make tests fail.docker build --target release(defaultCARGO_BUILD_JOBS=4) after review round 1: the test stage ran 1888 tests, all passed. Not rebuilt for round 2, which only adds the scheme check to argument parsing.docker inspectreportedhealthywith ahealthyrecord, and a second container whose probe port has nothing listening wentunhealthywith anunreachablerecord.ftp://cases, and 1 once the tracker is stopped; stdout empty each time.Not covered by this PR: the classification table row of the ADR (it still says the tool is non-compliant), which is out of scope for this issue.
🤖 Generated with Claude Code