fix CI 2
CI / Unit tests (push) Successful in 5s
CI / Integration tests + coverage (push) Failing after 23s

This commit is contained in:
2026-09-19 05:59:01 -09:00
parent 343a759d7d
commit bd6b70a702
2 changed files with 9 additions and 4 deletions
+8 -4
View File
@@ -50,10 +50,14 @@ trap teardown EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
# Build vibe-app explicitly: `run --build integration-test` only builds the named service
# (not its dependencies), and integration-test is image-only, so compose hands bake an
# empty definition ("failed to find target default") and vibe-app never gets built or started.
"${compose[@]}" --ansi never --progress plain build vibe-app
# Build the app image with buildx directly instead of through compose: compose delegates
# builds to bake, which fails on the CI runner with "failed to find target default". The
# image name matches `image:` in docker-compose.yml, so `run` below finds it and never
# builds. DEPS_ALIASES must match build.args in docker-compose.coverage.yml.
docker buildx build --load \
--build-arg "DEPS_ALIASES=run${COVERAGE:+:cov}" \
-t vibe-app-integration \
-f "$root/Dockerfile" "$root"
# `run` returns the test container's own exit code; `up --abort-on-container-exit` can leak
# the app's SIGTERM exit (143) during teardown instead.