- fix_ci_tests.patch: increase default timeout on unit tests
to 20min from 2min. This seems to have lead to build failures on some platforms, like s390x in Factory. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs20?expand=0&rev=13
This commit is contained in:
parent
b374aa8440
commit
a55e32eace
@ -2,10 +2,10 @@ Author: Adam Majer <amajer@suse.de>
|
|||||||
Date: Dec 20 09:18:49 UTC 2017
|
Date: Dec 20 09:18:49 UTC 2017
|
||||||
Summary: Fix CI unit tests framework for OBS building
|
Summary: Fix CI unit tests framework for OBS building
|
||||||
|
|
||||||
Index: node-v18.9.0/test/parallel/test-module-loading-globalpaths.js
|
Index: node-v20.1.0/test/parallel/test-module-loading-globalpaths.js
|
||||||
===================================================================
|
===================================================================
|
||||||
--- node-v18.9.0.orig/test/parallel/test-module-loading-globalpaths.js
|
--- node-v20.1.0.orig/test/parallel/test-module-loading-globalpaths.js
|
||||||
+++ node-v18.9.0/test/parallel/test-module-loading-globalpaths.js
|
+++ node-v20.1.0/test/parallel/test-module-loading-globalpaths.js
|
||||||
@@ -11,6 +11,9 @@ const { addLibraryPath } = require('../c
|
@@ -11,6 +11,9 @@ const { addLibraryPath } = require('../c
|
||||||
|
|
||||||
addLibraryPath(process.env);
|
addLibraryPath(process.env);
|
||||||
@ -16,10 +16,10 @@ Index: node-v18.9.0/test/parallel/test-module-loading-globalpaths.js
|
|||||||
if (process.argv[2] === 'child') {
|
if (process.argv[2] === 'child') {
|
||||||
console.log(require(pkgName).string);
|
console.log(require(pkgName).string);
|
||||||
} else {
|
} else {
|
||||||
Index: node-v18.9.0/test/parallel/test-tls-passphrase.js
|
Index: node-v20.1.0/test/parallel/test-tls-passphrase.js
|
||||||
===================================================================
|
===================================================================
|
||||||
--- node-v18.9.0.orig/test/parallel/test-tls-passphrase.js
|
--- node-v20.1.0.orig/test/parallel/test-tls-passphrase.js
|
||||||
+++ node-v18.9.0/test/parallel/test-tls-passphrase.js
|
+++ node-v20.1.0/test/parallel/test-tls-passphrase.js
|
||||||
@@ -223,7 +223,7 @@ server.listen(0, common.mustCall(functio
|
@@ -223,7 +223,7 @@ server.listen(0, common.mustCall(functio
|
||||||
}, onSecureConnect());
|
}, onSecureConnect());
|
||||||
})).unref();
|
})).unref();
|
||||||
@ -29,10 +29,10 @@ Index: node-v18.9.0/test/parallel/test-tls-passphrase.js
|
|||||||
|
|
||||||
// Missing passphrase
|
// Missing passphrase
|
||||||
assert.throws(function() {
|
assert.throws(function() {
|
||||||
Index: node-v18.9.0/test/parallel/test-repl-envvars.js
|
Index: node-v20.1.0/test/parallel/test-repl-envvars.js
|
||||||
===================================================================
|
===================================================================
|
||||||
--- node-v18.9.0.orig/test/parallel/test-repl-envvars.js
|
--- node-v20.1.0.orig/test/parallel/test-repl-envvars.js
|
||||||
+++ node-v18.9.0/test/parallel/test-repl-envvars.js
|
+++ node-v20.1.0/test/parallel/test-repl-envvars.js
|
||||||
@@ -2,7 +2,9 @@
|
@@ -2,7 +2,9 @@
|
||||||
|
|
||||||
// Flags: --expose-internals
|
// Flags: --expose-internals
|
||||||
@ -44,31 +44,11 @@ Index: node-v18.9.0/test/parallel/test-repl-envvars.js
|
|||||||
const stream = require('stream');
|
const stream = require('stream');
|
||||||
const REPL = require('internal/repl');
|
const REPL = require('internal/repl');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
Index: node-v18.9.0/test/common/index.mjs
|
Index: node-v20.1.0/Makefile
|
||||||
===================================================================
|
===================================================================
|
||||||
--- node-v18.9.0.orig/test/common/index.mjs
|
--- node-v20.1.0.orig/Makefile
|
||||||
+++ node-v18.9.0/test/common/index.mjs
|
+++ node-v20.1.0/Makefile
|
||||||
@@ -45,6 +45,7 @@ const {
|
@@ -545,7 +545,8 @@ test-ci-js: | clear-stalled
|
||||||
expectsError,
|
|
||||||
skipIfInspectorDisabled,
|
|
||||||
skipIf32Bits,
|
|
||||||
+ skipIfWorker,
|
|
||||||
getArrayBufferViews,
|
|
||||||
getBufferSources,
|
|
||||||
getTTYfd,
|
|
||||||
@@ -94,6 +95,7 @@ export {
|
|
||||||
expectsError,
|
|
||||||
skipIfInspectorDisabled,
|
|
||||||
skipIf32Bits,
|
|
||||||
+ skipIfWorker,
|
|
||||||
getArrayBufferViews,
|
|
||||||
getBufferSources,
|
|
||||||
getTTYfd,
|
|
||||||
Index: node-v18.9.0/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- node-v18.9.0.orig/Makefile
|
|
||||||
+++ node-v18.9.0/Makefile
|
|
||||||
@@ -524,7 +524,8 @@ test-ci-js: | clear-stalled
|
|
||||||
.PHONY: test-ci
|
.PHONY: test-ci
|
||||||
# Related CI jobs: most CI tests, excluding node-test-commit-arm-fanned
|
# Related CI jobs: most CI tests, excluding node-test-commit-arm-fanned
|
||||||
test-ci: LOGLEVEL := info
|
test-ci: LOGLEVEL := info
|
||||||
@ -78,7 +58,7 @@ Index: node-v18.9.0/Makefile
|
|||||||
out/Release/cctest --gtest_output=xml:out/junit/cctest.xml
|
out/Release/cctest --gtest_output=xml:out/junit/cctest.xml
|
||||||
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
|
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
|
||||||
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
|
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
|
||||||
@@ -717,7 +718,8 @@ apidocs_json = $(addprefix out/,$(apidoc
|
@@ -726,7 +727,8 @@ apidocs_json = $(addprefix out/,$(apidoc
|
||||||
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
|
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
|
||||||
|
|
||||||
tools/doc/node_modules: tools/doc/package.json
|
tools/doc/node_modules: tools/doc/package.json
|
||||||
@ -88,10 +68,10 @@ Index: node-v18.9.0/Makefile
|
|||||||
echo "Skipping tools/doc/node_modules (no crypto)"; \
|
echo "Skipping tools/doc/node_modules (no crypto)"; \
|
||||||
else \
|
else \
|
||||||
cd tools/doc && $(call available-node,$(run-npm-ci)) \
|
cd tools/doc && $(call available-node,$(run-npm-ci)) \
|
||||||
Index: node-v18.9.0/test/parallel/test-crypto-dh.js
|
Index: node-v20.1.0/test/parallel/test-crypto-dh.js
|
||||||
===================================================================
|
===================================================================
|
||||||
--- node-v18.9.0.orig/test/parallel/test-crypto-dh.js
|
--- node-v20.1.0.orig/test/parallel/test-crypto-dh.js
|
||||||
+++ node-v18.9.0/test/parallel/test-crypto-dh.js
|
+++ node-v20.1.0/test/parallel/test-crypto-dh.js
|
||||||
@@ -167,7 +167,7 @@ assert.throws(() => {
|
@@ -167,7 +167,7 @@ assert.throws(() => {
|
||||||
dh3.computeSecret('');
|
dh3.computeSecret('');
|
||||||
}, { message: common.hasOpenSSL3 ?
|
}, { message: common.hasOpenSSL3 ?
|
||||||
@ -101,3 +81,16 @@ Index: node-v18.9.0/test/parallel/test-crypto-dh.js
|
|||||||
|
|
||||||
// Invalid test: curve argument is undefined
|
// Invalid test: curve argument is undefined
|
||||||
assert.throws(
|
assert.throws(
|
||||||
|
Index: node-v20.1.0/tools/test.py
|
||||||
|
===================================================================
|
||||||
|
--- node-v20.1.0.orig/tools/test.py
|
||||||
|
+++ node-v20.1.0/tools/test.py
|
||||||
|
@@ -1355,7 +1355,7 @@ def BuildOptions():
|
||||||
|
result.add_option("-s", "--suite", help="A test suite",
|
||||||
|
default=[], action="append")
|
||||||
|
result.add_option("-t", "--timeout", help="Timeout in seconds",
|
||||||
|
- default=120, type="int")
|
||||||
|
+ default=1200, type="int")
|
||||||
|
result.add_option("--arch", help='The architecture to run tests for',
|
||||||
|
default='none')
|
||||||
|
result.add_option("--snapshot", help="Run the tests with snapshot turned on",
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 15 14:03:24 UTC 2023 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
- fix_ci_tests.patch: increase default timeout on unit tests
|
||||||
|
to 20min from 2min. This seems to have lead to build failures
|
||||||
|
on some platforms, like s390x in Factory.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 12 07:52:30 UTC 2023 - Adam Majer <adam.majer@suse.de>
|
Fri May 12 07:52:30 UTC 2023 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user