Merge ~liushuyu-011/ubuntu/+source/nodejs:ubuntu/devel into ubuntu/+source/nodejs:ubuntu/devel

Proposed by Zixing Liu
Status: Merged
Merged at revision: 53700d4287672a9da65ad5f4c913a6228a7cdf22
Proposed branch: ~liushuyu-011/ubuntu/+source/nodejs:ubuntu/devel
Merge into: ubuntu/+source/nodejs:ubuntu/devel
Diff against target: 325 lines (+61/-157)
7 files modified
debian/changelog (+14/-0)
debian/control (+2/-1)
debian/patches/build/test_ci.patch (+29/-19)
debian/patches/series (+2/-2)
debian/patches/test-lowerseclevel.patch (+0/-26)
debian/patches/ubuntu-openssl-fix-strace-openat-test.patch (+14/-0)
dev/null (+0/-109)
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
Review via email: mp+466345@code.launchpad.net

Description of the change

This merge proposal fixes some upstream unit tests and re-enables all the disabled tests on Ubuntu.

Requires https://bugs.launchpad.net/ubuntu/+source/node-undici/+bug/2066977 to be processed and published first.

PPA build: https://launchpad.net/~liushuyu-011/+archive/ubuntu/misc-1/+sourcepub/16152538/+listing-archive-extra

To post a comment you must log in.
Revision history for this message
Zixing Liu (liushuyu-011) wrote :

