Skip to content

ci(gocd): Deploy s4s2 through ArgoCD only - #845

Merged
markstory merged 1 commit into
mainfrom
feat/gocd-argocd-only-deploy-s4s2
Nov 5, 2026
Merged

markstory merged 1 commit into
mainfrom
feat/gocd-argocd-only-deploy-s4s2

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Does for taskbroker what getsentry/conduit#100 did for conduit, starting with s4s2 only. The s4s2 deploy-primary job gets ARGOCD_ONLY: 'true' and ARGOCD_SERVICE: 'taskbroker', so k8s-deploy commits the image to materialized-ops set-image with wait=true and blocks until ArgoCD reports taskbroker Synced and Healthy, instead of patching Kubernetes. Rollbacks rerun deploy-primary, so s4s2 rollbacks take the same path.

The rendered pipelines differ only in those two env vars on deploy-taskbroker-s4s2 / deploy-primary (checked by rendering taskbroker.jsonnet with gocd-jsonnet v3.0.10 before and after).

Why only s4s2. Since getsentry/materialized-ops#684, a waiting set-image run fails when its label selector matches nothing in Git. deploy.sh always runs k8s-deploy for both statefulset and deployment, and recent shadow runs show that most regions' clusters still run brokers that materialized-ops doesn't have. A set_image.py --dry-run --wait against current master for each region and target:

Region Git has Problem with ARGOCD_ONLY
s4s2 statefulsets and deployments none found
control statefulsets only the deployment call fails
geico, goldmansachs deployments only the statefulset call fails
ly deployments only the statefulset call fails, and 3 statefulsets that run in the cluster aren't in Git (task-cutover-broker, task-symbolication-js-broker, task-symbolication-jvm-broker)
de deployments only, and no env=canary workload canary and statefulset calls fail, and 33 statefulsets that run in the cluster aren't in Git (from the 2026-11-03 shadow run)
us statefulsets only the deployment call fails, 2 statefulsets aren't in Git (task-example-testing-broker, task-example-testing-alloydb-broker), and wait_healthy.py's fixed 600s timeout is far below the 90 minutes deploy.sh allows us

To opt a region in later: get its brokers into materialized-ops (or delete the stale ones), make deploy.sh deploy only the workload types the region has, and for us, make the ArgoCD wait use the caller's timeout. Then add the region to argocd_only_regions.

Check before merging: the ArgoCD taskbroker app in s4s2 has automated sync. I couldn't confirm this from here, and there's been no wait=true taskbroker run yet. If it's off, the first deploy fails loudly with wait_healthy.py's "no automated sync policy" error rather than going green.

Note: s4s2's migration Jobs in materialized-ops are ArgoCD Sync hooks on the canary image key. Once ArgoCD applies the commit, they run migrations again after the GoCD run-migrations stage has already run them.

via @joshuarli.

--

View Session [Sentry]

Set ARGOCD_ONLY and ARGOCD_SERVICE on the s4s2 deploy-primary job, so
k8s-deploy commits the image to materialized-ops and waits for ArgoCD
instead of patching Kubernetes. Other regions keep patching until every
broker GoCD deploys there is in materialized-ops.

Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 5, 2026 00:23
@sentry-junior
sentry-junior Bot requested a review from markstory November 5, 2026 00:23
@markstory
markstory merged commit 9f47a33 into main Nov 5, 2026
27 checks passed
@markstory
markstory deleted the feat/gocd-argocd-only-deploy-s4s2 branch November 5, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants