[Pkg-javascript-devel] Bug#861592: node-dateformat: FTBFS: AssertionError: '1:19:44 PM GMT' === '1:19:44 PM UTC'

2017-05-07 Thread Florian Vessaz
Dear maintainer,

Whether the issue arises or not depends on the timezone of the system.
For instance the test suite fails in the following timezones: Etc/GMT,
Etc/GMT+1 or Pacific/Tahiti (and ina lot of others too).

I couldn't find a reliable way to set the timezone after node has started.
I've found the following discussion in the NodeJS issue tracker
confirming this situation:
https://github.com/nodejs/node-v0.x-archive/issues/3286

IMHO it would thus be best to set the timezone to UTC before running the
tests. This can easily be achieved from debian/control:

override_dh_auto_test:
TZ=Etc/UTC mocha -R spec

Cheers,
-- Florian


signature.asc
Description: PGP signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

[Pkg-javascript-devel] Bug#861592: node-dateformat: FTBFS: AssertionError: '1:19:44 PM GMT' === '1:19:44 PM UTC'

2017-05-01 Thread Chris Lamb
Source: node-dateformat
Version: 1.0.11-2
Severity: serious
Justification: fails to build from source
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Dear Maintainer,

node-dateformat fails to build from source in unstable/amd64:

  […]

  dh build
 dh_testdir
 dh_update_autotools_config
 dh_auto_configure
 dh_auto_build
 debian/rules override_dh_auto_test
  make[1]: Entering directory '«BUILDDIR»'
  mocha -R spec
  
  
    dayOfWeek
  
    ✓ should correctly format the timezone part 
  
    dateformat([now], [mask])
  
    ✓ should format `default` mask 
  
    ✓ should format `shortDate` mask 
  
    ✓ should format `mediumDate` mask 
  
    ✓ should format `longDate` mask 
  
    ✓ should format `fullDate` mask 
  
    ✓ should format `shortTime` mask 
  
    ✓ should format `mediumTime` mask 
  
    1) should format `longTime` mask
  
    ✓ should format `isoDate` mask 
  
    ✓ should format `isoTime` mask 
  
    ✓ should format `isoDateTime` mask 
  
    ✓ should format `isoUtcDateTime` mask 
  
    2) should format `expiresHeaderFormat` mask
  
    ✓ should use `default` mask, when `mask` is empty 
  
    isoUtcDateTime
  
    ✓ should correctly format the timezone part 
  
  
    14 passing (22ms)
    2 failing
  
    1) dateformat([now], [mask]) should format `longTime` mask:
  
AssertionError: '1:19:44 PM GMT' === '1:19:44 PM UTC'
+ expected - actual
  
-1:19:44 PM GMT
+1:19:44 PM UTC

at Context. («BUILDDIR»/test/test_formats.js:64:14)
at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:196:15)
at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:373:10)
at /usr/lib/nodejs/mocha/lib/runner.js:451:12
at next (/usr/lib/nodejs/mocha/lib/runner.js:298:14)
at /usr/lib/nodejs/mocha/lib/runner.js:308:7
at next (/usr/lib/nodejs/mocha/lib/runner.js:246:23)
at Immediate._onImmediate (/usr/lib/nodejs/mocha/lib/runner.js:275:5)
at processImmediate [as _immediateCallback] (timers.js:396:17)
  
    2) dateformat([now], [mask]) should format `expiresHeaderFormat` mask:
  
AssertionError: 'Wed, 26 Nov 2014 13:19:44 GMT' === 'Wed, 26 Nov 
2014 13:19:44 UTC'
+ expected - actual
  
-Wed, 26 Nov 2014 13:19:44 GMT
+Wed, 26 Nov 2014 13:19:44 UTC

at Context. («BUILDDIR»/test/test_formats.js:64:14)
at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:196:15)
at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:373:10)
at /usr/lib/nodejs/mocha/lib/runner.js:451:12
at next (/usr/lib/nodejs/mocha/lib/runner.js:298:14)
at /usr/lib/nodejs/mocha/lib/runner.js:308:7
at next (/usr/lib/nodejs/mocha/lib/runner.js:246:23)
at Immediate._onImmediate (/usr/lib/nodejs/mocha/lib/runner.js:275:5)
at processImmediate [as _immediateCallback] (timers.js:396:17)
  
  
  
  debian/rules:7: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 2
  make[1]: Leaving directory '«BUILDDIR»'
  debian/rules:3: recipe for target 'build' failed
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  […]

The full build log is attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-


node-dateformat.1.0.11-2.unstable.amd64.log.txt.gz
Description: Binary data
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel