PEP-301: шаг tools ставит tmux с повтором и падает явно, если не поставил
Прогон 293 упал без tmux: сбой apt-get update внутри a && b не роняет шаг под bash -e, и все тесты агентов падали со spawn tmux ENOENT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9fa993b86c
commit
b1946f041a
@ -34,7 +34,10 @@ jobs:
|
||||
node-version: "26"
|
||||
- name: tools
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq tmux >/dev/null
|
||||
# PEP-301: a failed `apt-get update` inside `a && b` does not stop a `bash -e` step — tmux was
|
||||
# silently missing and every agent test fell with `spawn tmux ENOENT`. Retry, then fail here.
|
||||
for i in 1 2 3; do apt-get update -qq && apt-get install -y -qq tmux >/dev/null && break; sleep 10; done
|
||||
command -v tmux >/dev/null || { echo "tmux is not installed — the test step cannot run agents" >&2; exit 1; }
|
||||
# Job-local prefix: the node toolcache is shared between jobs running at the same time
|
||||
# (PR + push of one commit), and two global installs into it collide (ENOTEMPTY/EEXIST).
|
||||
npm install -g --prefix "$RUNNER_TEMP/tools" pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user