SHA256
1
0
forked from pool/nodejs22

- fix_ci_tests.patch: add fix for issue #53085

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs22?expand=0&rev=6
This commit is contained in:
Adam Majer 2024-05-22 09:06:04 +00:00 committed by Git OBS Bridge
parent 7462f77b15
commit 8ff7f8e84c
2 changed files with 43 additions and 25 deletions

View File

@ -2,11 +2,11 @@ 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-v21.7.1/test/parallel/test-node-output-v8-warning.mjs Index: node-v22.1.0/test/parallel/test-node-output-v8-warning.mjs
=================================================================== ===================================================================
--- node-v21.7.1.orig/test/parallel/test-node-output-v8-warning.mjs --- node-v22.1.0.orig/test/parallel/test-node-output-v8-warning.mjs
+++ node-v21.7.1/test/parallel/test-node-output-v8-warning.mjs +++ node-v22.1.0/test/parallel/test-node-output-v8-warning.mjs
@@ -15,7 +15,7 @@ describe('v8 output', { concurrency: tru @@ -15,7 +15,7 @@ describe('v8 output', { concurrency: !pr
.replaceAll('*test*', '*') .replaceAll('*test*', '*')
.replaceAll(/.*?\*fixtures\*v8\*/g, '(node:*) V8: *') // Replace entire path before fixtures/v8 .replaceAll(/.*?\*fixtures\*v8\*/g, '(node:*) V8: *') // Replace entire path before fixtures/v8
.replaceAll('*fixtures*v8*', '*') .replaceAll('*fixtures*v8*', '*')
@ -15,10 +15,10 @@ Index: node-v21.7.1/test/parallel/test-node-output-v8-warning.mjs
} }
const common = snapshot const common = snapshot
.transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, replaceNodeVersion); .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, replaceNodeVersion);
Index: node-v21.7.1/test/parallel/test-module-loading-globalpaths.js Index: node-v22.1.0/test/parallel/test-module-loading-globalpaths.js
=================================================================== ===================================================================
--- node-v21.7.1.orig/test/parallel/test-module-loading-globalpaths.js --- node-v22.1.0.orig/test/parallel/test-module-loading-globalpaths.js
+++ node-v21.7.1/test/parallel/test-module-loading-globalpaths.js +++ node-v22.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);
@ -29,10 +29,10 @@ Index: node-v21.7.1/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-v21.7.1/test/parallel/test-tls-passphrase.js Index: node-v22.1.0/test/parallel/test-tls-passphrase.js
=================================================================== ===================================================================
--- node-v21.7.1.orig/test/parallel/test-tls-passphrase.js --- node-v22.1.0.orig/test/parallel/test-tls-passphrase.js
+++ node-v21.7.1/test/parallel/test-tls-passphrase.js +++ node-v22.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();
@ -42,10 +42,10 @@ Index: node-v21.7.1/test/parallel/test-tls-passphrase.js
// Missing passphrase // Missing passphrase
assert.throws(function() { assert.throws(function() {
Index: node-v21.7.1/test/parallel/test-repl-envvars.js Index: node-v22.1.0/test/parallel/test-repl-envvars.js
=================================================================== ===================================================================
--- node-v21.7.1.orig/test/parallel/test-repl-envvars.js --- node-v22.1.0.orig/test/parallel/test-repl-envvars.js
+++ node-v21.7.1/test/parallel/test-repl-envvars.js +++ node-v22.1.0/test/parallel/test-repl-envvars.js
@@ -2,7 +2,9 @@ @@ -2,7 +2,9 @@
// Flags: --expose-internals // Flags: --expose-internals
@ -57,10 +57,10 @@ Index: node-v21.7.1/test/parallel/test-repl-envvars.js
const stream = require('stream'); const stream = require('stream');
const { describe, test } = require('node:test'); const { describe, test } = require('node:test');
const REPL = require('internal/repl'); const REPL = require('internal/repl');
Index: node-v21.7.1/Makefile Index: node-v22.1.0/Makefile
=================================================================== ===================================================================
--- node-v21.7.1.orig/Makefile --- node-v22.1.0.orig/Makefile
+++ node-v21.7.1/Makefile +++ node-v22.1.0/Makefile
@@ -389,7 +389,6 @@ ADDONS_HEADERS_PREREQS := tools/install. @@ -389,7 +389,6 @@ ADDONS_HEADERS_PREREQS := tools/install.
$(wildcard deps/uv/include/*/*.h) \ $(wildcard deps/uv/include/*/*.h) \
$(wildcard deps/v8/include/*.h) \ $(wildcard deps/v8/include/*.h) \
@ -89,10 +89,10 @@ Index: node-v21.7.1/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-v21.7.1/tools/test.py Index: node-v22.1.0/tools/test.py
=================================================================== ===================================================================
--- node-v21.7.1.orig/tools/test.py --- node-v22.1.0.orig/tools/test.py
+++ node-v21.7.1/tools/test.py +++ node-v22.1.0/tools/test.py
@@ -1362,7 +1362,7 @@ def BuildOptions(): @@ -1362,7 +1362,7 @@ def BuildOptions():
result.add_option("-s", "--suite", help="A test suite", result.add_option("-s", "--suite", help="A test suite",
default=[], action="append") default=[], action="append")
@ -102,10 +102,10 @@ Index: node-v21.7.1/tools/test.py
result.add_option("--arch", help='The architecture to run tests for', result.add_option("--arch", help='The architecture to run tests for',
default='none') default='none')
result.add_option("--snapshot", help="Run the tests with snapshot turned on", result.add_option("--snapshot", help="Run the tests with snapshot turned on",
Index: node-v21.7.1/test/parallel/test-crypto-dh.js Index: node-v22.1.0/test/parallel/test-crypto-dh.js
=================================================================== ===================================================================
--- node-v21.7.1.orig/test/parallel/test-crypto-dh.js --- node-v22.1.0.orig/test/parallel/test-crypto-dh.js
+++ node-v21.7.1/test/parallel/test-crypto-dh.js +++ node-v22.1.0/test/parallel/test-crypto-dh.js
@@ -92,7 +92,7 @@ const crypto = require('crypto'); @@ -92,7 +92,7 @@ const crypto = require('crypto');
dh3.computeSecret(''); dh3.computeSecret('');
}, { message: common.hasOpenSSL3 && !hasOpenSSL3WithNewErrorMessage ? }, { message: common.hasOpenSSL3 && !hasOpenSSL3WithNewErrorMessage ?
@ -115,10 +115,10 @@ Index: node-v21.7.1/test/parallel/test-crypto-dh.js
} }
} }
Index: node-v21.7.1/benchmark/misc/startup-cli-version.js Index: node-v22.1.0/benchmark/misc/startup-cli-version.js
=================================================================== ===================================================================
--- node-v21.7.1.orig/benchmark/misc/startup-cli-version.js --- node-v22.1.0.orig/benchmark/misc/startup-cli-version.js
+++ node-v21.7.1/benchmark/misc/startup-cli-version.js +++ node-v22.1.0/benchmark/misc/startup-cli-version.js
@@ -11,10 +11,10 @@ const path = require('path'); @@ -11,10 +11,10 @@ const path = require('path');
// indispensible part of the CLI. // indispensible part of the CLI.
const bench = common.createBenchmark(main, { const bench = common.createBenchmark(main, {
@ -131,3 +131,16 @@ Index: node-v21.7.1/benchmark/misc/startup-cli-version.js
], ],
count: [30], count: [30],
}); });
Index: node-v22.1.0/test/parallel/test-buffer-failed-alloc-typed-arrays.js
===================================================================
--- node-v22.1.0.orig/test/parallel/test-buffer-failed-alloc-typed-arrays.js
+++ node-v22.1.0/test/parallel/test-buffer-failed-alloc-typed-arrays.js
@@ -12,7 +12,7 @@ const SlowBuffer = require('buffer').Slo
// whether or not to zero-fill was not being reset, causing TypedArrays to
// allocate incorrectly.
const zeroArray = new Uint32Array(10).fill(0);
-const sizes = [1e10, 0, 0.1, -1, 'a', undefined, null, NaN];
+const sizes = [1e20, 0, 0.1, -1, 'a', undefined, null, NaN];
const allocators = [
Buffer,
SlowBuffer,

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 22 09:04:46 UTC 2024 - Adam Majer <adam.majer@suse.de>
- fix_ci_tests.patch: add fix for issue #53085
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 14 14:25:41 UTC 2024 - Adam Majer <adam.majer@suse.de> Tue May 14 14:25:41 UTC 2024 - Adam Majer <adam.majer@suse.de>