Commit feec03c
committed
ci: replace tee pipe with direct redirection (Windows-runner hang fix)
Symptom: the previous CI workflow used ``pipefail`` + ``tee pytest.log``
to capture pytest output for later PR-comment surfacing. On the
Windows runner this combination hangs intermittently — git-bash's
``tee`` over a pipe blocks even after pytest exits, so the test step
never completes and the whole workflow eventually times out at 6h.
Fix: drop the pipe entirely. Pytest output is redirected straight to
``pytest.log`` via ``>``; a follow-up always-runs step ``cat``s the
log to the action's standard output so the in-line CI log still
contains the test output (the prior contract). The on-failure PR
comment step keeps its body source (tail -80 of pytest.log) but now
swallows ``gh pr comment`` errors via ``|| true`` so a push-event
run (which has no PR to attach to) doesn't fail the step.1 parent 12a03de commit feec03c
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
0 commit comments