Repository navigation
ci: Sentry releases with commits, finalize and deploy - #1419
Merged
Merged
Conversation
…ploy build-package.yml now creates the Sentry release a package reports ([email protected], -rc.N or -nightly-YYYYMMDD, checked against the binary's own bytes) and attaches its commits through the plxnative GitHub integration. The publish jobs of release.yml, rc.yml and nightly.yml then finalize it and record a deploy to its environment through the new .github/actions/sentry-deploy. Neither step can fail a build or a publish. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cit range Review findings on the first commit: - a dispatched dry run built the same release name as the real one and would replace a published nightly's commits, or plant a candidate that became the base of the next range: build-package.yml takes a new `sentry-release` input (default false) that only publishing runs set; - a final built after its candidate got one commit, because Sentry's default range starts at the previous release it knows (the rc): the range is now the last final vX.Y.Z below the version (ci/rc.py's last_release) to the built commit; - a rebuild_tag re-publish rewrote an old release's commits and date: release.yml passes `!inputs.rebuild_tag`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every shipped build now gets a Sentry release that knows its commits, and is finalized with a deploy once it is published. This turns on Sentry's suspect commits and suspect PRs, "resolve in next release", and regression detection, none of which worked because no release had commits.
What runs
build-package.yml, new step after the packaging assertions):[email protected],-rc.Nor-nightly-YYYYMMDD. It uses the same helpers as the source-bundle label, then checks that the exact string is inpkg/plxnative.sentry-cli releases new.releases set-commitswith an explicit range: from the last finalvX.Y.Zbelow this version (ci/rc.py::last_release) to the built commit. Sentry's default range would start at the previous release it knows. After a candidate that leaves the final with a single commit, and a patch of an older line would be measured from a newer line.release.yml,rc.yml,nightly.yml): a new composite action,.github/actions/sentry-deploy, runsreleases finalizeanddeploys new -e <production|development>after the package is out.Guards
continue-on-error). The debug-file upload stays fatal, as before.sentry-release(defaultfalse), is set to:!inputs.rebuild_tagbyrelease.yml, so a re-publish does not rewrite an old release's commits or date;rc.ymlandnightly.yml. A dispatched dry run builds the same name as the real one: a nightly's name is its date, so it would replace the shipped nightly's commits.Sentry settings done by hand (not in this diff)
plx-nativeandplx-native-dev, both onmain:/build/work/plx-native/plx-native/→ repo root (Rust frames);/plxnative/→ repo root (C frames,-fdebug-prefix-map).Verified
python -m unittest ci.test_ci_workflows ci.test_ci_timeouts: 112 pass, including 6 newSentryReleasestests. Two mutations were tried and both fail the tests: dropping the binary-name check, and dropping rc's dry gate.last_release(..., below=0.11.0)returnsv0.10.1, andv0.10.0^{}peels the annotated tag.rebuild_tag); the second commit fixes them.Not verified
sentry-deployaction in its checkout. Its publish step fails silently (continue-on-error) and that release stays unfinalized.No Rust, Makefile or Cargo changes, so no build-bench table is needed.
🤖 Generated with Claude Code