orchestra: TASK.md
This commit is contained in:
@@ -1,25 +1,43 @@
|
||||
# Task 06G4M6HF1Z3EREX1X3NEKSHP24
|
||||
# Task 06G4WJ9T4F35NZC4Z8QQXM9Z6G
|
||||
|
||||
Name the healthcheck success message once
|
||||
Add a --count flag that prints how many checks ran
|
||||
|
||||
- Project: test-e2e
|
||||
- Source: burnin/run14-a
|
||||
- Source: gitea:test-e2e/29
|
||||
- Priority: 0
|
||||
|
||||
## Instructions
|
||||
|
||||
scripts/orchestra_e2e_healthcheck.sh spells its success message inline. Give it a single named constant beside the existing VERSION constant and use that constant everywhere the message is printed.
|
||||
Give scripts/orchestra_e2e_healthcheck.sh a `--count` flag that prints `checks: <n>` before the success line, where n is the number of checks that ran.
|
||||
|
||||
Behaviour must not change. The plain run, --quiet and --help keep their current output and exit statuses, and scripts/test_healthcheck.sh keeps passing.
|
||||
Plan this as FOUR phases:
|
||||
|
||||
1. A counter incremented by the existing dispatch loop, with no output change.
|
||||
2. The `--count` flag parsed and stored, still with no output change.
|
||||
3. `--count` printing `checks: <n>` before the success line, and composing with --quiet and --json.
|
||||
4. The usage text in `--help`, and assertions in scripts/test_healthcheck.sh.
|
||||
|
||||
## Work one phase at a time
|
||||
|
||||
Implement phase N, request its verification, and only then begin phase N+1. Take the phases strictly in order.
|
||||
|
||||
## Verification policy for this project
|
||||
|
||||
Only two commands may appear on a run: line, exactly:
|
||||
|
||||
- ["bash", "-n", "<path>"]
|
||||
- ["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 at least one manual check.
|
||||
|
||||
## Research first
|
||||
|
||||
Establish at least three findings with distinct confidence: at least one `fact`, one `inference`, one `assumption`.
|
||||
Establish at least three findings with distinct confidence: at least one fact, one inference, one assumption.
|
||||
|
||||
|
||||
## Quality gate
|
||||
|
||||
bash -n scripts/*.sh && bash scripts/orchestra_e2e_healthcheck.sh
|
||||
Acceptance:
|
||||
- `--count` prints the number of checks that ran.
|
||||
- `--quiet` suppresses it, `--json` carries it as a field.
|
||||
- Every other flag is unchanged.
|
||||
|
||||
## Completion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user