From: Jérémy Lal Date: Sun, 2 Feb 2025 00:03:59 +0000 (+0100) Subject: adapt test-ci build target for buildd X-Git-Tag: archive/raspbian/20.18.3+dfsg-1+rpi1^2^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a40cb1e350d3d658a61cb12b46585d8b955574f;p=nodejs.git adapt test-ci build target for buildd Forwarded: not-needed Reviewed-By: Xavier Guimard Last-Update: 2020-02-09 * log to stdout * increase timeout multipliers Gbp-Pq: Topic build Gbp-Pq: Name test_ci.patch --- diff --git a/Makefile b/Makefile index 0e87de5b4..a74b78493 100644 --- a/Makefile +++ b/Makefile @@ -558,7 +558,7 @@ test-ci-native: | benchmark/napi/.buildstamp test/addons/.buildstamp test/js-nat # This target should not use a native compiler at all # Related CI job: node-test-commit-arm-fanned test-ci-js: | clear-stalled - $(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \ + $(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap \ --mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \ --skip-tests=$(CI_SKIP_TESTS) \ $(TEST_CI_ARGS) $(CI_JS_SUITES) diff --git a/test/common/index.js b/test/common/index.js index c36643203..5af30b96d 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -278,16 +278,15 @@ const pwdCommand = isWindows ? function platformTimeout(ms) { const multipliers = typeof ms === 'bigint' ? - { two: 2n, four: 4n, seven: 7n } : { two: 2, four: 4, seven: 7 }; + { fast: 2n, slow: 4n } : { fast: 3, slow: 5 }; + + if (process.arch.startsWith('arm') || process.arch.startsWith('mips') || process.arch.startsWith('riscv')) + ms = multipliers.slow * ms; + else + ms = multipliers.fast * ms; if (process.features.debug) - ms = multipliers.two * ms; - - if (exports.isAIX || exports.isIBMi) - return multipliers.two * ms; // Default localhost speed is slower on AIX - - if (isPi) - return multipliers.two * ms; // Raspberry Pi devices + ms = multipliers.slow * ms; return ms; } diff --git a/tools/test.py b/tools/test.py index 9d7838d7c..79417f6bb 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1762,7 +1762,8 @@ def Main(): def should_keep(case): if any((s in case.file) for s in options.skip_tests): - return False + case.outcomes.add(FLAKY) + return True elif SKIP in case.outcomes: return False elif (options.flaky_tests == SKIP) and (set([SLOW, FLAKY]) & case.outcomes):