Extract shared is_infra_step() in lib/ci-helpers.sh capturing the union of
infra-detection heuristics from both P2e and classify_pipeline_failure():
- Clone/git step exit 128 (connection failure)
- Any step exit 137 (OOM/signal 9)
- Log-pattern matching (timeouts, connection failures)
Update classify_pipeline_failure() to use is_infra_step() with log fetching
and "any infra step" aggregation (matching P2e semantics). Simplify P2e to
delegate to classify_pipeline_failure(). Update P2f caller for new output
format ("infra <reason>").
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| hooks | ||
| agent-session.sh | ||
| ci-debug.sh | ||
| ci-helpers.sh | ||
| env.sh | ||
| file-action-issue.sh | ||
| formula-session.sh | ||
| load-project.sh | ||
| matrix_listener.service | ||
| matrix_listener.sh | ||
| parse-deps.sh | ||