[Pkg-javascript-devel] Bug#1022367: node-deep-for-each: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Sun Oct 23 14:15:11 BST 2022


Source: node-deep-for-each
Version: 3.0.0-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221023 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> BABEL_ENV=commonjs babeljs-7 --presets '@babel/preset-env' --plugins 'babel-plugin-add-module-exports' src -d lib
> Successfully compiled 1 file with Babel (565ms).
> BABEL_ENV=es babeljs-7 src -d es
> Successfully compiled 1 file with Babel (354ms).
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../. node_modules/deep-for-each
> 	/bin/sh -ex debian/tests/pkg-js/test
> + jest --ci
> FAIL test/test.js
>   ✓ should not call fn on primitive input (3 ms)
>   ✕ should iterate object entries recursively (11 ms)
>   ✕ should iterate arrays recursively (2 ms)
>   ✕ should iterate array/objects recursively (4 ms)
>   ✕ should use the up to date value (in case the forEach callback modified it) (2 ms)
>   ✓ should make `this` equal to the subject on the iterator (1 ms)
> 
>   ● should iterate object entries recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate object entries recursively 1`
> 
>     - Snapshot  - 3
>     + Received  + 3
> 
>     - Array [
>     -   Array [
>     + [
>     +   [
>           null,
>           "foo",
>     -     Object {
>     +     {
>             "foo": null,
>           },
>           "foo",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:31:5)
> 
>   ● should iterate object entries recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate object entries recursively 2`
> 
>     - Snapshot  - 3
>     + Received  + 3
> 
>     - Array [
>     -   Array [
>     + [
>     +   [
>           undefined,
>           "foo",
>     -     Object {
>     +     {
>             "foo": undefined,
>           },
>           "foo",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:34:5)
> 
>   ● should iterate object entries recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate object entries recursively 3`
> 
>     - Snapshot  - 7
>     + Received  + 7
> 
>     - Array [
>     -   Array [
>     -     Object {
>     + [
>     +   [
>     +     {
>             "bar": null,
>           },
>           "foo",
>     -     Object {
>     -       "foo": Object {
>     +     {
>     +       "foo": {
>               "bar": null,
>             },
>           },
>           "foo",
>         ],
>     -   Array [
>     +   [
>           null,
>           "bar",
>     -     Object {
>     +     {
>             "bar": null,
>           },
>           "foo.bar",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:37:5)
> 
>   ● should iterate object entries recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate object entries recursively 4`
> 
>     - Snapshot  - 7
>     + Received  + 7
> 
>     - Array [
>     -   Array [
>     -     Object {
>     + [
>     +   [
>     +     {
>             "bar": undefined,
>           },
>           "foo",
>     -     Object {
>     -       "foo": Object {
>     +     {
>     +       "foo": {
>               "bar": undefined,
>             },
>           },
>           "foo",
>         ],
>     -   Array [
>     +   [
>           undefined,
>           "bar",
>     -     Object {
>     +     {
>             "bar": undefined,
>           },
>           "foo.bar",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:40:5)
> 
>   ● should iterate object entries recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate object entries recursively 5`
> 
>     - Snapshot  - 11
>     + Received  + 11
> 
>     @@ -1,46 +1,46 @@
>     - Array [
>     -   Array [
>     -     Object {
>     + [
>     +   [
>     +     {
>             "bar": null,
>             "baz": 1,
>             "bez": "  ",
>           },
>           "foo",
>     -     Object {
>     -       "foo": Object {
>     +     {
>     +       "foo": {
>               "bar": null,
>               "baz": 1,
>               "bez": "  ",
>             },
>           },
>           "foo",
>         ],
>     -   Array [
>     +   [
>           null,
>           "bar",
>     -     Object {
>     +     {
>             "bar": null,
>             "baz": 1,
>             "bez": "  ",
>           },
>           "foo.bar",
>         ],
>     -   Array [
>     +   [
>           1,
>           "baz",
>     -     Object {
>     +     {
>             "bar": null,
>             "baz": 1,
>             "bez": "  ",
>           },
>           "foo.baz",
>         ],
>     -   Array [
>     +   [
>           "  ",
>           "bez",
>     -     Object {
>     +     {
>             "bar": null,
>             "baz": 1,
>             "bez": "  ",
>           },
>           "foo.bez",
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:43:5)
> 
>   ● should iterate arrays recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate arrays recursively 1`
> 
>     - Snapshot  - 3
>     + Received  + 3
> 
>     - Array [
>     -   Array [
>     + [
>     +   [
>           null,
>           0,
>     -     Array [
>     +     [
>             null,
>           ],
>           "[0]",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:48:5)
> 
>   ● should iterate arrays recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate arrays recursively 2`
> 
>     - Snapshot  - 3
>     + Received  + 3
> 
>     - Array [
>     -   Array [
>     + [
>     +   [
>           undefined,
>           0,
>     -     Array [
>     +     [
>             undefined,
>           ],
>           "[0]",
>         ],
>       ]
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:51:5)
> 
>   ● should iterate arrays recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate arrays recursively 3`
> 
>     - Snapshot  - 16
>     + Received  + 16
> 
>     @@ -1,76 +1,76 @@
>     - Array [
>     -   Array [
>     + [
>     +   [
>           1,
>           0,
>     -     Array [
>     +     [
>             1,
>     -       Array [
>     +       [
>               "foo",
>               "",
>               null,
>               "  ",
>             ],
>           ],
>           "[0]",
>         ],
>     -   Array [
>     -     Array [
>     +   [
>     +     [
>             "foo",
>             "",
>             null,
>             "  ",
>           ],
>           1,
>     -     Array [
>     +     [
>             1,
>     -       Array [
>     +       [
>               "foo",
>               "",
>               null,
>               "  ",
>             ],
>           ],
>           "[1]",
>         ],
>     -   Array [
>     +   [
>           "foo",
>           0,
>     -     Array [
>     +     [
>             "foo",
>             "",
>             null,
>             "  ",
>           ],
>           "[1][0]",
>         ],
>     -   Array [
>     +   [
>           "",
>           1,
>     -     Array [
>     +     [
>             "foo",
>             "",
>             null,
>             "  ",
>           ],
>           "[1][1]",
>         ],
>     -   Array [
>     +   [
>           null,
>           2,
>     -     Array [
>     +     [
>             "foo",
>             "",
>             null,
>             "  ",
>           ],
>           "[1][2]",
>         ],
>     -   Array [
>     +   [
>           "  ",
>           3,
>     -     Array [
>     +     [
>             "foo",
>             "",
>             null,
>             "  ",
>           ],
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:54:5)
> 
>   ● should iterate array/objects recursively
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should iterate array/objects recursively 1`
> 
>     - Snapshot  - 57
>     + Received  + 57
> 
>     @@ -1,34 +1,34 @@
>     - Array [
>     -   Array [
>     -     Array [
>     -       Object {
>     -         "cars": Object {
>     + [
>     +   [
>     +     [
>     +       {
>     +         "cars": {
>                 "aston": "",
>                 "audi": "nice",
>                 "vw": "good",
>               },
>     -         "colors": Array [
>     +         "colors": [
>                 "red",
>                 " green ",
>                 "",
>               ],
>             },
>             undefined,
>             "",
>           ],
>           "something",
>     -     Object {
>     +     {
>             "foo": "bar",
>     -       "something": Array [
>     -         Object {
>     -           "cars": Object {
>     +       "something": [
>     +         {
>     +           "cars": {
>                   "aston": "",
>                   "audi": "nice",
>                   "vw": "good",
>                 },
>     -           "colors": Array [
>     +           "colors": [
>                   "red",
>                   " green ",
>                   "",
>                 ],
>               },
>     @@ -36,199 +36,199 @@
>               "",
>             ],
>           },
>           "something",
>         ],
>     -   Array [
>     -     Object {
>     -       "cars": Object {
>     +   [
>     +     {
>     +       "cars": {
>               "aston": "",
>               "audi": "nice",
>               "vw": "good",
>             },
>     -       "colors": Array [
>     +       "colors": [
>               "red",
>               " green ",
>               "",
>             ],
>           },
>           0,
>     -     Array [
>     -       Object {
>     -         "cars": Object {
>     +     [
>     +       {
>     +         "cars": {
>                 "aston": "",
>                 "audi": "nice",
>                 "vw": "good",
>               },
>     -         "colors": Array [
>     +         "colors": [
>                 "red",
>                 " green ",
>                 "",
>               ],
>             },
>             undefined,
>             "",
>           ],
>           "something[0]",
>         ],
>     -   Array [
>     -     Array [
>     +   [
>     +     [
>             "red",
>             " green ",
>             "",
>           ],
>           "colors",
>     -     Object {
>     -       "cars": Object {
>     +     {
>     +       "cars": {
>               "aston": "",
>               "audi": "nice",
>               "vw": "good",
>             },
>     -       "colors": Array [
>     +       "colors": [
>               "red",
>               " green ",
>               "",
>             ],
>           },
>           "something[0].colors",
>         ],
>     -   Array [
>     +   [
>           "red",
>           0,
>     -     Array [
>     +     [
>             "red",
>             " green ",
>             "",
>           ],
>           "something[0].colors[0]",
>         ],
>     -   Array [
>     +   [
>           " green ",
>           1,
>     -     Array [
>     +     [
>             "red",
>             " green ",
>             "",
>           ],
>           "something[0].colors[1]",
>         ],
>     -   Array [
>     +   [
>           "",
>           2,
>     -     Array [
>     +     [
>             "red",
>             " green ",
>             "",
>           ],
>           "something[0].colors[2]",
>         ],
>     -   Array [
>     -     Object {
>     +   [
>     +     {
>             "aston": "",
>             "audi": "nice",
>             "vw": "good",
>           },
>           "cars",
>     -     Object {
>     -       "cars": Object {
>     +     {
>     +       "cars": {
>               "aston": "",
>               "audi": "nice",
>               "vw": "good",
>             },
>     -       "colors": Array [
>     +       "colors": [
>               "red",
>               " green ",
>               "",
>             ],
>           },
>           "something[0].cars",
>         ],
>     -   Array [
>     +   [
>           "nice",
>           "audi",
>     -     Object {
>     +     {
>             "aston": "",
>             "audi": "nice",
>             "vw": "good",
>           },
>           "something[0].cars.audi",
>         ],
>     -   Array [
>     +   [
>           "good",
>           "vw",
>     -     Object {
>     +     {
>             "aston": "",
>             "audi": "nice",
>             "vw": "good",
>           },
>           "something[0].cars.vw",
>         ],
>     -   Array [
>     +   [
>           "",
>           "aston",
>     -     Object {
>     +     {
>             "aston": "",
>             "audi": "nice",
>             "vw": "good",
>           },
>           "something[0].cars.aston",
>         ],
>     -   Array [
>     +   [
>           undefined,
>           1,
>     -     Array [
>     -       Object {
>     -         "cars": Object {
>     +     [
>     +       {
>     +         "cars": {
>                 "aston": "",
>                 "audi": "nice",
>                 "vw": "good",
>               },
>     -         "colors": Array [
>     +         "colors": [
>                 "red",
>                 " green ",
>                 "",
>               ],
>             },
>             undefined,
>             "",
>           ],
>           "something[1]",
>         ],
>     -   Array [
>     +   [
>           "",
>           2,
>     -     Array [
>     -       Object {
>     -         "cars": Object {
>     +     [
>     +       {
>     +         "cars": {
>                 "aston": "",
>                 "audi": "nice",
>                 "vw": "good",
>               },
>     -         "colors": Array [
>     +         "colors": [
>                 "red",
>                 " green ",
>                 "",
>               ],
>             },
>             undefined,
>             "",
>           ],
>           "something[2]",
>         ],
>     -   Array [
>     +   [
>           "bar",
>           "foo",
>     -     Object {
>     +     {
>             "foo": "bar",
>     -       "something": Array [
>     -         Object {
>     -           "cars": Object {
>     +       "something": [
>     +         {
>     +           "cars": {
>                   "aston": "",
>                   "audi": "nice",
>                   "vw": "good",
>                 },
>     -           "colors": Array [
>     +           "colors": [
>                   "red",
>                   " green ",
>                   "",
>                 ],
>               },
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:69:5)
> 
>   ● should use the up to date value (in case the forEach callback modified it)
> 
>     expect(received).toMatchSnapshot()
> 
>     Snapshot name: `should use the up to date value (in case the forEach callback modified it) 1`
> 
>     - Snapshot  - 28
>     + Received  + 28
> 
>     @@ -1,69 +1,69 @@
>     - Array [
>     -   Array [
>     -     Array [
>     -       Array [
>     + [
>     +   [
>     +     [
>     +       [
>               1,
>     -         Object {},
>     +         {},
>             ],
>           ],
>           "arr",
>     -     Object {
>     -       "arr": Array [
>     -         Array [
>     +     {
>     +       "arr": [
>     +         [
>                 1,
>     -           Object {},
>     +           {},
>               ],
>             ],
>             "foo": "bar",
>           },
>           "arr",
>         ],
>     -   Array [
>     -     Array [
>     +   [
>     +     [
>             1,
>     -       Object {
>     +       {
>               "foo": "bar",
>             },
>           ],
>           0,
>     -     Array [
>     -       Array [
>     +     [
>     +       [
>               1,
>     -         Object {},
>     +         {},
>             ],
>           ],
>           "arr[0]",
>         ],
>     -   Array [
>     +   [
>           1,
>           0,
>     -     Array [
>     +     [
>             1,
>     -       Object {},
>     +       {},
>           ],
>           "arr[0][0]",
>         ],
>     -   Array [
>     -     Object {},
>     +   [
>     +     {},
>           1,
>     -     Array [
>     +     [
>             1,
>     -       Object {},
>     +       {},
>           ],
>           "arr[0][1]",
>         ],
>     -   Array [
>     -     Object {
>     +   [
>     +     {
>             "bar": "baz",
>           },
>           "foo",
>     -     Object {
>     -       "arr": Array [
>     -         Array [
>     +     {
>     +       "arr": [
>     +         [
>                 1,
>     -           Object {},
>     +           {},
>               ],
>             ],
>             "foo": "bar",
>           },
>           "foo",
> 
>        6 |
>        7 | function takeSnapshot() {
>     >  8 |     expect(iterator.mock.calls).toMatchSnapshot();
>          |                                 ^
>        9 |     jest.resetAllMocks();
>       10 | }
>       11 |
> 
>       at takeSnapshot (test/test.js:8:33)
>       at Object.<anonymous> (test/test.js:86:5)
> 
>  › 10 snapshots failed.
> Snapshot Summary
>  › 10 snapshots failed from 1 test suite. Inspect your code changes or re-run jest with `-u` to update them.
> 
> Test Suites: 1 failed, 1 total
> Tests:       4 failed, 2 passed, 6 total
> Snapshots:   10 failed, 10 total
> Time:        1.004 s
> Ran all test suites.
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/10/23/node-deep-for-each_3.0.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list