Repository navigation
ci(release): inject Sentry debug IDs before packing the CLI - #211
Merged
Merged
Conversation
Installed frames carry machine-specific absolute paths, which the uploaded ~/-prefixed sourcemaps cannot match. Injecting debug IDs before npm pack lets Sentry resolve them by ID. Pin @sentry/cli for inject and upload, keep the local smoke in step, and add a symbolication check to the release checklist. Refs #140
takeover status reports Session not found through runReported, so it never reaches captureFatal. An invalid watchdog interval throws to the top level. Refs #140
3 of 4 tasks
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.
Closes #140.
The 0.5.0 and 0.6.0 publish runs uploaded their sourcemaps to
pickforge/picklab, but the published JavaScript has no debug IDs. The SDK reports frames with absolute install paths such as~/.bun/install/global/node_modules/pickforge/dist/chunk-X.js, which the uploaded~/chunk-X.jsartifacts cannot be matched against, so fatal reports would not symbolicate.The candidate pack step now runs
sentry-cli sourcemaps injectonpackages/cli/distbeforenpm packand fails if any JS file lacks a//# debugId=line. The smoked tarball is still the published tarball, and the publish job still uploads it unmodified.@sentry/cliis pinned to 3.8.0 for both inject and upload. The optional local smoke in the checklist runs the same inject, and step 10 gains a one-command symbolication check against the published package. The release note is inUNRELEASED.md.Validation, run locally on this branch:
bun run build, then the new step's script verbatim: all seven JS files and maps got debug IDs and the entry shebangs stayed first.npm pack, global install into a temp prefix,pickforge-lab --versionprinted0.6.0; the tarball carries 7 maps.beforeSendcapture) on an injected chunk produceddebug_meta.imageswith the chunk's debug ID, while the frame filename was the absolute install path.captureFatal(error: Invalid --interval "invalid"). An independent review caught that my first choice,takeover status, is swallowed byrunReportedand never reports.bun run lintclean; PickCheck has no findings (no source changes).Not verified: server-side symbolication of a real event. That needs the next release's upload plus the step 10 check, since the local Sentry token has upload scope only.