Skip to content

test: improve flakiness detection on stack corruption tests #58601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

RaisinTen
Copy link
Member

This change skips asserting the exit code of the child process with the corrupted async hooks stack only on those platforms where termination via a signal has been observed.

Refs: #58478 (comment)

This change skips asserting the exit code of the child process with the
corrupted async hooks stack only on those platforms where termination
via a signal has been observed.

Refs: nodejs#58478 (comment)
Signed-off-by: Darshan Sen <raisinten@gmail.com>
@nodejs-github-bot nodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jun 6, 2025
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@mertcanaltin mertcanaltin left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.19%. Comparing base (708fd19) to head (041ce33).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58601      +/-   ##
==========================================
- Coverage   90.19%   90.19%   -0.01%     
==========================================
  Files         635      636       +1     
  Lines      187495   187698     +203     
  Branches    36819    36845      +26     
==========================================
+ Hits       169116   169298     +182     
- Misses      11158    11164       +6     
- Partials     7221     7236      +15     

see 35 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.

@lpinca
Copy link
Member

lpinca commented Jun 6, 2025

I think the questions remain. What is causing 'SIGABRT'? And, should we try to fix the issue instead of hiding/ignoring it?

@RaisinTen
Copy link
Member Author

What is causing 'SIGABRT'?

In #58463 (comment), @Flarna suggested that this might be caused by a resource limitation. Someone from @nodejs/platform-aix might be able to confirm.

should we try to fix the issue instead of hiding/ignoring it?

Since this tests an async hooks stack corruption I don't know how relevant it is. Can someone from @nodejs/async_hooks answer that?

@RaisinTen RaisinTen added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jun 7, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 8, 2025
@nodejs-github-bot nodejs-github-bot merged commit b23648e into nodejs:main Jun 8, 2025
73 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in b23648e

@RaisinTen RaisinTen deleted the test/improve-flakiness-detection-on-async-hooks-stack-corruption-tests branch June 8, 2025 14:19
aduh95 pushed a commit that referenced this pull request Jun 8, 2025
This change skips asserting the exit code of the child process with the
corrupted async hooks stack only on those platforms where termination
via a signal has been observed.

Refs: #58478 (comment)
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: #58601
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async_hooks Issues and PRs related to the async hooks subsystem. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants