Sentry Integration: Track staging commits
Les mainteneurs répondent en général sous 2 jours
@vprashrex y travaille déjà.
Depuis le 10/10/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- Python
- Étoiles
- 18
- Forks
- 11
- Merge moyen
- 4 j 20 h
- PR mergées (30 j)
- 9
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ProjectTech4DevAI/kaapi-backend
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Les mainteneurs répondent en général sous 2 jours
-
Evaluation: Add latency summary dataPeut-être pris @Ayush8923 l’a pris aujourd’hui. Ouverte
ProjectTech4DevAI/kaapi-backend#1253 · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
Fallback: Dynamic message translationsPeut-être pris @Prajna1999 l’a pris aujourd’hui. Ouverte
ProjectTech4DevAI/kaapi-backend#1251 · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
Redaction: Verify PII entity typesPeut-être pris @AkhileshNegi l’a pris aujourd’hui. Ouverteenhancement
ProjectTech4DevAI/kaapi-backend#1250 · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
Content Safety: Unified wrapper validatorPeut-être pris @Prajna1999 l’a pris aujourd’hui. Ouverte
ProjectTech4DevAI/kaapi-backend#1249 · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de ProjectTech4DevAI/kaapi-backend
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Deltares/imod-python#1940 ·
Les mainteneurs répondent en général sous 1 jour
-
effort: low prio: low ready
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
digitalfabrik/integreat-cms#4621 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
ioos/compliance-checker#1375 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
netbox status: backlog topic: testing type: housekeeping
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
netbox-community/netbox#23395 ·
Les mainteneurs répondent en général sous 1 jour