Skip to content
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

test: mark test-net-write-fully-async-buffer as flaky #52959

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented May 12, 2024

Refs: #47428

@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 May 12, 2024
@aduh95 aduh95 changed the title mark: test-net-write-fully-async-buffer as flaky test: mark test-net-write-fully-async-buffer as flaky May 12, 2024
@aduh95 aduh95 force-pushed the test-net-write-fully-async-buffer-flaky branch from 368473c to 9fd9192 Compare May 12, 2024 16:34
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
@lpinca
Copy link
Member

lpinca commented May 13, 2024

Did we try to investigate? It is not flaky on my machines.

@lpinca
Copy link
Member

lpinca commented May 13, 2024

On macOS, I actually get a 1 ‰ failures when running:

python3 tools/test.py -J --repeat=1000 test/parallel/test-net-write-fully-async-buffer.js

16 ‰ when running

python3 tools/test.py -J --repeat=1000 test/parallel/test-net-write-fully-async-hex-string.js

@lpinca
Copy link
Member

lpinca commented May 14, 2024

Something is fishy here. I get no failures if I remove the common module.

@aduh95
Copy link
Contributor Author

aduh95 commented May 15, 2024

Something is fishy here. I get no failures if I remove the common module.

#52964 (comment) also reported that removing ../common import would remove the flakiness of a different test (i.e. the test no longer times out)

@lpinca
Copy link
Member

lpinca commented May 16, 2024

Bisecting point to 1d29d81 as the first bad commit.

@lpinca
Copy link
Member

lpinca commented May 16, 2024

I think there is a recent bug in V8 or Node.js behind the flakiness of some tests. This is one of those. I think we should not land this.

@richardlau
Copy link
Member

Something is fishy here. I get no failures if I remove the common module.

#52964 (comment) also reported that removing ../common import would remove the flakiness of a different test (i.e. the test no longer times out)

Maybe something to do with the exit hooks common installs?

@lpinca
Copy link
Member

lpinca commented May 16, 2024

@richardlau I tried commenting almost everything in common and failures still occur. Note that, as per git bisect no failures occur from 07f481c which is the parent commit of 1d29d81.

@richardlau
Copy link
Member

I meant that it's possible that the V8 update has caused something to have changed during shutdown. common registers Javascript code to be run prior to Node.js exiting. If you've commented out the registering of those hooks then it's probably something else.

@lpinca
Copy link
Member

lpinca commented May 16, 2024

If you are referring to process.on('exit', handler) then yes I've commented them.

@lpinca
Copy link
Member

lpinca commented May 16, 2024

The behavior described in #52964 (comment) also occurs for this test. It correctly finishes, the server emits the 'close' event, but the process does not exit.

@lpinca
Copy link
Member

lpinca commented May 16, 2024

Adding the --jitless flag fixes the issue.

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. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants