Repository navigation
fix(deno): Fill module and trim trailing context line in stack frames - #26641
Merged
Merged
Conversation
Contributor
size-limit report 📦Compared: 1c19257 (PR test merge using develop at 41cb21d) Against: 41cb21d (develop) · base run #67679 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 65 successful. See the run.
Successful checks
|
mydea
marked this pull request as ready for review
November 19, 2026 15:21
javascript-sdk-gitflow
Bot
requested review from
andreiborza,
isaacs and
timfish
November 19, 2026 15:21
sentry-junior
Bot
force-pushed
the
fix/deno-stack-frames
branch
2 times, most recently
from
November 19, 2026 15:30
f1d420b to
1934573
Compare
sentry-junior
Bot
force-pushed
the
test/deno-remove-duplicate-orchestrion-suites
branch
from
November 19, 2026 16:04
b680ccc to
96bb371
Compare
sentry-junior
Bot
force-pushed
the
fix/deno-stack-frames
branch
5 times, most recently
from
November 20, 2026 10:37
6a6aa34 to
4cd6f3c
Compare
Base automatically changed from
test/deno-remove-duplicate-orchestrion-suites
to
develop
November 23, 2026 08:39
mydea
force-pushed
the
fix/deno-stack-frames
branch
from
November 23, 2026 08:40
4cd6f3c to
55b47ed
Compare
sentry-junior
Bot
force-pushed
the
fix/deno-stack-frames
branch
from
November 23, 2026 09:46
55b47ed to
5df6777
Compare
timfish
approved these changes
Nov 23, 2026
Member
|
rebase on latest develop and fix merge conflicts |
Move `createGetModuleFromFilename` from `@sentry/node` to `@sentry/server-utils` so the Deno stack parser fills `module` like Node does, and stop the Deno ContextLines integration from adding an empty line after a trailing newline. Run the Node suites that only failed on these differences on Deno again. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea
force-pushed
the
fix/deno-stack-frames
branch
from
November 24, 2026 08:35
5df6777 to
863bd51
Compare
mydea
enabled auto-merge (squash)
November 24, 2026 08:35
51 tasks done
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.
What
@sentry/denoerror stack frames now have amodule, the same as@sentry/node. Also,post_contextno longer ends with an empty line when the source file ends with a newline. The Deno run of the Node suites no longer excludes theSTACK_FRAMES_DIFFERgroup (contextLines/filename-with-spaces,public-api/captureException/catched-error,tracing/postgresjs,tracing/postgresjs-tracing-channel).Why
The Deno stack parser was created without a module resolver.
createGetModuleFromFilenamemoves from@sentry/nodeto@sentry/server-utils, so both SDKs use one implementation.@sentry/nodestill re-exports it. Deno's ContextLines splits the whole file on\n, so a trailing newline added an extra empty line. Node reads files withreadline, which does not add that line.The other differences in the earlier triage (
?as the function name, and extranode:module/register.tsframes in CJS) were extra frames next to the expected ones, not wrong frames, so they need no change.register.tsisin_apponly because the monorepo links@sentry/server-runtime-injectionfrom outsidenode_modules.via @mydea.
--
View Session [Sentry]