исправить: выполнять smoke внутри Compose сети
CI / Rust Checks (pull_request) Successful in 5m49s
CI / UI Checks (pull_request) Successful in 5s
CI / Community Image Smoke (pull_request) Successful in 1m11s
CI / Frontend E2E (pull_request) Successful in 3m48s
CI / Deploy (pull_request) Has been skipped
CI / Rust Checks (push) Successful in 5m50s
CI / UI Checks (push) Successful in 5s
CI / Community Image Smoke (push) Successful in 1m5s
CI / Frontend E2E (push) Successful in 3m57s
CI / Deploy (push) Failing after 3s

This commit is contained in:
2026-07-31 04:01:13 +03:00
parent 242618e807
commit ec2453c00f
+8 -14
View File
@@ -237,25 +237,19 @@ jobs:
EOF
docker compose -f deploy/community/docker-compose.images.yml \
--env-file .tmp/community-smoke.env --profile local-db up -d --wait
ui_address="$(docker compose -f deploy/community/docker-compose.images.yml \
--env-file .tmp/community-smoke.env port ui 3000)"
ui_url="http://${ui_address}"
printf '%s\n' "$ui_url" > .tmp/community-smoke.url
for attempt in $(seq 1 30); do
if curl --fail --silent --show-error --output /dev/null "$ui_url/"; then
exit 0
fi
echo "Community UI is not reachable through the published port ($attempt/30)"
sleep 1
done
echo "Community UI did not become reachable at $ui_url" >&2
exit 1
- name: Run authenticated Community image smoke
env:
CRANK_STAGING_ADMIN_EMAIL: owner@crank.test
CRANK_STAGING_ADMIN_PASSWORD: ci-admin-password
run: scripts/authenticated-product-smoke.sh "$(cat .tmp/community-smoke.url)"
run: |
set -eu
project_name="$(sed -n 's/^COMPOSE_PROJECT_NAME=//p' .tmp/community-smoke.env)"
docker run --rm --network "${project_name}_default" \
-e CRANK_STAGING_ADMIN_EMAIL \
-e CRANK_STAGING_ADMIN_PASSWORD \
-i python:3.13-alpine \
python - http://ui:3000 < scripts/authenticated-product-smoke.py
- name: Show Community image logs
if: failure()