Commit Graph
3 Commits
Author SHA1 Message Date
Djeex 03ee3ee5d5 Fix flaky unit test on merge-triggered CI runs
CI / build-and-scan (pull_request) Successful in 1m41s
- entrypoint.sh: bound the target connectivity check with -w 2 (nc -z had
  no timeout at all, the only unbounded step in the startup path)
- tests/entrypoint.bats: widen wait_for_log's budget from 5s to 10s

Merge-triggered runs land on a colder runner (Docker cache evicted by other
repos' scheduled jobs since the PR was last tested) than PR-check runs, and
the first backgrounded entrypoint.sh in the suite was occasionally landing
just past the old 5s window — always passed on rerun once warm.
2026-08-26 15:55:39 +02:00
Djeex fff6e49350 Run as non-root by default via PUID/PGID
CI / build-and-scan (pull_request) Successful in 1m7s
2026-08-23 15:10:17 +02:00
DjeexandClaude Sonnet 5 f6b27fe51c Add bats test suite for entrypoint.sh
Covers env-var validation, socket path preparation, target connectivity
messaging, DEBUG_LEVEL to socat-flag mapping, and graceful shutdown vs.
crash detection — run against the real socat/nc binaries rather than
mocks, since UNIX-LISTEN binds without needing the TCP target reachable.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-08-22 23:50:32 +02:00