Commit e9a4871
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 da8ed4d commit e9a4871
2 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2062 | 2069 | | |
2063 | 2070 | | |
2064 | 2071 | | |
| |||
2135 | 2142 | | |
2136 | 2143 | | |
2137 | 2144 | | |
2138 | | - | |
2139 | | - | |
2140 | | - | |
| 2145 | + | |
2141 | 2146 | | |
2142 | 2147 | | |
2143 | 2148 | | |
| |||
| 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