add a worktree report script to test-e2e #5

Open
opened 2026-08-27 23:12:26 +02:00 by kami · 1 comment
Owner

add scripts/orchestra_worktree_report.sh.

the script reports on the local Orchestra worktree layout. by default it prints a short human-readable summary. it also takes an optional --json flag for machine-readable output reporting the same checks.

keep it a plain bash script with no dependencies beyond coreutils, matching scripts/orchestra_e2e_healthcheck.sh.

Acceptance

  • --help prints usage and exits 0
  • running with no arguments prints a human-readable summary and exits 0
  • --json exits 0 and prints one valid json object
  • the output reports whether /tmp/test-e2e-worktrees exists
  • the output reports how many entries /tmp/test-e2e-worktrees contains
  • the output reports whether /tmp/test-e2e is a git repository
  • unknown arguments exit non-zero with a message on stderr
  • scripts/orchestra_e2e_healthcheck.sh is unchanged
add `scripts/orchestra_worktree_report.sh`. the script reports on the local Orchestra worktree layout. by default it prints a short human-readable summary. it also takes an optional `--json` flag for machine-readable output reporting the same checks. keep it a plain bash script with no dependencies beyond coreutils, matching `scripts/orchestra_e2e_healthcheck.sh`. ## Acceptance - `--help` prints usage and exits 0 - running with no arguments prints a human-readable summary and exits 0 - `--json` exits 0 and prints one valid json object - the output reports whether `/tmp/test-e2e-worktrees` exists - the output reports how many entries `/tmp/test-e2e-worktrees` contains - the output reports whether `/tmp/test-e2e` is a git repository - unknown arguments exit non-zero with a message on stderr - `scripts/orchestra_e2e_healthcheck.sh` is unchanged
Author
Owner

for --json, use snake_case keys. keep the default text output byte-for-byte unchanged.

for --json, use snake_case keys. keep the default text output byte-for-byte unchanged.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kami/test-e2e#5