Skip to content

Sentry Release Automation

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Sentry Release Automation

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

Two workflows plus optional runtime SDK integration.

Runtime Capture (Sentry.jl)

When ENV["SENTRY_DSN"] is set at __init__ time:

  • Sentry.init(dsn; release="LiquidCortex.jl@<pkgversion>")
  • Tags: package, version, julia_version
  • _sentry_enabled[] = true

step! / ensemble_step! call _capture_runtime_exception on failure:

  • Async capture; max ~50 ms wait so a full Sentry channel never stalls rethrow.
  • Accepts any thrown value (@nospecialize) to avoid MethodError on non-Exception throws.

Workflow: Sentry Release

File: .github/workflows/sentry-release.yml

Trigger Notes
push to main Primary release path
workflow_dispatch Manual

Env: SENTRY_ORG=limen-neural, SENTRY_PROJECT=liquidcortex, token from secrets.

Behavior:

  1. If SENTRY_AUTH_TOKEN empty → skip with warning (does not fail the repo).
  2. Else checkout (fetch-depth: 0), optional .env override load, install sentry-cli 3.4.0 with pinned SHA-256 checksum.
  3. releases new / set-commits --auto / finalize for version liquidcortex@<short-sha>.

Workflow: Sentry Preflight

File: .github/workflows/sentry.ymlSentry Preflight

Trigger Notes
pull_request Same-repo only (if skips fork PRs where secrets are unavailable)
workflow_dispatch Manual

Fails if SENTRY_AUTH_TOKEN missing on eligible runs. Installs the same pinned sentry-cli, runs sentry-cli info and verifies project listing.

Local Secrets Template

.env.example (copy to .env, gitignored):

SENTRY_AUTH_TOKEN=
SENTRY_DSN=
SENTRY_ORG=limen-neural
SENTRY_PROJECT=liquidcortex

Generate tokens in the limen-neural Sentry org UI (see comments in .env.example).

Integrity

sentry-cli Linux x86_64 3.4.0 expected SHA-256 (in workflow):

803556dd09de4fe54639c4d2e696315fd5a67dda3f8fe8dfe52a942ead5a2ae1

Do not fetch checksums from untrusted registries at install time; pin in-repo.

Related


Last updated: July 28, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: 4e2698c (main)

Clone this wiki locally