forked from pool/nodejs21
Adam Majer
c57e7a4279
* esm: add import.meta.dirname and import.meta.filename * fs: add stacktrace to fs/promises * lib: + add --no-experimental-global-navigator CLI flag + add navigator.language & navigator.languages + add navigator.platform * stream: + add support for deflate-raw format to webstreams compression + use Array for Readable buffer + optimize creation * test_runner: + adds built in lcov reporter + test_runner: add Date to the supported mock APIs + test_runner, cli: add --test-timeout flag For details see https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V21.md#21.2.0 - nodejs20-zlib-1.3.patch: upstreamed, dropped - node-gyp-addon-gypi.patch: rebased - fix_ci_tests.patch: partially upstreamed OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs21?expand=0&rev=5
84 lines
3.4 KiB
Diff
84 lines
3.4 KiB
Diff
Author: Adam Majer <amajer@suse.de>
|
|
Date: Dec 20 09:18:49 UTC 2017
|
|
Summary: Fix CI unit tests framework for OBS building
|
|
|
|
Index: node-v21.2.0/test/parallel/test-module-loading-globalpaths.js
|
|
===================================================================
|
|
--- node-v21.2.0.orig/test/parallel/test-module-loading-globalpaths.js
|
|
+++ node-v21.2.0/test/parallel/test-module-loading-globalpaths.js
|
|
@@ -11,6 +11,9 @@ const { addLibraryPath } = require('../c
|
|
|
|
addLibraryPath(process.env);
|
|
|
|
+common.skip('hardcoded global paths');
|
|
+return;
|
|
+
|
|
if (process.argv[2] === 'child') {
|
|
console.log(require(pkgName).string);
|
|
} else {
|
|
Index: node-v21.2.0/test/parallel/test-tls-passphrase.js
|
|
===================================================================
|
|
--- node-v21.2.0.orig/test/parallel/test-tls-passphrase.js
|
|
+++ node-v21.2.0/test/parallel/test-tls-passphrase.js
|
|
@@ -223,7 +223,7 @@ server.listen(0, common.mustCall(functio
|
|
}, onSecureConnect());
|
|
})).unref();
|
|
|
|
-const errMessageDecrypt = /bad decrypt/;
|
|
+const errMessageDecrypt = /bad (decrypt|password read)/;
|
|
|
|
// Missing passphrase
|
|
assert.throws(function() {
|
|
Index: node-v21.2.0/test/parallel/test-repl-envvars.js
|
|
===================================================================
|
|
--- node-v21.2.0.orig/test/parallel/test-repl-envvars.js
|
|
+++ node-v21.2.0/test/parallel/test-repl-envvars.js
|
|
@@ -2,7 +2,9 @@
|
|
|
|
// Flags: --expose-internals
|
|
|
|
-require('../common');
|
|
+const common = require('../common');
|
|
+common.skip('Not running test in OBS');
|
|
+
|
|
const stream = require('stream');
|
|
const { describe, test } = require('node:test');
|
|
const REPL = require('internal/repl');
|
|
Index: node-v21.2.0/Makefile
|
|
===================================================================
|
|
--- node-v21.2.0.orig/Makefile
|
|
+++ node-v21.2.0/Makefile
|
|
@@ -545,7 +545,8 @@ test-ci-js: | clear-stalled
|
|
.PHONY: test-ci
|
|
# Related CI jobs: most CI tests, excluding node-test-commit-arm-fanned
|
|
test-ci: LOGLEVEL := info
|
|
-test-ci: | clear-stalled bench-addons-build build-addons build-js-native-api-tests build-node-api-tests doc-only
|
|
+test-ci: | clear-stalled bench-addons-build build-addons build-js-native-api-tests build-node-api-tests
|
|
+ strip $(NODE_EXE)
|
|
out/Release/cctest --gtest_output=xml:out/junit/cctest.xml
|
|
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
|
|
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
|
|
@@ -726,7 +727,8 @@ apidocs_json = $(addprefix out/,$(apidoc
|
|
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
|
|
|
|
tools/doc/node_modules: tools/doc/package.json
|
|
- @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
|
|
+ echo "Skipping tools/doc/node_modules"
|
|
+# @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
|
|
echo "Skipping tools/doc/node_modules (no crypto)"; \
|
|
else \
|
|
cd tools/doc && $(call available-node,$(run-npm-ci)) \
|
|
Index: node-v21.2.0/tools/test.py
|
|
===================================================================
|
|
--- node-v21.2.0.orig/tools/test.py
|
|
+++ node-v21.2.0/tools/test.py
|
|
@@ -1362,7 +1362,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",
|