Already included in the archive version.
It was not marked as merged due to issues with LP git-importer.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 52389dc..526dc9d 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,17 @@
6+nodejs (20.13.1+dfsg-2ubuntu3) oracular; urgency=medium
7+
8+ * d/p/series: Disable OpenSSL 3.2 patches on Ubuntu.
9+ * d/p/test-lowerseclevel.patch: Remove unneeded test workarounds
10+ from the patch.
11+ * d/p/disable-failing-tests.patch: Delete unneeded patch.
12+ * d/p/ubuntu-openssl-fix-strace-openat-test.patch: fix test Ubuntu also needs
13+ to access system icu libraries and access OpenSSL configuration in
14+ a different location.
15+ * d/p/build/test_ci.patch: refresh the patch after disabling
16+ OpenSSL 3.2 patch.
17+
18+ -- Zixing Liu <zixing.liu@canonical.com> Thu, 23 May 2024 14:58:21 -0600
19+
20 nodejs (20.13.1+dfsg-2ubuntu2) oracular; urgency=medium
21
22 * Merge from Debian unstable. Remaining changes:
23diff --git a/debian/control b/debian/control
24index c965182..eede4ee 100644
25--- a/debian/control
26+++ b/debian/control
27@@ -1,7 +1,8 @@
28 Source: nodejs
29 Section: javascript
30 Priority: optional
31-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@alioth-lists.debian.net>
32+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
33+XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@alioth-lists.debian.net>
34 Uploaders: Jérémy Lal <kapouer@melix.org>,
35 Jonas Smedegaard <dr@jones.dk>
36 Build-Depends:
37diff --git a/debian/patches/build/test_ci.patch b/debian/patches/build/test_ci.patch
38index d7297ab..fbe7d01 100644
39--- a/debian/patches/build/test_ci.patch
40+++ b/debian/patches/build/test_ci.patch
41@@ -20,9 +20,11 @@ Forwarded: not-needed
42 Reviewed-By: Xavier Guimard <yadd@debian.org>
43 Last-Update: 2020-02-09
44
45---- a/Makefile
46-+++ b/Makefile
47-@@ -551,7 +551,7 @@
48+Index: nodejs/Makefile
49+===================================================================
50+--- nodejs.orig/Makefile
51++++ nodejs/Makefile
52+@@ -551,7 +551,7 @@ test-ci-native: | benchmark/napi/.builds
53 # This target should not use a native compiler at all
54 # Related CI job: node-test-commit-arm-fanned
55 test-ci-js: | clear-stalled
56@@ -31,9 +33,11 @@ Last-Update: 2020-02-09
57 --mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
58 $(TEST_CI_ARGS) $(CI_JS_SUITES)
59 $(info Clean up any leftover processes, error if found.)
60---- a/test/parallel/parallel.status
61-+++ b/test/parallel/parallel.status
62-@@ -12,6 +12,45 @@
63+Index: nodejs/test/parallel/parallel.status
64+===================================================================
65+--- nodejs.orig/test/parallel/parallel.status
66++++ nodejs/test/parallel/parallel.status
67+@@ -12,6 +12,45 @@ test-fs-read-stream-concurrent-reads: PA
68 # https://github.com/nodejs/node/issues/52630
69 test-error-serdes: PASS, FLAKY
70
71@@ -79,7 +83,7 @@ Last-Update: 2020-02-09
72 [$system==win32]
73
74 # Windows on x86
75-@@ -43,6 +82,10 @@
76+@@ -43,6 +82,10 @@ test-inspector-async-stack-traces-set-in
77 test-crypto-dh-stateless: SKIP
78 test-crypto-keygen: SKIP
79
80@@ -90,7 +94,7 @@ Last-Update: 2020-02-09
81 [$system==solaris] # Also applies to SmartOS
82 # https://github.com/nodejs/node/issues/43457
83 test-domain-no-error-handler-abort-on-uncaught-0: PASS, FLAKY
84-@@ -94,9 +137,10 @@
85+@@ -94,9 +137,10 @@ test-tls-write-error: PASS, FLAKY
86 # https://github.com/nodejs/node/issues/48047
87 test-http-pipeline-flood: SKIP
88
89@@ -102,11 +106,13 @@ Last-Update: 2020-02-09
90
91 [$arch==s390x]
92 # https://github.com/nodejs/node/issues/50222
93---- a/test/sequential/sequential.status
94-+++ b/test/sequential/sequential.status
95-@@ -16,6 +16,25 @@
96- # fails on arm64, armhf, loong64 since openssl32
97- test-tls-session-timeout: PASS, FLAKY
98+Index: nodejs/test/sequential/sequential.status
99+===================================================================
100+--- nodejs.orig/test/sequential/sequential.status
101++++ nodejs/test/sequential/sequential.status
102+@@ -13,6 +13,25 @@ test-watch-mode-inspect: PASS, FLAKY
103+ # https://github.com/nodejs/node/issues/47409
104+ test-http2-large-file: PASS, FLAKY
105
106 +# flaky or failing at least on debian build servers
107 +test-fs-watch : PASS,FLAKY
108@@ -130,9 +136,11 @@ Last-Update: 2020-02-09
109 [$system==win32]
110 # https://github.com/nodejs/node/issues/47116
111 test-http-max-sockets: PASS, FLAKY
112---- a/tools/test.py
113-+++ b/tools/test.py
114-@@ -941,25 +941,7 @@
115+Index: nodejs/tools/test.py
116+===================================================================
117+--- nodejs.orig/tools/test.py
118++++ nodejs/tools/test.py
119+@@ -941,25 +941,7 @@ class Context(object):
120 self.node_has_crypto = True
121
122 def GetVm(self, arch, mode):
123@@ -159,9 +167,11 @@ Last-Update: 2020-02-09
124
125 def GetTimeout(self, mode, section=''):
126 timeout = self.timeout * TIMEOUT_SCALEFACTOR[ARCH_GUESS or 'ia32'][mode]
127---- a/test/common/index.js
128-+++ b/test/common/index.js
129-@@ -267,16 +267,15 @@
130+Index: nodejs/test/common/index.js
131+===================================================================
132+--- nodejs.orig/test/common/index.js
133++++ nodejs/test/common/index.js
134+@@ -264,16 +264,15 @@ const pwdCommand = isWindows ?
135
136 function platformTimeout(ms) {
137 const multipliers = typeof ms === 'bigint' ?
138diff --git a/debian/patches/disable-failing-tests.patch b/debian/patches/disable-failing-tests.patch
139deleted file mode 100644
140index acae4d8..0000000
141--- a/debian/patches/disable-failing-tests.patch
142+++ /dev/null
143@@ -1,109 +0,0 @@
144-Description: Ignore failing tests regressed also with release pocket nodejs version 18.13.0+dfsg1-1ubuntu2
145-
146-not ok 778 parallel/test-fetch
147- ---
148- duration_ms: 326.25900
149- severity: fail
150- exitcode: 1
151- stack: |-
152- node:internal/process/promises:288
153- triggerUncaughtException(err, true /* fromPromise */);
154- ^
155-
156- [CompileError: WebAssembly.compile(): expected 47560 bytes, fell off end @+1361]
157-
158- Node.js v18.19.0
159-
160-not ok 1298 parallel/test-http-response-setheaders
161- ---
162- duration_ms: 327.39600
163- severity: fail
164- exitcode: 1
165- stack: |-
166- node:internal/process/promises:288
167- triggerUncaughtException(err, true /* fromPromise */);
168- ^
169-
170- [CompileError: WebAssembly.compile(): expected 47560 bytes, fell off end @+1361]
171-
172- Node.js v18.19.0
173-
174-995s not ok 2379 parallel/test-strace-openat-openssl
175-995s ---
176-995s duration_ms: 329.57000
177-995s severity: fail
178-995s exitcode: 1
179-995s stack: |-
180-995s node:assert:399
181-995s throw err;
182-995s ^
183-995s
184-995s AssertionError [ERR_ASSERTION]: /tmp/autopkgtest.r0o3p5/build.UoJ/src/deps/openssl/openssl/apps/openssl.cnf is not in the list of allowed openat calls
185-995s at Interface.<anonymous> (/tmp/autopkgtest.r0o3p5/build.UoJ/src/test/parallel/test-strace-openat-openssl.js:46:5)
186-995s at Interface.emit (node:events:517:28)
187-995s at [_onLine] [as _onLine] (node:internal/readline/interface:423:12)
188-995s at [_normalWrite] [as _normalWrite] (node:internal/readline/interface:617:22)
189-995s at Socket.ondata (node:internal/readline/interface:250:23)
190-995s at Socket.emit (node:events:529:35)
191-995s at addChunk (node:internal/streams/readable:368:12)
192-995s at readableAddChunk (node:internal/streams/readable:337:11)
193-995s at Readable.push (node:internal/streams/readable:278:10)
194-995s at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
195-995s generatedMessage: false,
196-995s code: 'ERR_ASSERTION',
197-995s actual: false,
198-995s expected: true,
199-995s operator: '=='
200-995s }
201-995s
202-995s Node.js v18.19.0
203-995s ...
204-
205-956s not ok 2135 parallel/test-process-versions
206-956s ---
207-956s duration_ms: 215.55300
208-956s severity: fail
209-956s exitcode: 1
210-956s stack: |-
211-956s node:assert:125
212-956s throw new AssertionError(obj);
213-956s ^
214-956s
215-956s AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
216-956s + actual - expected
217-956s
218-956s + '1.2.2'
219-956s - '1.2.3'
220-956s ^
221-956s at Object.<anonymous> (/tmp/autopkgtest.r0o3p5/build.UoJ/src/test/parallel/test-process-versions.js:109:8)
222-956s at Module._compile (node:internal/modules/cjs/loader:1356:14)
223-956s at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
224-956s at Module.load (node:internal/modules/cjs/loader:1197:32)
225-956s at Module._load (node:internal/modules/cjs/loader:1013:12)
226-956s at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
227-956s at node:internal/main/run_main_module:28:49 {
228-956s generatedMessage: true,
229-
230-Author: Gianfranco Costamagna <locutusofborg@debian.org>
231-Last-Update: 2024-01-16
232-
233-Index: nodejs/test/parallel/parallel.status
234-===================================================================
235---- nodejs.orig/test/parallel/parallel.status
236-+++ nodejs/test/parallel/parallel.status
237-@@ -57,6 +57,15 @@ test-corepack-version: SKIP
238- test-fs-utimes: PASS,FLAKY
239- test-fs-utimes-y2K38: PASS,FLAKY
240-
241-+# Ubuntu regressed also in release pocket, new wasm issue?
242-+test-fetch: PASS,FLAKY
243-+test-http-response-setheaders: PASS,FLAKY
244-+test-blob: PASS,FLAKY
245-+test-websocket: PASS,FLAKY
246-+# Ubuntu: incompatible with openssl < 3.2?
247-+test-strace-openat-openssl: PASS,FLAKY
248-+test-tls-junk-server: PASS,FLAKY
249-+
250- [$system==win32]
251-
252- # Windows on x86
253diff --git a/debian/patches/series b/debian/patches/series
254index 1505bbd..7d7a0ea 100644
255--- a/debian/patches/series
256+++ b/debian/patches/series
257@@ -1,7 +1,7 @@
258 test-lowerseclevel.patch
259 #build/openssl_config_explicit_lower.patch
260 build/openssl_3011_without_new_error_message.patch
261-build/openssl_32.patch
262+#build/openssl_32.patch
263 build/more_shareable_builtins.patch
264 build/builtins_module_paths_not_shareable.patch
265 build/cctest_disable.patch
266@@ -27,4 +27,4 @@ build/disable_sea_dfsg_postject.patch
267 loong64/tests.patch
268 deps/v8-no-static-zlib.patch
269 deps/uv_io_uring_tests.patch
270-disable-failing-tests.patch
271+ubuntu-openssl-fix-strace-openat-test.patch
272diff --git a/debian/patches/test-lowerseclevel.patch b/debian/patches/test-lowerseclevel.patch
273index ef7d29d..d1ecd77 100644
274--- a/debian/patches/test-lowerseclevel.patch
275+++ b/debian/patches/test-lowerseclevel.patch
276@@ -44,29 +44,3 @@ Index: nodejs/deps/openssl/openssl/apps/openssl.cnf
277 +[system_default_sect]
278 +MinProtocol = TLSv1.2
279 +CipherString = DEFAULT:@SECLEVEL=1
280-Index: nodejs/test/parallel/test-tls-enable-keylog-cli.js
281-===================================================================
282---- nodejs.orig/test/parallel/test-tls-enable-keylog-cli.js
283-+++ nodejs/test/parallel/test-tls-enable-keylog-cli.js
284-@@ -17,7 +17,7 @@ tmpdir.refresh();
285- const file = tmpdir.resolve('keylog.log');
286-
287- const child = fork(__filename, ['test'], {
288-- execArgv: ['--tls-keylog=' + file]
289-+ execArgv: ['--tls-keylog=' + file, "--openssl-shared-config"]
290- });
291-
292- child.on('close', common.mustCall((code, signal) => {
293-Index: nodejs/test/parallel/test-tls-enable-trace-cli.js
294-===================================================================
295---- nodejs.orig/test/parallel/test-tls-enable-trace-cli.js
296-+++ nodejs/test/parallel/test-tls-enable-trace-cli.js
297-@@ -19,7 +19,7 @@ if (!binding('tls_wrap').HAVE_SSL_TRACE)
298-
299- const child = fork(__filename, ['test'], {
300- silent: true,
301-- execArgv: ['--trace-tls']
302-+ execArgv: ['--trace-tls', '--openssl-shared-config']
303- });
304-
305- let stdout = '';
306diff --git a/debian/patches/ubuntu-openssl-fix-strace-openat-test.patch b/debian/patches/ubuntu-openssl-fix-strace-openat-test.patch
307new file mode 100644
308index 0000000..0cdf3c7
309--- /dev/null
310+++ b/debian/patches/ubuntu-openssl-fix-strace-openat-test.patch
311@@ -0,0 +1,14 @@
312+diff --git a/test/parallel/test-strace-openat-openssl.js b/test/parallel/test-strace-openat-openssl.js
313+index 13882e67a..6206c1661 100644
314+--- a/test/parallel/test-strace-openat-openssl.js
315++++ b/test/parallel/test-strace-openat-openssl.js
316+@@ -17,7 +17,8 @@ if (spawnSync('strace').error !== undefined) {
317+
318+ {
319+ const allowedOpenCalls = new Set([
320+- '/etc/ssl/openssl.cnf',
321++ '/usr/share/zoneinfo-icu/44/le/zoneinfo64.res',
322++ '/usr/lib/ssl/openssl.cnf',
323+ ]);
324+ const strace = spawn('strace', [
325+ '-f', '-ff',

Subscribers

People subscribed via source and target branches