Repository navigation
UNT162-15: promoção para produção atrás de aprovação (digests do staging, rollback automático, docs/deploy-gke.md) - #22
Merged
devin-ai-integration[bot] merged 3 commits intoNov 5, 2026
Conversation
…gests do staging, sem rebuild), rollback automático e docs/deploy-gke.md (s4.3) Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
… imutáveis), falha se servem outro Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
…es exatos do manifesto Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
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.
Resumo
Passo s4.3: depois de um deploy verde em staging, a produção é promovida atrás do environment
production(required reviewers), com os mesmos digests que passaram em staging (sem rebuild),values-prod.yaml, smoke + e2e contra prod ehelm rollbackautomático em qualquer falha.PROD_GCP_WORKLOAD_IDENTITY_PROVIDER/PROD_GCP_CI_SERVICE_ACCOUNT/PROD_GCP_ARTIFACT_REGISTRY/PROD_GKE_CLUSTERo jobreleaseemite::noticee opromotenem entra na fila de aprovação (hoje não há projeto GCP). Com essas setadas, falta dePROD_CLOUDSQL_*/PROD_URL/GCP_*de staging é erro.workflow_dispatchcomstaging-run-id(só runs demaster) baixa o artefatostaging-releasedaquele run (90 dias) e passa pela mesma aprovação.promote: chart/values iguais aos que staging testou.allowed_environmentsno módulo WIF →ci_allowed_environments = ["production"]no env prod. O pool prod só troca tokens de jobsmasterdo environmentproduction, então não existe token de prod sem aprovação. Nada foi aplicado.deploy-staging.yml: novo outputresulte upload dostaging-release(release.json: tag + digests) quando o deploy passa.promote-images.shnão reescreve tag que já existe em prod (tags imutáveis): se já serve o digest, pula (re-promoção/rollback); se serve outro, falha.promote-images.shroda o skopeo 1.16 de uma imagem pinada por digest: o skopeo 1.13 do Ubuntu/runner não tem--preserve-digestse reescreve o índice com attestations (falhou assim no kind).docs/deploy-gke.md(novo, linkado no README): pipeline, setup do environmentproduction(UI +gh api), variáveis, release, rollback automático, rollback manual (helm rollback+ como achar os digests anteriores comhelm get values --revision) e workflow local no kind.trading-enginesegue com 1 réplica (d-engine-replicas).Ainda pendente (fora do alcance sem acesso): criar o environment
productioncom reviewers (precisa de [REDACTED SECRET] no repo, comando emdocs/deploy-gke.md) e o dry-run de promoção num cluster prod real; não existe projeto GCP.Como testar
Evidência (local, kind v0.29 / k8s 1.33)
bash ci/kind/verify-prod-promotion.sh: dois registries locais fazem o papel do Artifact Registry de staging e de prod, e o cluster só consegue puxar do de "prod":Checagens estáticas:
Nenhuma credencial commitada; nada aplicado em GCP nem em TAS.
Link to Devin session: https://devin-gtm.devinenterprise.com/sessions/811de16662ea4ae1b8632c50739ae1fb
Open in Devin Desktop: https://devin-gtm.devinenterprise.com/desktop/session/811de16662ea4ae1b8632c50739ae1fb?variant=devin
Requested by: @matthewguerra-cog
Devin Review