mirror of
https://github.com/block/buzz.git
synced 2026-11-25 18:52:52 +00:00
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:
@@ -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"],
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user