Skip to content

test: normalize known inspector crash as completion#62851

Open
joyeecheung wants to merge 4 commits intonodejs:mainfrom
joyeecheung:probe-error
Open

test: normalize known inspector crash as completion#62851
joyeecheung wants to merge 4 commits intonodejs:mainfrom
joyeecheung:probe-error

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

This works around a pre-existing inspector issue: if the debuggee exits too quickly the inspector can segfault while tearing down. For now normalize the trailing segfault as completion to keep the CI green until the upstream bug is fixed, since it only reproduces on some slow CI machines and is not what the probe tests care about.

Refs: #62765
Refs: #58245

This works around a pre-existing inspector issue:
if the debuggee exits too quickly the inspector can
segfault while tearing down. For now normalize the
trailing segfault as completion to keep the CI green
until the upstream bug is fixed, since it only
reproduces on some slow CI machines and is not
what the probe tests care about.
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Apr 20, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.63%. Comparing base (14e16db) to head (a26305f).
⚠️ Report is 43 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #62851   +/-   ##
=======================================
  Coverage   89.62%   89.63%           
=======================================
  Files         706      706           
  Lines      219136   219185   +49     
  Branches    41987    41991    +4     
=======================================
+ Hits       196404   196456   +52     
- Misses      14611    14621   +10     
+ Partials     8121     8108   -13     

see 52 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joyeecheung joyeecheung added the review wanted PRs that need reviews. label Apr 20, 2026
@joyeecheung
Copy link
Copy Markdown
Member Author

cc @legendecas @hybrist

@hybrist
Copy link
Copy Markdown
Contributor

hybrist commented Apr 20, 2026

I was about to suggest something about .at(-1) / pop/push but I'm not sure it actually makes this test-only logic much easier to read. LGTM.

@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 20, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 20, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@qodo-ai-reviewer

This comment was marked as spam.

@qodo-ai-reviewer

This comment was marked as spam.

Comment thread test/common/debugger-probe.js
@joyeecheung
Copy link
Copy Markdown
Member Author

Looks like there's a test where it should be normalized to "missed". Updated the logic a bit to accommodate it.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Comment thread test/common/debugger-probe.js Outdated
Comment on lines +28 to +29
normalized.results[normalized.results.length - 1] =
expected.results[expected.results.length - 1];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is far easier to grok (almost said last time, but seeing it again, it really is)

Suggested change
normalized.results[normalized.results.length - 1] =
expected.results[expected.results.length - 1];
normalized.results.at(-1) = expected.results.at(-1);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, wait I don't think the LHS can use it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's LHS?

Copy link
Copy Markdown
Member Author

@joyeecheung joyeecheung Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left hand side.

> [0,1].at(-1) = 1

 Uncaught ReferenceError: Invalid left-hand side in assignment
    at <anonymous>:1:7

Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
Comment thread test/common/debugger-probe.js Outdated
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

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

Labels

needs-ci PRs that need a full CI run. review wanted PRs that need reviews. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants