From ec0502f8292617499b346170fd6ce119af44db55 Mon Sep 17 00:00:00 2001 From: kami Date: Fri, 28 Aug 2026 15:54:11 +0400 Subject: [PATCH] Restore the byte-pinned USAGE test_healthcheck.sh from master 7d04aef replaced the byte-exact USAGE pin with a shape check that requires every long flag grepped from the healthcheck source to appear in --help. --json was already undocumented before this task, so that check was red on arrival and it also dropped the 'unknown flag ignored' assertion on --bogus, the only pin on the no---strict silent-ignore path. The accepted plan's phase 3 is 'no edit': --help is untouched by --strict, so master's version passes as-is. Co-Authored-By: Claude Opus 5 --- scripts/test_healthcheck.sh | 46 ++++++++----------------------------- 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/scripts/test_healthcheck.sh b/scripts/test_healthcheck.sh index 151471b..d14a80e 100755 --- a/scripts/test_healthcheck.sh +++ b/scripts/test_healthcheck.sh @@ -1,54 +1,28 @@ #!/usr/bin/env bash # Self-check for orchestra_e2e_healthcheck.sh. -# -# The pinned USAGE string is gone. Pinning the help text byte for byte meant -# every flag added to the healthcheck turned this file red for a reason that -# had nothing to do with the flag. The usage assertions now check shape: --help -# must print a Usage: line, must document every long flag the script actually -# parses, and must exit 0 from any argument position. HC="$(dirname "$0")/orchestra_e2e_healthcheck.sh" OK='OK - all healthchecks passed' +USAGE="$(printf 'Usage: orchestra_e2e_healthcheck.sh [--quiet]\n\nHealthcheck script for Orchestra E2E tests.\nExits 0 with a success message if all checks pass.\n --quiet Suppress the success message; still exits 0.')" fails=0 -fail() { - printf 'FAIL: %s\n' "$1" - fails=$((fails + 1)) -} - -exact() { # exact