fix: isolate candidate release slot
CI / test (push) Failing after 29s

This commit is contained in:
m
2026-08-30 13:51:32 +03:00
parent 2ee5da8114
commit d120cc0958
9 changed files with 316 additions and 109 deletions
@@ -4,10 +4,16 @@ set -euo pipefail
root="$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
canary="$root/deploy/run-production-canary.sh"
supervisor="$root/deploy/update-supervisor.sh"
candidate_compose="$root/deploy/docker-compose.candidate-slot.yml"
stable_compose="$root/deploy/docker-compose.prod.yml"
stable_updater="$root/deploy/production-stable-updater.sh"
grep -Fq 'up -d --no-build --no-deps research-runtime-candidate core-runtime-candidate' "$canary"
grep -Fq 'up -d --no-build --no-deps cognitive-worker-candidate' "$canary"
grep -Fq 'up -d --no-build --no-deps creator-web-candidate' "$canary"
grep -Fq 'CANDIDATE_PROJECT="${CANDIDATE_PROJECT:-assistant-slot-$SLOT}"' "$canary"
grep -Fq '[[ "$CANDIDATE_PROJECT" != "$STABLE_PROJECT" ]]' "$canary"
grep -Fq 'docker compose -p "$CANDIDATE_PROJECT"' "$canary"
grep -Fq 'up -d --no-build --no-deps research-runtime core-runtime' "$canary"
grep -Fq 'up -d --no-build --no-deps cognitive-worker' "$canary"
grep -Fq 'up -d --no-build --no-deps creator-web' "$canary"
grep -Fq 'compose up -d --no-build --no-deps supervisor' "$supervisor"
grep -Fq 'stable_ids_before=$(stable_ids)' "$canary"
grep -Fq 'assert_stable_ids_unchanged' "$canary"
@@ -16,4 +22,9 @@ grep -Fq 'after=$(stable_ids)' "$supervisor"
grep -Fq 'stable container IDs changed' "$supervisor"
grep -Fq 'HEALTH_ATTEMPTS="${HEALTH_ATTEMPTS:-360}"' "$canary"
grep -Fq 'seq 1 "$HEALTH_ATTEMPTS"' "$canary"
grep -Fq 'name: assistant_default' "$candidate_compose"
grep -Fq 'external: true' "$candidate_compose"
! grep -Fq 'candidate:' "$stable_compose"
! grep -Fq 'run-production-canary.sh' "$stable_updater"
grep -Fq 'compose up -d --no-build "${stable_services[@]}"' "$stable_updater"
echo 'stable release-set guard: PASS'