Skip to content

test: replace flaky pummel regression tests#34530

Closed
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:gh-814-revisit
Closed

test: replace flaky pummel regression tests#34530
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:gh-814-revisit

Conversation

@addaleax
Copy link
Copy Markdown
Member

These tests were written a long time ago, and use the allocation of
large amounts of unused memory as a way to detect use-after-free
problems with Buffers. As a result, the tests are resource-intensive
and may crash because of that.

Replace them with a more modern test. We don’t explicitly try to
detect use-after-free conditions, and instead rely on e.g. ASAN
(or the process just crashing hard) to do that for us.

Fixes: #34527

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Jul 27, 2020
@nodejs-github-bot

This comment has been minimized.

These tests were written a long time ago, and use the allocation of
large amounts of unused memory as a way to detect use-after-free
problems with Buffers. As a result, the tests are resource-intensive
and may crash because of that.

Replace them with a more modern test. We don’t explicitly try to
*detect* use-after-free conditions, and instead rely on e.g. ASAN
(or the process just crashing hard) to do that for us.

Fixes: nodejs#34527
@nodejs-github-bot

This comment has been minimized.

@Trott
Copy link
Copy Markdown
Member

Trott commented Jul 30, 2020

@nodejs/testing @nodejs/fs This could use another review.

@Trott
Copy link
Copy Markdown
Member

Trott commented Jul 30, 2020

(I rebased to eliminate a trivial merge conflict and then force-pushed. Just in case anyone is wondering what is up with my force-push to Anna's branch.)

@nodejs-github-bot

This comment has been minimized.

Comment thread test/parallel/test-fs-write-reuse-callback.js
Co-authored-by: Rich Trott <rtrott@gmail.com>
@nodejs-github-bot

This comment has been minimized.

@Trott Trott added the flaky-test Issues and PRs related to the tests with unstable failures on the CI. label Aug 1, 2020
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

nodejs-github-bot commented Aug 2, 2020

@Trott
Copy link
Copy Markdown
Member

Trott commented Aug 2, 2020

@nodejs/collaborators This could use another review.

@gengjiawen
Copy link
Copy Markdown
Member

Landed in 0bb70b0

@gengjiawen gengjiawen closed this Aug 4, 2020
gengjiawen pushed a commit that referenced this pull request Aug 4, 2020
These tests were written a long time ago, and use the allocation of
large amounts of unused memory as a way to detect use-after-free
problems with Buffers. As a result, the tests are resource-intensive
and may crash because of that.

Replace them with a more modern test. We don’t explicitly try to
*detect* use-after-free conditions, and instead rely on e.g. ASAN
(or the process just crashing hard) to do that for us.

Fixes: #34527

PR-URL: #34530
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Comment thread test/parallel/test-fs-write-reuse-callback.js
codebytere pushed a commit that referenced this pull request Aug 6, 2020
These tests were written a long time ago, and use the allocation of
large amounts of unused memory as a way to detect use-after-free
problems with Buffers. As a result, the tests are resource-intensive
and may crash because of that.

Replace them with a more modern test. We don’t explicitly try to
*detect* use-after-free conditions, and instead rely on e.g. ASAN
(or the process just crashing hard) to do that for us.

Fixes: #34527

PR-URL: #34530
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
@codebytere codebytere mentioned this pull request Aug 10, 2020
codebytere pushed a commit that referenced this pull request Aug 11, 2020
These tests were written a long time ago, and use the allocation of
large amounts of unused memory as a way to detect use-after-free
problems with Buffers. As a result, the tests are resource-intensive
and may crash because of that.

Replace them with a more modern test. We don’t explicitly try to
*detect* use-after-free conditions, and instead rely on e.g. ASAN
(or the process just crashing hard) to do that for us.

Fixes: #34527

PR-URL: #34530
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky-test Issues and PRs related to the tests with unstable failures on the CI. test Issues and PRs related to the tests.

6 participants