Repository navigation
ci(gocd): Deploy s4s2 through ArgoCD only - #845
Merged
Merged
Conversation
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>
markstory
approved these changes
Nov 5, 2026
This was referenced Nov 6, 2026
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.
Does for taskbroker what getsentry/conduit#100 did for conduit, starting with s4s2 only. The s4s2
deploy-primaryjob getsARGOCD_ONLY: 'true'andARGOCD_SERVICE: 'taskbroker', sok8s-deploycommits the image to materialized-opsset-imagewithwait=trueand blocks until ArgoCD reportstaskbrokerSynced and Healthy, instead of patching Kubernetes. Rollbacks rerundeploy-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 renderingtaskbroker.jsonnetwith gocd-jsonnet v3.0.10 before and after).Why only s4s2. Since getsentry/materialized-ops#684, a waiting
set-imagerun fails when its label selector matches nothing in Git.deploy.shalways runsk8s-deployfor bothstatefulsetanddeployment, and recent shadow runs show that most regions' clusters still run brokers that materialized-ops doesn't have. Aset_image.py --dry-run --waitagainst current master for each region and target:deploymentcall failsstatefulsetcall failsstatefulsetcall fails, and 3 statefulsets that run in the cluster aren't in Git (task-cutover-broker,task-symbolication-js-broker,task-symbolication-jvm-broker)env=canaryworkloadstatefulsetcalls fail, and 33 statefulsets that run in the cluster aren't in Git (from the 2026-11-03 shadow run)deploymentcall fails, 2 statefulsets aren't in Git (task-example-testing-broker,task-example-testing-alloydb-broker), andwait_healthy.py's fixed 600s timeout is far below the 90 minutesdeploy.shallows usTo opt a region in later: get its brokers into materialized-ops (or delete the stale ones), make
deploy.shdeploy only the workload types the region has, and for us, make the ArgoCD wait use the caller's timeout. Then add the region toargocd_only_regions.Check before merging: the ArgoCD
taskbrokerapp in s4s2 has automated sync. I couldn't confirm this from here, and there's been nowait=truetaskbroker run yet. If it's off, the first deploy fails loudly withwait_healthy.py's "no automated sync policy" error rather than going green.Note: s4s2's migration Jobs in materialized-ops are ArgoCD
Synchooks on the canary image key. Once ArgoCD applies the commit, they run migrations again after the GoCDrun-migrationsstage has already run them.via @joshuarli.
--
View Session [Sentry]