diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 20b98310..a9026e04 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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