From: Jérémy Lal Date: Wed, 20 Nov 2024 19:02:53 +0000 (+0100) Subject: adapt test-ci build target for buildd X-Git-Tag: archive/raspbian/20.18.1+dfsg-1+rpi1^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=28cbd413cc4d3cbd67907ad960a426d72827fbee;p=nodejs.git adapt test-ci build target for buildd Forwarded: not-needed Reviewed-By: Xavier Guimard Last-Update: 2020-02-09 * run tests with ./node * remove addons from test-ci suite, because it creates a dependency loop nodejs -> node-gyp -> nodejs which is painful to manage. * disabled because it requires stdin: + test-stdout-close-unref + test-regress-GH-746 * test-tick-processor fails on ppc64 and s390x, currently investigated https://github.com/nodejs/node/issues/2471 * test-cluster-disconnect sometimes fails on busy buildd, forwarded upstream https://github.com/nodejs/node/issues/3383 * test-fs-watch is flaky, might be related to https://github.com/nodejs/node/issues/4082 * huge timeout value for all platforms, buildd could be busy * test-npm-install and test-release-npm must fail, debian package dfsg-repacked npm out * ability to override CI_NATIVE_SUITES, CI_JS_SUITES * disable tests failing because DNS is disabled * sequential/test-http2-session-timeout is flaky https://github.com/nodejs/node/issues/20628 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/test/parallel/parallel.status b/test/parallel/parallel.status index 79a953df7..635cc420b 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -22,6 +22,28 @@ test-error-serdes: PASS, FLAKY # https://github.com/nodejs/node/issues/54006 test-sqlite: PASS, FLAKY +test-process-config : PASS,FLAKY +test-regress-GH-746 : PASS,FLAKY +test-stdout-close-unref : PASS,FLAKY + +# https://bugs.debian.org/919588 +## flaky on some user environments +test-net-listen-after-destroying-stdin: PASS,FLAKY +## fails when running with eatmydata +test-fs-error-messages: PASS,FLAKY + +# does not pass in autopkgtest ci env +test-cluster-bind-privileged-port: PASS,FLAKY +test-cluster-shared-handle-bind-privileged-port: PASS,FLAKY +test-debugger-preserve-breaks: PASS,FLAKY + +# for debian buildd i386 (but pass on porter barriere.d.o) +test-debugger-heap-profiler: PASS,FLAKY + +# fails on 32-bits arch, see #1069753 +test-fs-utimes: PASS,FLAKY +test-fs-utimes-y2K38: PASS,FLAKY + [$system==win32] # https://github.com/nodejs/node/issues/54807 test-runner-watch-mode-complex: PASS, FLAKY @@ -69,6 +91,10 @@ test-pipe-file-to-http: PASS, FLAKY # https://github.com/nodejs/node/issues/54801 test-debugger-heap-profiler: PASS, FLAKY +[$arch==mips64el] +# the debug flag is for hacking v8 internals +test-debug-args: PASS,FLAKY + [$system==solaris] # Also applies to SmartOS # https://github.com/nodejs/node/issues/43457 test-domain-no-error-handler-abort-on-uncaught-0: PASS, FLAKY @@ -120,10 +146,6 @@ test-tls-write-error: PASS, FLAKY # https://github.com/nodejs/node/issues/48047 test-http-pipeline-flood: SKIP -[$asan==on] -# https://github.com/nodejs/node/issues/39655 -test-cluster-primary-error: PASS, FLAKY - [$arch==loong64] # https://github.com/nodejs/node/issues/51662 test-http-correct-hostname: SKIP diff --git a/test/sequential/sequential.status b/test/sequential/sequential.status index 073b29cce..948f38bc0 100644 --- a/test/sequential/sequential.status +++ b/test/sequential/sequential.status @@ -7,12 +7,23 @@ prefix sequential [true] # This section applies to all platforms # https://github.com/nodejs/node/issues/27611#issuecomment-613100468 test-cpu-prof-dir-worker: PASS, FLAKY +test-cpu-prof-dir-absolute: PASS,FLAKY # https://github.com/nodejs/node/issues/44898 test-watch-mode: PASS, FLAKY test-watch-mode-inspect: PASS, FLAKY # https://github.com/nodejs/node/issues/47409 test-http2-large-file: PASS, FLAKY +# flaky or failing at least on debian build servers +test-fs-watch : PASS,FLAKY +test-http2-session-timeout : PASS,FLAKY +test-debugger-preserve-breaks : PASS,FLAKY +test-debugger-exec-scope : PASS,FLAKY +test-worker-heapsnapshot-options : PASS,FLAKY + +# https://github.com/nodejs/node/issues/24403 +test-cli-syntax: PASS,FLAKY + [$system==win32] # https://github.com/nodejs/node/issues/49630 test-single-executable-application-snapshot: PASS, FLAKY