openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Sentry: one release-name format across products (<product>@<version>+<commit>)

Open CodeGhost21 opened this issue 1 month ago • 3 comments

Summary

Name Sentry releases the same way across products: <product>@<version>+<commit>, as tinyhumansai/openhuman#8104 asked.

Problem

Each product names its releases differently today, which makes cross-product filtering and "which build is this?" harder:

Product Release name today
openhuman [email protected]+0de45077b0b1 (already matches)
backend production-main-180.1-14f37ab, and staging-<sha> on staging
openintents-core openintents-web@sha-<commit>, openintents-backend@sha-<commit>, openintents-worker@sha-<commit>
opencompany check its SENTRY_RELEASE
chottu-core check

Proposed solution

  • Agree the format (<product>@<version>+<shortsha>, as openhuman does) and where <version> comes from in repos without semver releases (backend: the deploy's run number? openintents: the crate/package version?).
  • Change each repo's deploy workflow and image build to set it, keeping the same value for the SDK (SENTRY_RELEASE) and for the sourcemap/symbol upload, or the two stop matching.

Acceptance criteria

  • [ ] Format and version source agreed per repo
  • [ ] Every product's events and uploaded artifacts use the agreed release name, checked on one real deploy each

Related

  • tinyhumansai/openhuman#8104 (tracker)

CodeGhost21 avatar Oct 22 '26 11:10 CodeGhost21

Standardize Sentry release naming across products to '@+'; each repo's deploy workflow and image build must set the same value for the SDK and sourcemap upload. This is an agreed-format enhancement request rather than a broken path, so p3.

Labelled priority: p3.

tinysweeper avatar Oct 22 '26 11:10 tinysweeper

Proposal (needs a yes from @senamakel)

Checked every product's current release name. Three already follow <product>@<version>+<commit>, so the change is small:

Product Today Proposed
openhuman [email protected]+0de45077b0b1 unchanged ✅
opencompany [email protected]+d31e532f7c8a (observability/config.rs) unchanged ✅
chottu-core chottu@<version>+<commit> (ADR 0002) unchanged ✅
backend production-main-180.1-14f37ab, and staging-<sha> on staging [email protected]+14f37ab (version from package.json), the same on staging; environment already tells them apart
openintents-core openintents-web@sha-<commit> (and -backend, -worker) [email protected]+<sha7>, [email protected]+<sha7>, [email protected]+<sha7> (versions from package.json / the crates)

Rules: the commit is the 12-character short SHA, as openhuman and opencompany use. The version is whatever the repo's manifest says, so a repo without real versioning (openintents is 0.1.0 everywhere) still sorts by commit.

Risk: low. Sourcemaps and debug files are matched by debug ID, not by release name, so stack traces keep resolving across the switch. Only the release list in Sentry changes: old releases keep their old names, new ones use the new format.

Change set if approved: backend deploy-prod.yml and deploy-develop.yml (one line each, plus the "Create Sentry release" step's version), and openintents-core deploy-prod.yml (three lines).

CodeGhost21 avatar Oct 23 '26 05:10 CodeGhost21

Nothing has changed here since the proposal: openhuman already names its releases openhuman@<version>+<commit>. The other products need the maintainer's yes on the proposal above before anything moves.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind