Commit a0e78ee
committed
fix(workflows): address Copilot review feedback on continue_on_error
- Reword README "Error Handling" intro in terms of `StepStatus.FAILED`
halting by default, with non-zero shell/command exit as one common
cause. Avoids implying only exit codes can halt a run (gate aborts
and validation failures also do, just via different mechanisms).
- Tighten `test_validation_accepts_bool_continue_on_error` to assert
`errors == []` instead of "no error mentions continue_on_error", so
unrelated validation regressions on the same minimal YAML can no
longer slip past this test.
- In `test_gate_abort_still_halts_with_continue_on_error`, swap
`sys.stdin` itself for a stub `_TTYStdin` instead of patching
`sys.stdin.isatty`. Method-on-instance assignment is unreliable on
real `io.TextIOWrapper` objects (e.g. under pytest with capture
disabled), so replacing the whole stdin object is more robust
across runners.
All 2967 tests still pass.1 parent 3708adf commit a0e78ee
2 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | | - | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2326 | 2333 | | |
2327 | 2334 | | |
2328 | 2335 | | |
| |||
2399 | 2406 | | |
2400 | 2407 | | |
2401 | 2408 | | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
| 2409 | + | |
2405 | 2410 | | |
2406 | 2411 | | |
2407 | 2412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
0 commit comments