Files
nodejs13/fix_ci_tests.patch
Adam Majer 5a3b5a7abb - Update to upstream 13.0.1:
* deps: Fixed a bug in npm 6.12.0 where warnings are emitted on
    Node.js 13.x
  * esm: Changed file extension resolution order of
    --es-module-specifier-resolution=node to match that
    of the CommonJS loader
- Changes in version 13.0.0:
  * assert:
    + If the validation function passed to assert.throws() or
      assert.rejects() returns a value other than true,
      an assertion error will be thrown instead of the original
      error to highlight the programming mistake
    + If a constructor function is passed to validate the instance
      of errors thrown in assert.throws() or assert.reject(),
      an assertion error will be thrown instead of the original error
  * child_process: ChildProcess._channel (DEP0129) is now
    a Runtime deprecation
  * console: The output console.timeEnd() and console.timeLog()
    will now automatically select a suitable time unit instead
    of always using milliseconds
  * deps: The V8 engine was updated to version 7.8.
  * domain: The domain's error handler is now executed with
    the active domain set to the domain's parent to prevent
    inner recursion
  * fs:
    + The undocumented method FSWatcher.prototype.start() was removed
    + Calling the open() method on a ReadStream or WriteStream
      now emits a runtime deprecation warning. This is an internal
      method that should not be used by user code.
    + fs.read/write, fs.readSync/writeSync and fd.read/write now

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs13?expand=0&rev=1
2019-10-23 15:00:12 +00:00

145 lines
5.9 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-git.317fa3a757/test/parallel/test-module-loading-globalpaths.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-module-loading-globalpaths.js
+++ node-git.317fa3a757/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-git.317fa3a757/test/parallel/test-tls-env-bad-extra-ca.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-tls-env-bad-extra-ca.js
+++ node-git.317fa3a757/test/parallel/test-tls-env-bad-extra-ca.js
@@ -36,7 +36,7 @@ fork(__filename, opts)
// TODO(addaleax): Make `SafeGetenv` work like `process.env`
// encoding-wise
if (!common.isWindows) {
- const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
+ const re = /Warning: Ignoring extra certs from.*no-such-file-exists-.* load failed:.*/;
assert(re.test(stderr), stderr);
}
}))
Index: node-git.317fa3a757/test/parallel/test-tls-passphrase.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-tls-passphrase.js
+++ node-git.317fa3a757/test/parallel/test-tls-passphrase.js
@@ -223,7 +223,7 @@ server.listen(0, common.mustCall(functio
}, onSecureConnect());
})).unref();
-const errMessagePassword = /bad decrypt/;
+const errMessagePassword = /bad (decrypt|password read)/;
// Missing passphrase
assert.throws(function() {
@@ -253,7 +253,7 @@ assert.throws(function() {
});
}, errMessagePassword);
-const errMessageDecrypt = /bad decrypt/;
+const errMessageDecrypt = /bad (decrypt|password read)/;
// Invalid passphrase
assert.throws(function() {
Index: node-git.317fa3a757/test/parallel/test-crypto-scrypt.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-crypto-scrypt.js
+++ node-git.317fa3a757/test/parallel/test-crypto-scrypt.js
@@ -169,8 +169,8 @@ for (const options of bad) {
for (const options of toobig) {
const expected = {
- message: new RegExp('error:[^:]+:digital envelope routines:' +
- '(?:EVP_PBE_scrypt|scrypt_alg):memory limit exceeded'),
+ message: new RegExp('(error:[^:]+:digital envelope routines:' +
+ '(?:EVP_PBE_scrypt|scrypt_alg):memory limit exceeded|Invalid scrypt parameter)'),
type: Error,
};
common.expectsError(() => crypto.scrypt('pass', 'salt', 1, options, () => {}),
Index: node-git.317fa3a757/test/parallel/test-repl-envvars.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-repl-envvars.js
+++ node-git.317fa3a757/test/parallel/test-repl-envvars.js
@@ -2,12 +2,14 @@
// Flags: --expose-internals
-require('../common');
+const common = require('../common');
const stream = require('stream');
const REPL = require('internal/repl');
const assert = require('assert');
const inspect = require('util').inspect;
+common.skip('Not running test in OBS');
+
const tests = [
{
env: {},
Index: node-git.317fa3a757/test/common/index.mjs
===================================================================
--- node-git.317fa3a757.orig/test/common/index.mjs
+++ node-git.317fa3a757/test/common/index.mjs
@@ -45,6 +45,7 @@ const {
expectsError,
skipIfInspectorDisabled,
skipIf32Bits,
+ skipIfWorker,
getArrayBufferViews,
getBufferSources,
disableCrashOnUnhandledRejection,
@@ -91,6 +92,7 @@ export {
expectsError,
skipIfInspectorDisabled,
skipIf32Bits,
+ skipIfWorker,
getArrayBufferViews,
getBufferSources,
disableCrashOnUnhandledRejection,
Index: node-git.317fa3a757/test/parallel/test-fs-utimes.js
===================================================================
--- node-git.317fa3a757.orig/test/parallel/test-fs-utimes.js
+++ node-git.317fa3a757/test/parallel/test-fs-utimes.js
@@ -145,7 +145,7 @@ const path = `${tmpdir.path}/test-utimes
fs.writeFileSync(path, '');
// Test Y2K38 for all platforms [except 'arm', 'OpenBSD' and 'SunOS']
-if (!process.arch.includes('arm') && !common.isOpenBSD && !common.isSunOS) {
+if (!process.arch.includes('arm') && process.arch !== 's390' && !common.isOpenBSD && !common.isSunOS) {
const Y2K38_mtime = 2 ** 31;
fs.utimesSync(path, Y2K38_mtime, Y2K38_mtime);
const Y2K38_stats = fs.statSync(path);
Index: node-git.317fa3a757/Makefile
===================================================================
--- node-git.317fa3a757.orig/Makefile
+++ node-git.317fa3a757/Makefile
@@ -530,7 +530,7 @@ 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 build-addons build-js-native-api-tests build-node-api-tests doc-only
+test-ci: | clear-stalled build-addons build-js-native-api-tests build-node-api-tests
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) \
@@ -705,7 +705,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)) \