René's URL Explorer Experiment


Title: debugger: preserve probe failure attribution by trivikr · Pull Request #64102 · nodejs/node · GitHub

Open Graph Title: debugger: preserve probe failure attribution by trivikr · Pull Request #64102 · nodejs/node

X Title: debugger: preserve probe failure attribution by trivikr · Pull Request #64102 · nodejs/node

Description: parallel/test-debugger-probe-failure-process-exit can be flaky when a probe expression exits the target while Debugger.evaluateOnCallFrame is pending. An older overlapping CDP request can clear the shared inFlight state before the probe evaluation failure is recorded. When that happens, the failure is reported as if the probe never ran, leaving it in pending, instead of recording the expected failed probe hit. This PR keeps the CDP in-flight context local to each callCdp() invocation and passes it explicitly into failure reporting. Also it clears this.inFlight only if the finishing call still owns the current in-flight state. Refs: https://github.com/nodejs/reliability/issues?q="test-debugger-probe-failure-process-exit" Example not ok 636 parallel/test-debugger-probe-failure-process-exit --- duration_ms: 628.15400 severity: fail exitcode: 1 stack: |- [process 631511]: --- stderr --- INSPECT_PROBE 631511: child stderr: "Debugger listening on ws://127.0.0.1:40237/395b9597-9abd-4a28-bb14-0a569e12a20b\nFor help, see: https://nodejs.org/learn/getting-started/debugging\n" INSPECT_PROBE 631511: CDP -> Runtime.enable INSPECT_PROBE 631511: child stderr: "Debugger attached.\n" INSPECT_PROBE 631511: CDP <- Runtime.enable (success) INSPECT_PROBE 631511: CDP -> Debugger.enable INSPECT_PROBE 631511: CDP <- Debugger.enable (success) INSPECT_PROBE 631511: CDP -> Debugger.setBreakpointByUrl INSPECT_PROBE 631511: CDP <- Debugger.setBreakpointByUrl (success) INSPECT_PROBE 631511: breakpoint set: id=2:7:0:^(.*[\/\\])?probe-exits-during-probe\.js$ urlRegex=^(.*[\/\\])?probe-exits-during-probe\.js$ locations=[] INSPECT_PROBE 631511: CDP -> Runtime.runIfWaitingForDebugger INSPECT_PROBE 631511: CDP <- Runtime.runIfWaitingForDebugger (success) INSPECT_PROBE 631511: scriptParsed: scriptId=88 url=file:///home/iojs/build/workspace/node-test-commit-linuxone/test/fixtures/debugger/probe-exits-during-probe.js, length=130 INSPECT_PROBE 631511: paused: finished=0, reason=Break on start hitBreakpoints=[] INSPECT_PROBE 631511: CDP -> Debugger.resume INSPECT_PROBE 631511: paused: finished=0, reason=other hitBreakpoints=["2:7:0:^(.*[\\/\\\\])?probe-exits-during-probe\\.js$"] INSPECT_PROBE 631511: CDP -> Debugger.evaluateOnCallFrame, probe=0 INSPECT_PROBE 631511: CDP <- Debugger.resume (success) INSPECT_PROBE 631511: child stderr: "Waiting for the debugger to disconnect...\n" INSPECT_PROBE 631511: disconnect sentinel detected, resetting client INSPECT_PROBE 631511: CDP <- Debugger.evaluateOnCallFrame error: ERR_DEBUGGER_ERROR INSPECT_PROBE 631511: recordInspectorFailure "Target process exited during probe evaluation": inFlight=null, lastProbeIndex=null, cdpError=undefined INSPECT_PROBE 631511: finish: exitCode=1, terminal=error [process 631511]: --- stdout --- {"v":2,"probes":[{"expr":"exitDuringProbe()","target":{"suffix":"probe-exits-during-probe.js","line":8}}],"results":[{"event":"error","pending":[0],"error":{"code":"probe_failure","message":"Target process exited during probe evaluation before probes: probe-exits-during-probe.js:8. If the failure repeats, review the probe expression.","stderr":""}}]} [process 631511]: status = 1, signal = null /home/iojs/build/workspace/node-test-commit-linuxone/test/common/child_process.js:112 throw error; ^ Error: - stdout did not match expectation, checker throws: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected ... Skipped lines { probes: [ { expr: 'exitDuringProbe()', target: { ... error: { - message: 'Probe evaluation did not complete' - }, - event: 'hit', - hit: 1, - location: { - column: 1, - line: 8, - url: 'file:///home/iojs/build/workspace/node-test-commit-linuxone/test/fixtures/debugger/probe-exits-during-probe.js' - }, - probe: 0 - }, - { - error: { code: 'probe_failure', + message: 'Target process exited during probe evaluation before probes: probe-exits-during-probe.js:8. If the failure repeats, review the probe expression.', - details: { - lastCdpMethod: 'Debugger.evaluateOnCallFrame' - }, - message: 'Target process exited during probe evaluation. If the failure repeats, review the probe expression.', - probe: 0, stderr: '' }, event: 'error', + pending: [ + 0 + ] - pending: [] } ], v: 2 } at assertProbeJson (/home/iojs/build/workspace/node-test-commit-linuxone/test/common/debugger-probe.js:65:10) at stdout (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-debugger-probe-failure-process-exit.js:25:5) at checkOutput (/home/iojs/build/workspace/node-test-commit-linuxone/test/common/child_process.js:52:7) at expectSyncExit (/home/iojs/build/workspace/node-test-commit-linuxone/test/common/child_process.js:129:32) at spawnSyncAndExit (/home/iojs/build/workspace/node-test-commit-linuxone/test/common/child_process.js:143:10) at Object. (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-debugger-probe-failure-process-exit.js:17:1) at Module._compile (node:internal/modules/cjs/loader:1947:14) at Object..js (node:internal/modules/cjs/loader:2087:10) at Module.load (node:internal/modules/cjs/loader:1669:32) at Module._load (node:internal/modules/cjs/loader:1450:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: [Object], expected: [Object], operator: 'deepStrictEqual', diff: 'simple' } at Object. (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-debugger-probe-failure-process-exit.js:17:1) at Module._compile (node:internal/modules/cjs/loader:1947:14) at Object..js (node:internal/modules/cjs/loader:2087:10) at Module.load (node:internal/modules/cjs/loader:1669:32) at Module._load (node:internal/modules/cjs/loader:1450:12) at wrapModuleLoad (node:internal/modules/cjs/loader:260:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { options: { cwd: '/home/iojs/build/workspace/node-test-commit-linuxone/test/fixtures/debugger', env: { NODE_DEBUG: 'inspect_probe' } }, command: '/home/iojs/build/workspace/node-test-commit-linuxone/out/Release/node inspect --json --probe probe-exits-during-probe.js:8 --expr exitDuringProbe() probe-exits-during-probe.js' } Assisted-by: openai:gpt-5.5

