Commit ad1ee65
chore: "no fail fast" test mode (#367)
* feat(test): add `PDU_NO_FAIL_FAST` mode to `test.sh`
Add a no-fail-fast mode activated by `PDU_NO_FAIL_FAST=true` that
continues running all checks instead of stopping at the first failure,
then reports a summary at the end. This helps AI environments that may
fail on some checks but need to see which ones pass.
Update AI instruction templates to document the new flag.
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* fix(test): move no-fail-fast logic into `run_if` and use single quotes
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* fix(test): add comment and error message in no-fail-fast mode
Add a comment explaining why a temporary file is used instead of a
variable for the failure marker, and log the failed command with its
exit code when no-fail-fast mode catches a failure.
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* docs(ai): remove conditional preamble from no-fail-fast instruction
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* docs(ai): remove conditional preamble from no-fail-fast instruction in template
Update the source template and regenerate all AI instruction files.
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* fix(test): address review feedback on test.sh
- Use mktemp -d with a marker file inside to avoid path reuse
- Quote $failure_marker in the final check for consistency
- Use $* instead of $@ in error message for unambiguous logging
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* fix(test): use EXIT trap to clean up temporary directory
Replace explicit rm -rf calls with a trap to ensure cleanup happens
even when errexit terminates the script early in fail-fast mode.
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
* fix(test): improve error logging for failed commands in no-fail-fast mode
Use `printf '%q'` with `"$@"` to preserve argument quoting and capture
exit status into a variable for reliability.
https://claude.ai/code/session_01VHRbHsz8VJFdNioSj6dyxe
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 800e537 commit ad1ee65
5 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
4 | 20 | | |
5 | 21 | | |
6 | 22 | | |
| |||
16 | 32 | | |
17 | 33 | | |
18 | 34 | | |
19 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
20 | 48 | | |
21 | 49 | | |
22 | 50 | | |
| |||
39 | 67 | | |
40 | 68 | | |
41 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments