Merge ~bryce/ubuntu/+source/node-nan:merge-v2.16.0-1-kinetic into ubuntu/+source/node-nan:debian/sid

Proposed by Bryce Harrington
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Bryce Harrington
Merged at revision: dbb7c30101182f46bc8d8981f7e4455cf30ff2d4
Proposed branch: ~bryce/ubuntu/+source/node-nan:merge-v2.16.0-1-kinetic
Merge into: ubuntu/+source/node-nan:debian/sid
Diff against target: 94 lines (+55/-1)
4 files modified
debian/changelog (+17/-0)
debian/control (+2/-1)
debian/patches/disable-test-for-s390x.patch (+35/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Sergio Durigan Junior (community) Approve
Canonical Server Reporter Pending
Review via email: mp+428824@code.launchpad.net

Description of the change

Simple merge from upstream. I kind of wonder if this could be a sync - I tried building the debian package in a PPA with s390x enabled but it only built for amd64:

    https://launchpad.net/~bryce/+archive/ubuntu/node-nan-merge-v2.16.0-1/+packages

However looking at the git log there's just one change of substance, which doesn't relate to the test problem (just enables Node 18). The delta has been forwarded upstream, but no response yet. So it seems doubtful the test is fixed yet, and the delta should remain for now.

The Node 18 support is probably important for kinetic, though, as it appears nodejs 18 is in -proposed:

 nodejs | 12.22.9~dfsg-1ubuntu3 | jammy/universe
 nodejs | 16.14.2+dfsg1-1ubuntu3 | kinetic/universe
 nodejs | 18.6.0+dfsg-3ubuntu1 | kinetic-proposed/universe

PPA: https://launchpad.net/~bryce/+archive/ubuntu/node-nan-merge-v2.16.0-1/+packages

$ lp-test-ppa ppa:bryce/node-nan-merge-v2.16.0-1 --release kinetic

stirling: ~$ lp-test-ppa ppa:bryce/node-nan-merge-v2.16.0-1 --release kinetic
Tests for PPA node-nan-merge-v2.16.0-1
---- ---- ---- ----
Release: kinetic
Sources:
  SRC: node-nan @ 2.16.0-1ubuntu1~kinetic1 - Published
Triggers on published Sources:
              node-nan @ amd64 for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @amd64 ♻️ Trigger all proposed @{arch} ♻️ 💍
              node-nan @ s390x for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @s390x ♻️ Trigger all proposed @{arch} ♻️ 💍
              node-nan @ ppc64el for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @ppc64el ♻️ Trigger all proposed @{arch} ♻️ 💍
              node-nan @ arm64 for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @arm64 ♻️ Trigger all proposed @{arch} ♻️ 💍
              node-nan @ armhf for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @armhf ♻️ Trigger all proposed @{arch} ♻️ 💍
              node-nan @ riscv64 for node-nan/2.16.0-1ubuntu1~kinetic1 Trigger @riscv64 ♻️ Trigger all proposed @{arch} ♻️ 💍
Results: (from http://autopkgtest.ubuntu.com/results/autopkgtest-kinetic-bryce-node-nan-merge-v2.16.0-1/?format=plain)
  node-nan @ amd64:
    23.08.22 22:14:25 Log 🗒️ ✅ Triggers: node-nan/2.16.0-1ubuntu1~kinetic1
  node-nan @ armhf:
    23.08.22 22:04:56 Log 🗒️ ✅ Triggers: node-nan/2.16.0-1ubuntu1~kinetic1
  node-nan @ ppc64el:
    23.08.22 22:04:06 Log 🗒️ ✅ Triggers: node-nan/2.16.0-1ubuntu1~kinetic1
  node-nan @ s390x:
    23.08.22 22:03:47 Log 🗒️ ✅ Triggers: node-nan/2.16.0-1ubuntu1~kinetic1
Running:
    time pkg release arch ppa trigger
    2423 node-nan kinetic arm64 bryce/node-nan-merge-v2.16.0-1 node-nan/2.16.0-1ubuntu1~kinetic1
Waiting: (none)

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I will take a look at this one.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Bryce.

The package is "Architecture: all", so it won't build on non-amd64 architectures. The problem fixed by the patch doesn't seem to be fixed indeed; Debian is also affected by it, and we can see that the test is still failing there:

https://ci.debian.net/data/autopkgtest/unstable/s390x/n/node-nan/24616299/log.gz

Therefore, I agree that the delta should be kept.

BTW, this also means that it may be a good idea to send the patch to Debian and have the package become a sync.

Otherwise, LGTM. +1

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: bryce, sergiodj
Uploaders: bryce, sergiodj
MP auto-approved

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

This has migrated

$ rmad node-nan
 node-nan | 2.15.0-1ubuntu1 | jammy/universe
 node-nan | 2.16.0-1ubuntu1 | kinetic/universe

node-nan | 2.14.2-2 | stable
node-nan | 2.16.0-1 | testing
node-nan | 2.16.0-1 | unstable

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 ea78b91..6a46326 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+node-nan (2.16.0-1ubuntu1) kinetic; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1987440). Remaining changes:
9+ - d/p/disable-test-for-s390x.patch: Disable part of strings-test
10+ + This test case breaks on s390x, presumably due to endian issue
11+ (LP #1967589)
12+
13+ -- Bryce Harrington <bryce@canonical.com> Tue, 23 Aug 2022 14:09:37 -0700
14+
15 node-nan (2.16.0-1) unstable; urgency=medium
16
17 [ Debian Janitor ]
18@@ -9,6 +18,14 @@ node-nan (2.16.0-1) unstable; urgency=medium
19
20 -- Jérémy Lal <kapouer@melix.org> Tue, 28 Jun 2022 14:00:12 +0200
21
22+node-nan (2.15.0-1ubuntu1) jammy; urgency=medium
23+
24+ * d/p/disable-test-for-s390x.patch: Disable part of strings-test
25+ - This test case breaks on s390x, presumably due to endian issue
26+ (LP: #1967589)
27+
28+ -- Bryce Harrington <bryce@canonical.com> Sat, 02 Apr 2022 02:16:42 +0000
29+
30 node-nan (2.15.0-1) unstable; urgency=medium
31
32 * Team upload
33diff --git a/debian/control b/debian/control
34index d90ef9c..abc48c4 100644
35--- a/debian/control
36+++ b/debian/control
37@@ -1,7 +1,8 @@
38 Source: node-nan
39 Section: javascript
40 Priority: optional
41-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
42+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
43+XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
44 Uploaders: Jérémy Lal <kapouer@melix.org>
45 Build-Depends: debhelper-compat (= 13)
46 , dh-sequence-nodejs
47diff --git a/debian/patches/disable-test-for-s390x.patch b/debian/patches/disable-test-for-s390x.patch
48new file mode 100644
49index 0000000..38e862d
50--- /dev/null
51+++ b/debian/patches/disable-test-for-s390x.patch
52@@ -0,0 +1,35 @@
53+Description: Disable test that fails on s390x, probably due to an endian issue.
54+Author: Bryce Harrington <bryce@canonical.com>
55+Origin: vendor
56+Forwarded: not-needed
57+Bug: https://github.com/nodejs/nan/issues/935
58+Bug-Ubuntu: https://bugs.launchpad.net/node-nan/+bug/1967589
59+
60+--- a/test/js/strings-test.js
61++++ b/test/js/strings-test.js
62+@@ -12,7 +12,7 @@
63+
64+
65+ test('FromV8String', function (t) {
66+- t.plan(6);
67++ t.plan(4);
68+
69+ var a = bindings.returnUtf8String;
70+ var b = bindings.heapString;
71+@@ -22,16 +22,4 @@
72+
73+ t.equal(a('an utf8 strïng'), 'an utf8 strïng');
74+ t.equal(b('an utf8 strïng'), 'an utf8 strïng');
75+-
76+- var buf;
77+-
78+- /* we check Buffer.alloc rather than Buffer.from because
79+- * we don't want the base class Uint8Array.from */
80+- if (typeof(Buffer.alloc) === "function") {
81+- buf = Buffer.from('hello');
82+- } else {
83+- buf = new Buffer('hello');
84+- }
85+- t.equal(bindings.encodeHex(), buf.toString('hex'));
86+- t.equal(bindings.encodeUCS2(), 'hello');
87+ });
88diff --git a/debian/patches/series b/debian/patches/series
89index 559536f..e1d78e5 100644
90--- a/debian/patches/series
91+++ b/debian/patches/series
92@@ -1 +1,2 @@
93 fix_returnvalue_test.patch
94+disable-test-for-s390x.patch

Subscribers

People subscribed via source and target branches