[Pkg-javascript-devel] Bug#917757: node-object-path: FTBFS: tests failed

Lucas Nussbaum lucas at debian.org
Sat Dec 29 22:39:40 GMT 2018


Source: node-object-path
Version: 0.11.3-1
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20181229 ftbfs-buster

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> mocha test.js -R spec
> 
> 
>   get
>     ✓ should return the value using unicode key
>     ✓ should return the value using dot in key
>     ✓ should return the value under shallow object
>     ✓ should work with number path
>     ✓ should return the value under deep object
>     ✓ should return the value under array
>     ✓ should return the value under array deep
>     ✓ should return undefined for missing values under object
>     ✓ should return undefined for missing values under array
>     ✓ should return the value under integer-like key
>     ✓ should return the default value when the key doesnt exist
>     ✓ should return the default value when path is empty
>     ✓ should return the default value when object is null or undefined
>     ✓ should not fail on an object with a null prototype
>     ✓ should skip non own properties
> 
>   set
>     ✓ should set the value using unicode key
>     ✓ should set the value using dot in key
>     1) should set value under shallow object
>     2) should set value using number path
>     3) should set value under deep object
>     4) should set value under array
>     5) should create intermediate objects
>     6) should create intermediate arrays
>     ✓ should set value under integer-like key
>     ✓ should set value under empty array
> 
>   push
>     7) should push value to existing array using unicode key
>     ✓ should push value to existing array using dot key
>     8) should push value to existing array
>     9) should push value to new array
>     10) should push value to existing array using number path
> 
>   ensureExists
>     11) should create the path if it does not exists
>     ✓ should return the object if path is empty
>     ✓ Issue #26
> 
>   coalesce
>     ✓ should return the first non-undefined value
>     ✓ should work with falsy values (null, 0, '', false)
>     ✓ returns defaultValue if no paths found
>     ✓ works with unicode and dot keys
> 
>   empty
>     ✓ should ignore invalid arguments safely
>     ✓ should empty each path according to their types
> 
>   del
>     ✓ should work with number path
>     12) should delete deep paths
>     ✓ should remove items from existing array
> 
>   insert
>     13) should insert value into existing array
>     14) should create intermediary array
>     15) should insert in another index
>     ✓ should handle sparse array
> 
>   has
>     ✓ should return false for empty object
>     ✓ should handle empty paths properly
>     ✓ should test under shallow object
>     ✓ should work with number path
>     ✓ should test under deep object
>     ✓ should test value under array
>     ✓ should test the value under array deep
>     ✓ should test the value under integer-like key
>     ✓ should distinct nonexistent key and key = undefined
>     ✓ should work with deep undefined/null values
> 
>   bind object
>     ✓ should return the value under shallow object
>     16) should set value under shallow object
>     17) should push value to existing array
>     18) should create the path if it does not exists
>     ✓ should return the first non-undefined value
>     ✓ should empty each path according to their types
>     19) should delete deep paths
>     20) should insert value into existing array
>     ✓ should test under shallow object
> 
>   Don't access not own properties [default]
>     ✓ should not get a not own property
>     ✓ should set a not own property on the instance (not the prototype)
>     ✓ has should return false on a not own property
>     ✓ empty should not empty on a not own property
>     ✓ del should not delete not own property
> 
>   Access own properties [optional]
>     ✓ should get a not own property
>     ✓ should set a deep not own property on the prototype (if exists)
>     ✓ has should return true on a not own property
>     ✓ empty should empty a not own property
>     ✓ del should delete a not own property
> 
> 
>   55 passing (37ms)
>   20 failing
> 
>   1) set
>        should set value under shallow object:
>      AssertionError: expected { Object (a, b, ...) } to have deep property 'c.m'
>       at Context.<anonymous> (test.js:164:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   2) set
>        should set value using number path:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.d.0'
>       at Context.<anonymous> (test.js:173:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   3) set
>        should set value under deep object:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c'
>       at Context.<anonymous> (test.js:179:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   4) set
>        should set value under array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.e.1.g'
>       at Context.<anonymous> (test.js:188:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   5) set
>        should create intermediate objects:
>      AssertionError: expected { Object (a, b, ...) } to have deep property 'c.d.e.f'
>       at Context.<anonymous> (test.js:202:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   6) set
>        should create intermediate arrays:
>      AssertionError: expected { Object (a, b, ...) } to have deep property 'c.0.1.m'
>       at Context.<anonymous> (test.js:213:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   7) push
>        should push value to existing array using unicode key:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.ነc.0'
>       at Context.<anonymous> (test.js:245:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   8) push
>        should push value to existing array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c.0'
>       at Context.<anonymous> (test.js:259:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   9) push
>        should push value to new array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.h.0'
>       at Context.<anonymous> (test.js:268:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   10) push
>        should push value to existing array using number path:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.e.0.0'
>       at Context.<anonymous> (test.js:277:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   11) ensureExists
>        should create the path if it does not exists:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.g.1.l'
>       at Context.<anonymous> (test.js:288:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   12) del
>        should delete deep paths:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.g.1.0'
>       at Context.<anonymous> (test.js:466:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   13) insert
>        should insert value into existing array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c.0'
>       at Context.<anonymous> (test.js:511:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   14) insert
>        should create intermediary array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c.0.0'
>       at Context.<anonymous> (test.js:519:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   15) insert
>        should insert in another index:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.d.1'
>       at Context.<anonymous> (test.js:526:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   16) bind object
>        should set value under shallow object:
>      AssertionError: expected { Object (a, b, ...) } to have deep property 'c.m'
>       at Context.<anonymous> (test.js:650:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   17) bind object
>        should push value to existing array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c.0'
>       at Context.<anonymous> (test.js:661:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   18) bind object
>        should create the path if it does not exists:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.g.1.l'
>       at Context.<anonymous> (test.js:673:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   19) bind object
>        should delete deep paths:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.g.1.0'
>       at Context.<anonymous> (test.js:761:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
>   20) bind object
>        should insert value into existing array:
>      AssertionError: expected { Object (a, b) } to have deep property 'b.c.0'
>       at Context.<anonymous> (test.js:786:30)
>       at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:354:21)
>       at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:346:7)
>       at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:442:10)
>       at /usr/lib/nodejs/mocha/lib/runner.js:560:12
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:356:14)
>       at /usr/lib/nodejs/mocha/lib/runner.js:366:7
>       at next (/usr/lib/nodejs/mocha/lib/runner.js:290:14)
>       at Immediate.<anonymous> (/usr/lib/nodejs/mocha/lib/runner.js:334:5)
> 
> 
> 
> make[1]: *** [debian/rules:13: override_dh_auto_test] Error 20

The full build log is available from:
   http://aws-logs.debian.net/2018/12/29/node-object-path_0.11.3-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-javascript-devel mailing list