Sentry Integration: Track staging commits
Mantenedores costumam responder em até 1 dia
@vprashrex já está trabalhando nisso.
Desde 10/10/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Is your feature request related to a problem?
Staging deploys for every green main CI run do not correctly capture commit shas in Sentry releases. With multiple changes landing on staging, it is difficult to identify which merge introduced a staging issue.
Describe the solution you'd like
Implement the shared release-id code from the production issue:
- Update
docker-compose.staging.ymlto passRELEASE_TAGalongsideGIT_SHAfor backend services. - In
deploy-staging.yml, setRELEASE_TAG=mainandGIT_SHA=$DEPLOY_SHAin thedocker compose buildcommand. - Checkout the repo with
fetch-depth: 0after the SSM command succeeds. - Register the release and deploy using
getsentry/action-releaseonly if the SSM deploy is successful. - Reuse the
SENTRY_AUTH_TOKENsecret andSENTRY_ORGvariable; addSENTRY_STAGING_PROJECTaskaapi-staging.
Why is this enhancement needed?
This enhancement will ensure each staging deploy is associated with its specific commits, allowing quick identification of the source of staging issues before changes reach production.
Original issue
Describe the current behavior
Staging deploys on every green main CI run through .github/workflows/deploy-staging.yml (SSM → EC2 → docker compose -f docker-compose.staging.yml). The commit sha is already passed as the GIT_SHA build arg, but the Sentry release id ignores it, so every staging event in the kaapi-staging project reports the same release. Many changes land on staging between production releases, and there is no way to tell which merge introduced a staging issue.
Describe the enhancement you'd like
Depends on the shared release-id code from the production issue (kaapi-backend@<RELEASE_TAG or API_VERSION>+<git sha 12>).
docker-compose.staging.yml: passRELEASE_TAGas a build arg next toGIT_SHAfor every service that builds the backend image.deploy-staging.yml:- set
RELEASE_TAG=mainalongsideGIT_SHA=$DEPLOY_SHAin thedocker compose buildcommand - checkout the repo with
fetch-depth: 0in a step after the SSM command succeeds - register the release and deploy with
getsentry/action-release(release: kaapi-backend@main+<DEPLOY_SHA 12>,environment: staging,set_commits: auto) only when the SSM deploy succeeded
- set
- GitHub setup: reuse the
SENTRY_AUTH_TOKENsecret andSENTRY_ORGvariable; addSENTRY_STAGING_PROJECT=kaapi-staging.
Why is this enhancement needed?
Each staging deploy becomes a Sentry release with its commits, so a new staging issue points at the merge that caused it before the change reaches production.
Additional context
- Use
DEPLOY_SHA(workflow_run.head_sha), notgithub.sha: this workflow is triggered byworkflow_run, wheregithub.shais the default-branch head, not necessarily the deployed commit. deploy-staging-ecs.yml(manualworkflow_dispatch) is a second staging path; decide whether it stays and, if so, apply the same steps there.- Verify after the next
mainmerge: Sentry → Releases inkaapi-stagingshowskaapi-backend@main+<sha>understagingwith commits attached.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 11
- Merge médio
- 3d 11h
- PRs com merge (30d)
- 8
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ProjectTech4DevAI/kaapi-backend
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Mantenedores costumam responder em até 1 dia
-
Evaluation: Improve guardrails awarenessTalvez já em andamento @AkhileshNegi assumiu há 15 dias. Abertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
ProjectTech4DevAI/kaapi-backend#1246 ·
Mantenedores costumam responder em até 1 dia
-
Logging: Reduce INFO log noiseTalvez já em andamento @vprashrex assumiu há 3 dias. Abertamaintenance
ProjectTech4DevAI/kaapi-backend#1243 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Sentry Integration: Dynamic release taggingTalvez já em andamento @vprashrex assumiu há 3 dias. Abertaenhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Sentry release tracking for production (git sha + deploy markers)Talvez já em andamento @vprashrex assumiu há 3 dias. Abertaenhancement
ProjectTech4DevAI/kaapi-backend#1240 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ProjectTech4DevAI/kaapi-backend
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
aws-samples/sample-per-model-bedrock#191 ·
Mantenedores costumam responder em até 1 dia
-
Docs viewer: inverted grey colormap, Phantom CT window -20 to 35 HU, smoothing up to 40 mmTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea: docs enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
PyTomography/PyTomography#331 ·
Mantenedores costumam responder em até 1 dia
-
effort: low prio: low ready
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
digitalfabrik/integreat-cms#4616 ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
FuRongJun-1999/dsh-memory#226 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug difficulty:2 good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
MakazhanAlpamys/Soup#1865 ·
Mantenedores costumam responder em até 1 dia