Open Graph Description: parallel/test-debugger-probe-failure-process-exit can be flaky when a probe expression exits the target while Debugger.evaluateOnCallFrame is pending. An older overlapping CDP request can clear the...

X Description: parallel/test-debugger-probe-failure-process-exit can be flaky when a probe expression exits the target while Debugger.evaluateOnCallFrame is pending. An older overlapping CDP request can clear the...

Opengraph URL: https://github.com/nodejs/node/pull/64102

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c76ba936-f2e7-fd00-c926-dd672e9fa1f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0CC:DCE25:F2AC74:15FFD80:6A4CCDDB
html-safe-nonce0b4621c500009c6905fd4ed983a636e40c9260d60ab456cde65aef304420529b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMENDOkRDRTI1OkYyQUM3NDoxNUZGRDgwOjZBNENDRERCIiwidmlzaXRvcl9pZCI6IjU0ODUyNTQ4NTg5NTE2NzUzNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5ba65b1d8d6f1f5d497775eb8e41c4da9747c2ed9756248a27def1ebb7c4a7ed
hovercard-subject-tagpull_request:3923551901
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/64102/files
twitter:imagehttps://avatars.githubusercontent.com/u/16024985?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/16024985?s=400&v=4
og:image:altparallel/test-debugger-probe-failure-process-exit can be flaky when a probe expression exits the target while Debugger.evaluateOnCallFrame is pending. An older overlapping CDP request can clear the...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneee8a9d18044a05fe2d57b9ae797da38c8be34effb03f015f7c42e94770d28a1b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef84814acc6f036583fd43463f5847a846243d2a4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/64102/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F64102%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F64102%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/64102/files
Reloadhttps://github.com/nodejs/node/pull/64102/files
Reloadhttps://github.com/nodejs/node/pull/64102/files
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 962 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
trivikrhttps://github.com/trivikr
nodejs:mainhttps://github.com/nodejs/node/tree/main
trivikr:test-debugger-probe-failure-process-exithttps://github.com/trivikr/node/tree/test-debugger-probe-failure-process-exit
Conversation 10 https://github.com/nodejs/node/pull/64102
Commits 1 https://github.com/nodejs/node/pull/64102/commits
Checks 79 https://github.com/nodejs/node/pull/64102/checks
Files changed https://github.com/nodejs/node/pull/64102/files
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
debugger: preserve probe failure attribution https://github.com/nodejs/node/pull/64102/files#top
Show all changes 1 commit https://github.com/nodejs/node/pull/64102/files
5e8f411 debugger: preserve probe failure attribution trivikr Jun 23, 2026 https://github.com/nodejs/node/pull/64102/commits/5e8f411837992ef2419ff0559112d5e44cb3657a
Clear filters https://github.com/nodejs/node/pull/64102/files
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
lib/internal/debugger/inspect_probe.jshttps://github.com/nodejs/node/pull/64102/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
View file https://github.com/trivikr/node/blob/5e8f411837992ef2419ff0559112d5e44cb3657a/lib/internal/debugger/inspect_probe.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/64102/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/64102/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/64102/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/64102/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/64102/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
Please reload this pagehttps://github.com/nodejs/node/pull/64102/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.