Sentry Integration: Track staging commits
Maintainer thường phản hồi trong vòng 1 ngày
@vprashrex đang làm issue này rồi.
Từ ngày 10/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 18
- Fork
- 11
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ProjectTech4DevAI/kaapi-backend
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Logging: Reduce INFO log noiseCó thể đã có người làm @vprashrex đã nhận 2 ngày trước. Đang mởmaintenance
ProjectTech4DevAI/kaapi-backend#1243 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sentry Integration: Dynamic release taggingCó thể đã có người làm @vprashrex đã nhận 2 ngày trước. Đang mởenhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sentry release tracking for production (git sha + deploy markers)Có thể đã có người làm @vprashrex đã nhận 2 ngày trước. Đang mởenhancement
ProjectTech4DevAI/kaapi-backend#1240 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
API Management: Restrict Gemini API keysCó thể đã có người làm @Prajna1999 đã nhận 3 ngày trước. Đang mở
ProjectTech4DevAI/kaapi-backend#1239 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ProjectTech4DevAI/kaapi-backend
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
huggingface/peft#3955 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
author-page correction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
acl-org/acl-anthology#10313 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
anime duplicate exception request-theme
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
LizardByte/ThemerrDB#8926 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
huggingface/transformers#49556 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/security bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mozilla-ai/otari#2245 ·
Maintainer thường phản hồi trong vòng 1 ngày