Add ten named checks to the healthcheck, in five phases #22
Closed
kami
wants to merge 0 commits from
orchestra/06G4VF5HZW7Q4JBM3TTY7W1Y64 into master
pull from: orchestra/06G4VF5HZW7Q4JBM3TTY7W1Y64
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/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/06G4GBSQ2WRGD5HGYPYZZ4TYH0
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/06G4VF5HZW7Q4JBM3TTY7W1Y64"
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 ten named checks to the healthcheck, in five phases
scripts/orchestra_e2e_healthcheck.sh currently runs a single check. Grow it to ten named checks, each implemented as its own shell function, each reported by name. The ten checks, all read-only and all satisfiable inside this repository: 1. repo_root_readable, 2. scripts_dir_present, 3. healthcheck_executable_bit, 4. selftest_present, 5. test_healthcheck_present, 6. readme_present, 7. no_crlf_line_endings, 8. no_tabs_in_scripts, 9. shebang_is_bash, 10. usage_text_mentions_every_flag. Each check is a function named check_ that returns 0 for pass and 1 for fail, prints nothing on its own, and records its name and outcome in the existing results state. Plan this as FIVE phases: 1. Checks 1 to 3, with the dispatch loop that runs a list of check functions and records each outcome. 2. Checks 4 to 6. 3. Checks 7 to 8. 4. Checks 9 to 10. 5. Update the usage text in --help to list every check name, and extend scripts/test_healthcheck.sh with one assertion per check plus an assertion that all ten names appear in the output. ## Work one phase at a time This is a hard requirement. Implement phase N, request its verification, and only then begin phase N+1. Do not write the whole change first and verify the phases afterwards. ## Behaviour that must not change The existing success line, the --quiet, --json and --help flags, and the exit status all keep their current behaviour when every check passes. ## Verification policy for this project Only two commands may appear on a run: line, exactly: - ["bash", "-n", ""] - ["bash", "scripts/orchestra_e2e_healthcheck.sh"] Anything else is refused when you seal the plan. Give every phase at least one automated check from that list, and add a manual check where a human should confirm the printed text. ## Research first Establish at least three findings with distinct confidence: at least one fact, one inference, one assumption. ## Handoff behaviour Behave normally throughout this task. If Orchestra asks you to write a handoff report, write it and stop.
Acceptance
Verification
bash -n scripts/*.sh && bash scripts/orchestra_e2e_healthcheck.shexited 0fd13778dd8fd13778dd8: passBehavioural changes
Deviations from plan
Remaining risks
Review hotspots
Reviewer findings
scripts/orchestra_e2e_healthcheck.sh:33check_no_crlf_line_endings passes when a target file cannot be read, since it inverts grep and grep exits 2 on a read error.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.
Pull request closed