Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-04-25 07:34:48 +0300
committerRich Trott <rtrott@gmail.com>2021-04-27 07:21:38 +0300
commit7f56307a02061b1663a5ed94c6808f3227d212a1 (patch)
treeb4e611351277f6ef42c24234121e0228f75a8052 /test
parent4dc8e769a5e6b4bbfeb684de7f3ce15a6dae76d3 (diff)
test: move slower tests into pummel and skip on slow devices
Move slower tests to pummel and skip on Raspberry Pi devices in CI. Refs: https://github.com/nodejs/node/pull/34289#issuecomment-823655915 PR-URL: https://github.com/nodejs/node/pull/38395 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/pummel/test-fs-watch-system-limit.js12
-rw-r--r--test/pummel/test-heapsnapshot-near-heap-limit-bounded.js (renamed from test/parallel/test-heapsnapshot-near-heap-limit-bounded.js)8
-rw-r--r--test/pummel/test-heapsnapshot-near-heap-limit.js (renamed from test/parallel/test-heapsnapshot-near-heap-limit.js)6
-rw-r--r--test/pummel/test-net-bytes-per-incoming-chunk-overhead.js (renamed from test/sequential/test-net-bytes-per-incoming-chunk-overhead.js)9
-rw-r--r--test/pummel/test-webcrypto-derivebits-pbkdf2.js (renamed from test/parallel/test-webcrypto-derivebits-pbkdf2.js)8
5 files changed, 38 insertions, 5 deletions
diff --git a/test/pummel/test-fs-watch-system-limit.js b/test/pummel/test-fs-watch-system-limit.js
index ce390dd3d0b..6662986a1a8 100644
--- a/test/pummel/test-fs-watch-system-limit.js
+++ b/test/pummel/test-fs-watch-system-limit.js
@@ -5,10 +5,18 @@ const child_process = require('child_process');
const fs = require('fs');
const stream = require('stream');
-if (!common.isLinux)
+if (!common.isLinux) {
common.skip('The fs watch limit is OS-dependent');
-if (!common.enoughTestCpu)
+}
+
+if (!common.enoughTestCpu) {
common.skip('This test is resource-intensive');
+}
+
+if ((process.config.variables.arm_version === '6') ||
+ (process.config.variables.arm_version === '7')) {
+ common.skip('Too slow for armv6 and armv7 bots');
+}
try {
// Ensure inotify limit is low enough for the test to actually exercise the
diff --git a/test/parallel/test-heapsnapshot-near-heap-limit-bounded.js b/test/pummel/test-heapsnapshot-near-heap-limit-bounded.js
index a57b9a8fc4b..0ad6a898d12 100644
--- a/test/parallel/test-heapsnapshot-near-heap-limit-bounded.js
+++ b/test/pummel/test-heapsnapshot-near-heap-limit-bounded.js
@@ -1,6 +1,12 @@
'use strict';
-require('../common');
+const common = require('../common');
+
+if ((process.config.variables.arm_version === '6') ||
+ (process.config.variables.arm_version === '7')) {
+ common.skip('Too slow for armv6 and armv7 bots');
+}
+
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
const { spawnSync } = require('child_process');
diff --git a/test/parallel/test-heapsnapshot-near-heap-limit.js b/test/pummel/test-heapsnapshot-near-heap-limit.js
index 5743f71a3f5..6651f2ae9f5 100644
--- a/test/parallel/test-heapsnapshot-near-heap-limit.js
+++ b/test/pummel/test-heapsnapshot-near-heap-limit.js
@@ -1,6 +1,12 @@
'use strict';
const common = require('../common');
+
+if ((process.config.variables.arm_version === '6') ||
+ (process.config.variables.arm_version === '7')) {
+ common.skip('Too slow for armv6 and armv7 bots');
+}
+
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
const { spawnSync } = require('child_process');
diff --git a/test/sequential/test-net-bytes-per-incoming-chunk-overhead.js b/test/pummel/test-net-bytes-per-incoming-chunk-overhead.js
index 7bcdfaa9f6f..fed903c2639 100644
--- a/test/sequential/test-net-bytes-per-incoming-chunk-overhead.js
+++ b/test/pummel/test-net-bytes-per-incoming-chunk-overhead.js
@@ -2,8 +2,15 @@
'use strict';
const common = require('../common');
-if (process.config.variables.asan)
+
+if (process.config.variables.asan) {
common.skip('ASAN messes with memory measurements');
+}
+
+if ((process.config.variables.arm_version === '6') ||
+ (process.config.variables.arm_version === '7')) {
+ common.skip('Too slow for armv6 and armv7 bots');
+}
const assert = require('assert');
const net = require('net');
diff --git a/test/parallel/test-webcrypto-derivebits-pbkdf2.js b/test/pummel/test-webcrypto-derivebits-pbkdf2.js
index ed8279dae13..745071f3458 100644
--- a/test/parallel/test-webcrypto-derivebits-pbkdf2.js
+++ b/test/pummel/test-webcrypto-derivebits-pbkdf2.js
@@ -2,8 +2,14 @@
const common = require('../common');
-if (!common.hasCrypto)
+if (!common.hasCrypto) {
common.skip('missing crypto');
+}
+
+if ((process.config.variables.arm_version === '6') ||
+ (process.config.variables.arm_version === '7')) {
+ common.skip('Too slow for armv6 and armv7 bots');
+}
const assert = require('assert');
const { subtle } = require('crypto').webcrypto;