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

Investigate flaky tests on AIX #28517

Closed
sam-github opened this issue Jul 2, 2019 · 6 comments
Closed

Investigate flaky tests on AIX #28517

sam-github opened this issue Jul 2, 2019 · 6 comments
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI.

Comments

@sam-github
Copy link
Contributor

Investigate tests skipped by:

The first batch might no longer be flaky after nodejs/build#1820 is fixed. Its unclear where the second batch is related or not.

  • Version:
  • Platform:
  • Subsystem:
@Trott Trott added the flaky-test Issues and PRs related to the tests with unstable failures on the CI. label Jul 2, 2019
@bnoordhuis
Copy link
Member

I re-enabled the addons/stringbytes-external-exceed-max tests and ran them repeatedly on test-osuosl-aix61-ppc64_be-2 but I can't get them to fail, not even with python tools/test.py -J.

I hacked test/common/index.js so it always says there is enough memory:

diff --git a/test/addons/addon.status b/test/addons/addon.status
index ee094f4..ec2d213 100644
--- a/test/addons/addon.status
+++ b/test/addons/addon.status
@@ -1,19 +1,3 @@
 prefix addons
 
 [true] # This section applies to all platforms
-
-[$system==aix]
-# https://github.com/nodejs/build/issues/1820#issuecomment-505998851
-# https://github.com/nodejs/node/pull/28469
-# https://github.com/nodejs/node/pull/28516
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js: SKIP
-
-# https://github.com/nodejs/node/pull/28516
-stringbytes-external-exceed-max/test-stringbytes-external-at-max: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2: SKIP
-stringbytes-external-exceed-max/test-stringbytes-external-exceed-max: SKIP
diff --git a/test/common/index.js b/test/common/index.js
index 13604d0..a627922 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -111,7 +111,7 @@ const isOpenBSD = process.platform === 'openbsd';
 const isLinux = process.platform === 'linux';
 const isOSX = process.platform === 'darwin';
 
-const enoughTestMem = os.totalmem() > 0x70000000; /* 1.75 Gb */
+const enoughTestMem = true;
 const cpus = os.cpus();
 const enoughTestCpu = Array.isArray(cpus) &&
                       (cpus.length > 1 || cpus[0].speed > 999);

It makes no difference however because the tests have additional checks that creating a big buffer is possible:

let buf;
try {
buf = Buffer.allocUnsafe(kStringMaxLength);
} catch (e) {
// If the exception is not due to memory confinement then rethrow it.
if (e.message !== 'Array buffer allocation failed') throw (e);
common.skip(skipMessage);
}

And that causes the tests to bail out with a "Skipped:" message.

Not sure where to go from here. Maybe just re-enable the tests and see what happens?

@mhdawson
Copy link
Member

If you create a PR that re-enables them we can run the CI on that PR a bunch of times to see if we see failures. It was very common before they were diabled.

@bnoordhuis
Copy link
Member

Here's a trial run: https://ci.nodejs.org/job/node-test-commit/30163/

@bnoordhuis
Copy link
Member

bnoordhuis commented Jul 17, 2019

@sam-github
Copy link
Contributor Author

24448 failed:

04:35:29 ok 2424 addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max
04:35:29   ---
04:35:29   duration_ms: 3.59
04:35:29   ...
04:38:07 FATAL: command execution failed
04:38:07 java.nio.channels.ClosedChannelException

This is an instance of nodejs/build#1849

@targos
Copy link
Member

targos commented Nov 20, 2021

Closing as there was no recent activity

@targos targos closed this as completed Nov 20, 2021
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.
Projects
None yet
Development

No branches or pull requests

5 participants