Add a release/build identifier to the application
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start by tracing the project's CI/CD workflows and deployment configuration to see how build metadata reaches Rails, then check the app's boot configuration and existing tests. Choose and document an identifier strategy, wire it through every deployment target, and add generation, validation, and accessor coverage. Done means each deploy has a distinct identifier available through one documented Rails accessor, with missing or malformed metadata failing loudly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The application has no injected identifier for "which build/deploy is currently running." Add one, generated during CI/CD and made available to the running app, so that deployed code can reliably distinguish one release from another.
Why this is needed
A release/build identifier is broadly useful operational metadata — it lets logs, error reports, and support investigations pin down exactly which deploy produced a given request, independent of whatever else changes it over time.
It also came up as a discussion point in PR #2165 (widget output caching, #2157): that PR's cache key currently includes a digest computed by hashing application source files to detect that a new deploy has occurred. In review we discussed whether a release/build identifier could serve that same deploy-detection purpose more simply than a hand-maintained file digest. That follow-up is tracked separately (see Related, below) and depends on this ticket landing first — it is not in scope here.
What needs to happen
- Choose a generation strategy. Likely candidates: CI commit SHA, CI build/run number, a generated timestamp/UUID, or some combination — generated once per deploy, not computed at runtime by the app.
- Decide how it's made available to the running app. Options include a file packaged with the deployment artifact, an environment variable injected at deploy time, or a generated Ruby constant/config value written during the build step. Pick based on what's practical for this project's deploy pipeline.
- Wire it into CI/CD so every deploy (to every target environment) gets a correctly generated, unique identifier, and redeploying the same commit with changed configuration still produces a new identifier (don't key solely on commit SHA if config-only redeploys need distinguishing).
- Expose it to Rails code through a single, well-known accessor (e.g., Rails.application.config.x.release_id), read once at boot rather than re-read per request.
- Fail safely if the identifier is missing or malformed in deployed environments — don't silently fall back to a placeholder like "unknown" that would mask a broken pipeline.
- Document where the identifier comes from, its format, and how to read it, for future consumers.
- Add tests covering generation (CI and any manual/local path), validation/format checking, and the Rails-side accessor.
Acceptance criteria
- Every deploy to every environment produces a distinct, retrievable release/build identifier.
- The identifier is accessible from Rails application code through one documented accessor.
- Missing or malformed identifier metadata fails loudly in deployed environments rather than silently degrading.
- Documented and tested per items 6–7 above.
Out of scope
- Replacing FormCache's source digest with this identifier (tracked separately, see Related).
- Any change to cache invalidation behavior.
Related
- PR #2165 (review thread where a release/build identifier was discussed as an alternative to the widget cache's source digest)
- Follow-up ticket: Replace widget cache source digest with a release/build identifier (depends on this ticket)
- #2157 (original caching issue)
- Ngôn ngữ chính
- JavaScript
- Star
- 73
- Fork
- 38
- Merge trung bình
- 14 giờ 53 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 GSA/touchpoints
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GSA/touchpoints#2154 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
digital-registry
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
GSA/touchpoints#2130 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
digital-registry
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GSA/touchpoints#2111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
GSA/touchpoints#2038 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
GSA/touchpoints#2036 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GSA/touchpoints
Issue tương tự
-
ISA Builder: the Configuration tab has no tabpanel, so both tabs' aria-controls point at a missing elementCó thể đã có người làm @vikash2006-dot đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
riscv/riscv-isa-explorer#725 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onCó thể đã có người làm @yadavraj2001 đã nhận hôm nay. Đang mởdocumentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
juandresrodca/AdminForge#73 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows 内置更新报“更新进程启动确认超时”:Explorer ShellExecute 冗余的 -WindowStyle Hidden + -EncodedCommand 触发卡巴斯基挂起Đang mởbug status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
WhiteBr1ck/agy-powertools#397 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Icon submission] file-pdfĐang mởicon submission
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
kubai087/kubai-icons#203 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: Don de Dieu TVĐang mởchannels:add check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 2 ngày