fix(ci): build MinIO from pinned release assets

Use official checksummed release binaries in a CI-only Compose image when
upstream MinIO registries deny pulls. Build it separately in each isolated
relay integration job; preserve the existing service and test behavior.

Keep deployment defaults unchanged and cover image-source selection and
per-job setup ordering in the existing CI contracts.

Co-authored-by: Carl <32a2e2c9d428ee08902cab75d956da2c1d235a22d4766b0dd4138bf6e2e5db1d@buzz.block.builderlab.xyz>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
Wes
2026-09-24 07:57:24 -06:00
parent 4544ba1713
commit 6a203eb837
6 changed files with 55 additions and 0 deletions

View File

@@ -113,6 +113,8 @@ const scenarios = [
["relay", ["crates/buzz-relay/src/main.rs"], ["rust"]],
["migration", ["migrations/123.sql"], ["rust"]],
["shared workflow", [".github/workflows/ci.yml"], ["rust", "mobile"]],
["CI MinIO image", [".github/ci/minio/Dockerfile"], ["rust"]],
["CI Compose override", ["docker-compose.ci.yml"], ["rust"]],
[
"mixed mobile and relay",
["mobile/lib/main.dart", "crates/buzz-core/src/lib.rs"],

View File

@@ -83,4 +83,17 @@ if grep -Eq '^ desktop-build-macos:|desktop_macos_result:' "$desktop_workflow";
fail "Desktop Domain must not own the isolated macOS required check"
fi
# Each job has an isolated Docker daemon: every Compose consumer must build
# the local MinIO image before starting services, including the script caller.
for job in desktop-e2e-integration-shard backend-integration relay-e2e; do
body=$(extract_job "$job" "$relay_workflow")
[[ "$body" == *'COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml'* ]] ||
fail "$job must select the CI Compose override"
[[ "$body" == *'docker compose build minio'* ]] ||
fail "$job must build its own CI MinIO image"
before_build=${body%%docker compose build minio*}
[[ "$before_build" != *'docker compose up'* && "$before_build" != *'./scripts/start-relay-for-tests.sh'* ]] ||
fail "$job must build MinIO before starting services"
done
echo "CI required-context isolation contract passed"