Skip to content

test(node-integration-tests): Unflake LocalVariables out-of-app capture - #23608

Closed
RulaKhaled wants to merge 1 commit into
developfrom
test/fix-local-variables-out-of-app-flake
Closed

test(node-integration-tests): Unflake LocalVariables out-of-app capture#23608
RulaKhaled wants to merge 1 commit into
developfrom
test/fix-local-variables-out-of-app-flake

Conversation

@RulaKhaled

Copy link
Copy Markdown
Collaborator

The Node 20.19 integration job on #23573 failed with expected undefined to deeply equal { inAppVar: 'in app value' } in adds local variables to out of app frames when includeOutOfAppFrames is true. That PR does not touch LocalVariables, and the same suite passed on Node 22, 24, and 26 in the same run.

Root cause: LocalVariables captures vars on a worker that attaches after inspector.open(). The out-of-app scenarios threw after a fixed 500ms, which is short enough on a loaded runner for the throw to land before pause-on-exceptions is enabled — so the event is sent without vars. Other tests in this suite already wait 1000ms; these two did not.

Decision: wait until inspector.url() is actually set, then give the worker a beat to enable the debugger, instead of lengthening another blind timeout. Frame lookup also accepts Object.<name>, which this suite already treats as a valid Node function-name variant.

Unrelated to #23573.

…s out-of-app assertions

These scenarios threw after a fixed 500ms, which can beat the debugger worker on loaded CI and drop vars from the event.

Co-Authored-By: Cursor Grok 4.6 <cursoragent@cursor.com>
@RulaKhaled

Copy link
Copy Markdown
Collaborator Author

Closing: this is not currently failing on develop. Node 20.19 integration tests passed on the latest develop runs (including https://github.com/getsentry/sentry-javascript/actions/runs/32880176511 and the fully green https://github.com/getsentry/sentry-javascript/actions/runs/32874078613). The failure was a one-off flake on #23573, not an ongoing develop breakage.

@RulaKhaled RulaKhaled closed this Aug 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.6 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.51 kB - -
@sentry/browser (incl. Tracing, Replay) 88.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.75 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.46 kB - -
@sentry/browser (incl. Metrics) 29.51 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.43 kB - -
@sentry/react 30.31 kB - -
@sentry/react (incl. Tracing) 50.8 kB - -
@sentry/vue 35.69 kB - -
@sentry/vue (incl. Tracing) 50.82 kB - -
@sentry/svelte 28.59 kB - -
CDN Bundle 30.36 kB - -
CDN Bundle (incl. Tracing) 49.06 kB - -
CDN Bundle (incl. Logs, Metrics) 32.56 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.94 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.98 kB - -
CDN Bundle (incl. Tracing, Replay) 86.56 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.27 kB - -
CDN Bundle - uncompressed 89.97 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.74 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.43 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.36 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.17 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.53 kB - -
@sentry/nextjs (client) 53.34 kB - -
@sentry/sveltekit (client) 49.02 kB - -
@sentry/core/server 65.21 kB - -
@sentry/core/browser 52.34 kB - -
@sentry/node 121.72 kB +0.02% +22 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 87.54 kB +0.03% +20 B 🔺
@sentry/aws-serverless 95.97 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 199.48 kB - -
@sentry/cloudflare (withSentry) 495.44 kB - -

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant