-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[v6.x] test: investigate test-fs-read-buffer-tostring-fail #14430
Comments
Test file - https://github.com/nodejs/node/blob/v6.x-staging/test/parallel/test-fs-read-buffer-tostring-fail.js |
@refack I don't think it's possible to not have this test as flaky. We are generating a very big file on memory, then we try to save that extremely big file on disk, and then load it. Everything can happen in all this I/O and GC() activity. However, one thing we can do: convert https://github.com/nodejs/node/blob/v6.x-staging/test/parallel/test-fs-read-buffer-tostring-fail.js#L29-L33 into the pattern as the end of the https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback (the one using the I'm happy to review a PR that addresses this issue, and I think it would be good for someone that wants to improve their streams knowledge. |
Also in the worse case, could create a PR adding
to https://github.com/nodejs/node/blob/v6.x-staging/test/parallel/parallel.status#L7 |
Can I take and contribute to this ? |
@Jeyanthinath Go for it. |
PR #14472 ( deleted ) |
New PR #14495 |
If the test is necessarily flaky on 6.x, then I'm not sure it makes sense to mark it as flaky on 6.x. By marking it as flaky, the results will always be ignored. For a test where there's a chance of fixing the issue, that's fine. For a test where there's no possible fix and/or no intention of fixing, it may be better to remove the test rather than have a test whose results are ignored. Or if the test is minimally flaky, then leave the status alone. You'll get red once in a month or whatever, but if it starts going red 100% of the time, you'll know something is (probably) broken. Not a blocking objection on the "mark as flaky" approach. Just suggestions. Feel free to proceed with the current plan if you disagree. |
Oh, not sure it's reasonable if the test is resource-intensive, but another option would be to program in a retry into the test before deciding the test has failed. Not great, but probably better than not having a test or having a test whose failures are discounted. |
IMHO yellow I do agree that it the test could be rewritten to stabilize it, that is the better option in the longer term. |
Considering the fact that the test is gone from master as it is targeting a deprecated API, I'm definitely 👍 in flagging it as flaky. |
PR-URL: nodejs#14495 Fixes: nodejs#14430 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
As far as I can tell this has been resolved by marking it as flaky. Closing. |
v6.x-staging
https://ci.nodejs.org/job/node-test-commit-osx/11278/nodes=osx1010/
The text was updated successfully, but these errors were encountered: