openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Sentry: fail openhuman releases on a missing token, confirm commit association, record a source-resolved error

Open CodeGhost21 opened this issue 1 month ago • 3 comments

Summary

Finish openhuman's part of the Sentry tracker (follow-up from #8104): make a missing token fail the release, confirm commit association on a real release, and record one error resolving to source.

Problem

  • build-desktop.yml's Sentry steps (frontend sourcemap verify, Tauri and core symbol uploads, the deploy marker) run only if: env.SENTRY_AUTH_TOKEN != ''. A release whose secret goes missing skips them silently and still ships green, which is the failure mode #8104 set out to remove.
  • Commit association is set up but unproven: the openhuman-ci internal-integration token (Org: Read, Release: Admin, Project: Write) is in all four SENTRY_AUTH_TOKEN locations, and SENTRY_SKIP_SET_COMMITS=0 (since 2026-10-21). No release has run since. The last two (16 Oct) failed at "Docker: build and push".
  • No induced error in an openhuman project (core-rust, tauri-rust, tauri-react) has been checked for a stack trace resolving to source.

Proposed solution

  • In release runs, fail when the token is empty instead of skipping. Keep the skip for fork/PR builds, which genuinely have no secret, by gating on the event or ref rather than the token.
  • After the next release: check its log shows Associating commits with openhuman@… with no 403. If it fails, roll back with SENTRY_SKIP_SET_COMMITS=1 (no code change).
  • Trigger one test error per surface on a released build and record that the frames resolve to source.

Acceptance criteria

  • [ ] A release run with an empty SENTRY_AUTH_TOKEN fails; a fork/PR build still skips
  • [ ] A release logs Associating commits without a 403, and its Sentry release lists commits
  • [ ] One error each from core, tauri and react resolves to source in Sentry, recorded here

Related

  • tinyhumansai/openhuman#8104 (tracker), tinyhumansai/openhuman#8105 (removed the swallowed || true)

CodeGhost21 avatar Oct 22 '26 11:10 CodeGhost21

Follow-up work to harden openhuman's Sentry integration: make release runs fail on a missing SENTRY_AUTH_TOKEN instead of silently skipping, verify commit association on the next real release, and record one source-resolved error per surface (core, tauri, react). It's a concrete, multi-step work item rather than a report of a broken behavior or a new capability request. The silent-skip risk is real but confined to releases whose secret is missing, and there's a known rollback path (SENTRY_SKIP_SET_COMMITS=1), so it warrants acting soon rather than dropping everything. #8104 is the parent tracker it explicitly references, not the same underlying problem, so no duplicate is claimed.

Labelled priority: p2.

tinysweeper avatar Oct 22 '26 11:10 tinysweeper

Part 1 (fail a release on a missing Sentry token): declined. #8204 was closed by @senamakel ("sentry should be there"): the release environments always carry the Sentry settings, so the skip-on-empty condition stays. It also has a legitimate user: scripts/act-build-desktop.sh runs build-desktop.yml locally with act, and its secrets template (scripts/ci-secrets.example.json) has no Sentry token, so a hard failure would break local matrix builds. That was flagged in review and missed in the PR.

Still open here, both needing a real release (none has succeeded since 16 Oct; both failed at "Docker: build and push"):

  • [ ] the release logs Associating commits with openhuman@… with no 403 (token openhuman-ci with Org: Read, and SENTRY_SKIP_SET_COMMITS=0; roll back with =1)
  • [ ] one error each from core, tauri and react resolves to source, recorded here

CodeGhost21 avatar Oct 23 '26 05:10 CodeGhost21

No repo change since the last update: the Sentry steps in build-desktop.yml are as they were, and part 1 was declined (#8204). What's left is to confirm commit association and one source-resolved error on the next real release. Keeping this open for that check.

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