Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): run image timeout tests in parallel (#126966)

posthog[bot]5f388d9bebdb
diff --git a/.github/scripts/ordered-image-release.test.sh b/.github/scripts/ordered-image-release.test.sh
index b71960c081ce..06daa58c464d 100644
--- a/.github/scripts/ordered-image-release.test.sh
+++ b/.github/scripts/ordered-image-release.test.sh
@@ -261,9 +261,13 @@ has_gnu_timeout() {
check_standalone_timeout() {
local client="$1" started="$SECONDS" elapsed pid
+ local scratch="$scratch/$client"
+ mkdir "$scratch"
+ mkfifo "$scratch/hung-pipe"
+ export GITHUB_OUTPUT="$scratch/output"
: > "$GITHUB_OUTPUT"
: > "$scratch/standalone-processes"
- PATH="$scratch/standalone:$system_path" REGCTL="$scratch/standalone/regctl" \
+ PATH="${scratch%/*}/standalone:$system_path" REGCTL="${scratch%/*}/standalone/regctl" \
COPY_TIMEOUT_SECONDS=1 READBACK_TIMEOUT_SECONDS=1 HUNG_CLIENT="$client" \
HUNG_PID="$scratch/hung-pid" HUNG_PIPE="$scratch/hung-pipe" \
COMPLETION_MARKER="$scratch/standalone-completed" PROCESS_IDENTITIES="$scratch/standalone-processes" \
@@ -289,7 +293,6 @@ check_standalone_timeout() {
if PATH="$system_path" has_gnu_timeout; then
mkdir "$scratch/standalone"
- mkfifo "$scratch/hung-pipe"
cat > "$scratch/standalone/client" <<'CLIENT'
#!/usr/bin/env bash
case "$(ps -p "$PPID" -o comm=)" in *timeout) ;; *) exit 1 ;; esac
@@ -306,8 +309,14 @@ CLIENT
chmod +x "$scratch/standalone/client"
ln -s client "$scratch/standalone/regctl"
ln -s client "$scratch/standalone/aws"
- check_standalone_timeout regctl
- check_standalone_timeout aws
+ check_standalone_timeout regctl &
+ regctl_test_pid=$!
+ check_standalone_timeout aws &
+ aws_test_pid=$!
+ status=0
+ wait "$regctl_test_pid" || status=1
+ wait "$aws_test_pid" || status=1
+ test "$status" = 0
else
echo 'SKIP standalone helper timeouts: GNU coreutils timeout is unavailable'
fi