Add a release/build identifier to the application
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 42/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- JavaScript
- スター
- 73
- フォーク
- 38
- 平均マージ
- 14時間 53分
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GSA/touchpoints のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GSA/touchpoints#2154 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
digital-registry
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
GSA/touchpoints#2130 ·
メンテナーはふだん 1 日以内に返信
-
digital-registry
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GSA/touchpoints#2111 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GSA/touchpoints#2038 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GSA/touchpoints#2036 ·
メンテナーはふだん 1 日以内に返信
GSA/touchpoints の issue をすべて見る
似ている issue
-
ISA Builder: the Configuration tab has no tabpanel, so both tabs' aria-controls point at a missing element対応中かも @vikash2006-dot が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
riscv/riscv-isa-explorer#725 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on対応中かも @yadavraj2001 が今日担当しました。 オープンdocumentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
juandresrodca/AdminForge#73 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Windows 内置更新报“更新进程启动确认超时”:Explorer ShellExecute 冗余的 -WindowStyle Hidden + -EncodedCommand 触发卡巴斯基挂起オープンbug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WhiteBr1ck/agy-powertools#397 ·
メンテナーはふだん 1 日以内に返信
-
icon submission
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
kubai087/kubai-icons#203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: Don de Dieu TVオープンchannels:add check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信