#1146298 node-performance-now: FTBFS: AssertionError: expected 311.296 to be above 340

#1146298#5
Date:
2026-08-31 09:18:54 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-performance-now, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
   dh_auto_test --buildsystem=nodejs
	mkdir -p node_modules
	ln -s ../debian/tests/test_modules/call-delayed node_modules/call-delayed
	ln -s ../debian/tests/test_modules/chai-increasing node_modules/chai-increasing
	ln -s ../. node_modules/performance-now
	/bin/sh -ex debian/tests/pkg-js/test
+ mocha --require coffee-script/register test/performance-now.coffee test/scripts.coffee


  now
    ✔ reported time differs at most 1ms from a freshly reported uptime
    ✔ two subsequent calls return an increasing number
    ✔ has less than 20 microseconds overhead
    ✔ can be called 1 million times in under 1 second (averaging under 1 microsecond per call) (47ms)
    ✔ for 10,000 numbers, number n is never bigger than number n-1

  scripts/initital-value.coffee (module.uptime(), expressed in milliseconds)
    ✔ printed 56.983
    1) printed a value above 80
    ✔ printed a value below 350

  scripts/delayed-require.coffee (sum of uptime and 250 ms delay`)
    ✔ printed 311.296
    2) printed a value above 340

  scripts/delayed-call.coffee (sum of uptime and 250 ms delay`)
    ✔ printed 309.629
    3) printed a value above 340


  9 passing (68ms)
  3 failing

  1) scripts/initital-value.coffee (module.uptime(), expressed in milliseconds)
       printed a value above 80:

      AssertionError: expected 56.983 to be above 80
      + expected - actual

      -56.983
      +80

      at Context.<anonymous> (test/scripts.coffee:7:44)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:809:10)
      at /usr/share/nodejs/mocha/lib/runner.js:959:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:724:14)
      at /usr/share/nodejs/mocha/lib/runner.js:734:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:595:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:702:5)
      at processImmediate (node:internal/timers:534:21)


  2) scripts/delayed-require.coffee (sum of uptime and 250 ms delay`)
       printed a value above 340:

      AssertionError: expected 311.296 to be above 340
      + expected - actual

      -311.296
      +340

      at Context.<anonymous> (test/scripts.coffee:13:45)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:809:10)
      at /usr/share/nodejs/mocha/lib/runner.js:959:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:724:14)
      at /usr/share/nodejs/mocha/lib/runner.js:734:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:595:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:702:5)
      at processImmediate (node:internal/timers:534:21)


  3) scripts/delayed-call.coffee (sum of uptime and 250 ms delay`)
       printed a value above 340:

      AssertionError: expected 309.629 to be above 340
      + expected - actual

      -309.629
      +340

      at Context.<anonymous> (test/scripts.coffee:18:45)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:809:10)
      at /usr/share/nodejs/mocha/lib/runner.js:959:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:724:14)
      at /usr/share/nodejs/mocha/lib/runner.js:734:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:595:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:702:5)
      at processImmediate (node:internal/timers:534:21)




+ exit 77
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 77
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146298#8
Date:
2026-08-31 09:50:52 UTC
From:
To:
Hello,

Bug #1146298 in node-performance-now reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/js-team/node-performance-now/-/commit/704d7de5611b9e7cce1d8618a8b1a3ccf98bb534

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146298

#1146298#15
Date:
2026-08-31 10:04:51 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-performance-now, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146298@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated node-performance-now package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 31 Aug 2026 11:48:51 +0200
Source: node-performance-now
Architecture: source
Version: 2.1.0+debian-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1146298
Changes:
 node-performance-now (2.1.0+debian-7) unstable; urgency=medium
 .
   * Team upload
   * Declare compliance with policy 4.7.4
   * Drop "Rules-Requires-Root: no"
   * Drop "Priority: optional"
   * debian/watch version 5
   * Do not assume how fast the machine is (Closes: #1146298)
Checksums-Sha1:
 46f1d8f0c61e7756ba0a2140d16a15ae8e1a5052 2267 node-performance-now_2.1.0+debian-7.dsc
 fedc9f1de4fa6d1092d346ae1695c4028b51022c 6828 node-performance-now_2.1.0+debian-7.debian.tar.xz
Checksums-Sha256:
 bd540f940be3bf815e89ebf86bdbdc5d1da9dd0d00b50c68267d763d386d1afb 2267 node-performance-now_2.1.0+debian-7.dsc
 512de5a1b8d39ad7447cd995ae696ac9db87b033d172b74eefe1e94ecff7ecc4 6828 node-performance-now_2.1.0+debian-7.debian.tar.xz
Files:
 ca71a4e6e315b122f7a7ec6e3e5e2d6e 2267 javascript optional node-performance-now_2.1.0+debian-7.dsc
 8648eeaa64ef3b4f50a58434a89bbcd7 6828 javascript optional node-performance-now_2.1.0+debian-7.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqVTmYACgkQ9tdMp8mZ
7ulxxg//eurVpFzTXTJmLRjYuu/Y8WxCD44YxJ1Nv2qlJKlS1AdljZDsTz5+O0CT
FWoN2ssEFbsDpP8C4Nt0cWsJ4K+o2aPsCxQ3T8hfLUAfheS4/Y8B0HXZd5iju+LA
uvKswIw1j6IE5fOMsO8BKWQ4yeh6cXmqi1QLNInTXoUgFH/lI+cg529iGhCaVVhR
IvQBCr4pOmO1kiG7o5Jm7tu8mBMmV0o8c/rXmslwUfi+U5ahxExGl2T3rdWIHJpY
87AG7LTB+fnj5nIV5XxQQL/EFDw2Qf+OKlDNyDqyNSiYyOEvR97nLzR6UhLM0xQk
dYTNDrJN3nn9rO6esNkXpsU+D/GeyXVtVl7Aemr2odYyz2s8TGnuliEo6sX1EXES
nROlsgZM2zgSuGIRBlE0eZ+b2L2UtE9c5NI8r9irXqnk3FBPYB3KIUAWyAsgLadH
Kj13+BUmbCFhROsJyCw1eRGjhunSx34hSSP6RnpY9BwRJt3+f4DKPdUfr3zS8cFa
0YjzqHVduhfDrTGSfaMWY6aHed0EJrOEJ65E+LhskWFEst2pz5xPsIxb7DpM/+65
tlKuNTsePtWuQADaXYuXwGk33rjcOPO8kc21xcOCgaaGgMz03qSoid47YpbMnS1T
UtafGN2Xw1tYDXgkqFObF2OyWIWO65dxnKtPN/KD2mxF0UF+mjY=
=jMt1
-----END PGP SIGNATURE-----