Add a --strict mode to the healthcheck #14
Closed
kami
wants to merge 0 commits from
orchestra/06G4GBSQ2WRGD5HGYPYZZ4TYH0 into master
pull from: orchestra/06G4GBSQ2WRGD5HGYPYZZ4TYH0
merge into: kami:master
kami:master
kami:orchestra/06G54DZYGP30QXM4SXDB1NF1E0
kami:orchestra/scratch/orchestra-06g54dzygp30qxm4sxdb1nf1e0-6f2befa5
kami:orchestra/06G4XAFH1MBPC35VSJN7V3NS14
kami:orchestra/scratch/orchestra-06g4xafh1mbpc35vsjn7v3ns14-5ec6e9dc
kami:orchestra/06G4WW6TND26M16CZA6WE5T458
kami:orchestra/scratch/orchestra-06g4ww6tnd26m16cza6we5t458-be13b045
kami:orchestra/06G4WJ9T4F35NZC4Z8QQXM9Z6G
kami:orchestra/scratch/orchestra-06g4wj9t4f35nzc4z8qqxm9z6g-8b4b8063
kami:orchestra/06G4WDJ06G7FK00QF73Z9DDBT4
kami:orchestra/scratch/orchestra-06g4wdj06g7fk00qf73z9ddbt4-920248b2
kami:orchestra/06G4W63545T3RV8SSKGKN11B3G
kami:orchestra/scratch/orchestra-06g4w63545t3rv8sskgkn11b3g-3ff9fe45
kami:orchestra/06G4W2TMZ9MW9SEBM5MGTM5288
kami:orchestra/scratch/orchestra-06g4w2tmz9mw9sebm5mgtm5288-89c1c97d
kami:integrate
kami:orchestra/06G4VF5HZW7Q4JBM3TTY7W1Y64
kami:orchestra/scratch/orchestra-06g4vf5hzw7q4jbm3tty7w1y64-4d839c05
kami:orchestra/06G4V20T528ZTER7KZBVGNAYXC
kami:orchestra/scratch/orchestra-06g4v20t528zter7kzbvgnayxc-c5970e72
kami:orchestra/06G4SWEVP71FYYKAV5FV0ZK5ZG
kami:orchestra/scratch/orchestra-06g4swevp71fyykav5fv0zk5zg-6a610f8e
kami:orchestra/06G4M8WHGQ4P3GQMPEEH0RJRHM
kami:orchestra/scratch/orchestra-06g4m8whgq4p3gqmpeeh0rjrhm-70ced771
kami:orchestra/06G4M6HF1Z3EREX1X3NEKSHP24
kami:orchestra/scratch/orchestra-06g4m6hf1z3erex1x3nekshp24-c19bf648
kami:orchestra/scratch/orchestra-06g4kvshak9b8m9k8henaf23cg-0426a3a5
kami:orchestra/scratch/orchestra-06g4kenhxy12m5bnc5txaf3mxr-b1cc22b0
kami:orchestra/06G4JX6MSQEP7N0D5JWW9EP5X4
kami:orchestra/scratch/orchestra-06g4jx6msqep7n0d5jww9ep5x4-d6e6951e
kami:orchestra/06G4GWWJ8SWFREF06HDYEBAG0C
kami:orchestra/scratch/orchestra-06g4gwwj8swfref06hdyebag0c-940ab9dd
kami:orchestra/scratch/orchestra-06g4gbsq2wrgd5hgypyzz4tyh0-ec8111ad
kami:orchestra/scratch/orchestra-06g4fza825xmtcq8me8nn82ym8-02959b5e
kami:orchestra/06G4FT0MB733H2ZCZ237WFHFD8
kami:orchestra/scratch/orchestra-06g4ft0mb733h2zcz237wfhfd8-b318f8b5
kami:orchestra/06G4E6F69AKP2PA00S28D7ASBC
kami:orchestra/scratch/orchestra-06g4e6f69akp2pa00s28d7asbc-abb7ef54
kami:orchestra/scratch/orchestra-06g4e83e4krxm8ds90m2648mgm-cbabfb1f
kami:orchestra/scratch/orchestra-06g4e4tybr6p66bxx82f1nqnpc-ada892b5
kami:orchestra/scratch/orchestra-06g4a4f0tfxkzhje48n05xn1hg-73a2e4fd
kami:orchestra/scratch/orchestra-06g474fxxfw7v54rgf70zs3srg-59bf1ee9
kami:orchestra/scratch/oc-06fty8za45cczzhq7h44smqg14
kami:orchestra/scratch/oc-06ftgx57kbfbyh03k8q7tahsnc
kami:orchestra/scratch/oc-06ftgv7rjxhzcfnmm1mg5btb1m
kami:orchestra/scratch/oc-06ftgkjadcd2hwjn2zwjen90q4
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "orchestra/06G4GBSQ2WRGD5HGYPYZZ4TYH0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add a --strict mode to the healthcheck
Three phases, in this order. ## Phase 1 —
--stricton the healthcheckscripts/orchestra_e2e_healthcheck.sh --strictmust reject an unrecognised flag: printunknown flag: <flag>on stderr and exit 2. Without--strictthe current silent-ignore behaviour is unchanged, and--helpstill wins from any position. ## Phase 2 — cover--strictin the existing self-test Extendscripts/orchestra_e2e_selftest.sh, which already asserts the plain and--jsonruns. Add assertions that--strict --nonsenseexits 2 and that--strictalone exits 0. Keep its existingfail()helper and its existing assertions. ## Phase 3 — keep the pinned usage text honestscripts/test_healthcheck.shpins the healthcheck's exact--helpoutput in a hardcodedUSAGEvariable. Phase 1 changes nothing about--help, so this phase only confirms the pin still holds. Verify this phase by running the pinned test itself: - run: ["bash", "scripts/test_healthcheck.sh"] ## Constraints The project's verification policy allows exactly two command shapes: ["bash", "-n", ""] ["bash", "scripts/orchestra_e2e_healthcheck.sh"] ## Research first Establish at least three findings with distinct confidence: at least onefact, oneinference, oneassumption. Cite at least two in References.Acceptance
Verification
bash -n scripts/*.sh && bash scripts/orchestra_e2e_healthcheck.shexited 0ec0502f829ec0502f829: passBehavioural changes
Deviations from plan
Remaining risks
Review hotspots
Reviewer findings
scripts/orchestra_e2e_healthcheck.sh:22Under --strict an empty-string argument is not rejected.The sections above are derived from Orchestra state. The reported
changes, deviations, risks, and hotspots are the implementing agent's
own account and are not verified.
Change of direction before this merges. Two things, both deliberate:
The goal is unchanged: a strict mode that rejects unknown flags. I know this contradicts the route the accepted plan took.
Pull request closed