check-node-compose.sh's no-.env info line claims the backup check is skipped, but it still runs
Id: TD-PPagop-26082835 · Status: resolved · Filed: 2026-08-28 · Resolved: 2026-09-28 · Ref: Pullwright/agent-ops#1900
In scripts/check-node-compose.sh, when $stack_dir/.env does not exist the script prints info - no .env in <dir> — skipping its permission and backup checks, but the .env.bak*/*.env.old backup scan that follows is unconditional, so the very next line can be a FAIL - stale env backup beside the live file: … (reproduced: a stack directory with .env.bak-1 and no .env prints both lines back to back). The behaviour is the safe one — a stale token backup is worth flagging whether or not a live .env sits beside it — but the message contradicts the output that follows, and an operator reading the info line could reasonably believe backups were not examined. Suggested fix: keep the unconditional backup scan and correct the message to claim only the permission check is skipped (e.g. skipping its permission check), plus a test case pinning the no-.env-with-backup combination.
Noticed while the Approver was judging https://github.com/Poetic-Poems/agent-ops/pull/868.
Migrated to https://github.com/Poetic-Poems/agent-ops/issues/1023.