ci: Parallelize Cloud Run service deploys#211
Open
rgibert wants to merge 2 commits into
Open
Conversation
Split the monolithic deploy job into matrix-based jobs so the three service deploys per environment (main, slack-bot, async) run in parallel after the db migration completes. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/QYu0ZiqLLWGvEUsCJ_rHFWCFQZTCcShDxXiE6mbSqKE
Gate all migration matrix steps on the environment condition (not just the migration step) so a transient auth failure in the unused environment's matrix entry cannot block the active environment's deploys. Move env var interpolation out of strategy.matrix (where the env context is unavailable) and into step-level with: fields. Use a multi_container boolean in the matrix with two conditional deploy steps instead. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/I6h0CYcnQ3AyOmV5ci-tHM7daxTdzSNPWlizysXIo0E
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split the monolithic deploy job into matrix-based jobs so the three service deploys per environment (main, slack-bot, async) run in parallel after the db migration completes.
The deploy graph is now:
DB migrations use a single matrix job with a step-level
ifto gate which environment actually runs. Service deploys use per-environment jobs with their own matrix of three independent Cloud Run services.fail-fast: falseso a single service failure doesn't cancel the other two.Single-container services now use
flags: --image "..."instead of theimage:parameter so all matrix entries share the same deploy step shape.Agent transcript: https://claudescope.sentry.dev/share/zKxqyxJ4CMBvsoD_mOpXN4H9oqdO-xobMaObw0GNcPc