[Pkg-javascript-devel] Bug#1022407: node-url-loader: 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:19 BST 2022
Source: node-url-loader
Version: 4.1.1-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>>'
> babeljs src -d dist --ignore \"src/**/*.test.js\" --copy-files
> Successfully compiled 3 files with Babel (409ms).
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> mkdir -p node_modules
> ln -s ../. node_modules/url-loader
> /bin/sh -ex debian/tests/pkg-js/test
> + NODE_ENV=test jest --ci test/cjs.test.js test/utils/normalizeFallback.test.js
> FAIL test/utils/normalizeFallback.test.js
> ● normalizeFallback › undefined
>
> expect(received).toMatchSnapshot()
>
> Snapshot name: `normalizeFallback undefined 1`
>
> - Snapshot - 2
> + Received + 2
>
> - Object {
> + {
> "loader": "file-loader",
> - "options": Object {
> + "options": {
> "limit": 8192,
> "name": "name-for-url-loader.[ext]",
> },
> }
>
> 12 | });
> 13 |
> > 14 | expect(result).toMatchSnapshot();
> | ^
> 15 | });
> 16 |
> 17 | test('string', () => {
>
> at Object.<anonymous> (test/utils/normalizeFallback.test.js:14:20)
>
> ● normalizeFallback › string
>
> expect(received).toMatchSnapshot()
>
> Snapshot name: `normalizeFallback string 1`
>
> - Snapshot - 2
> + Received + 2
>
> - Object {
> + {
> "loader": "file-loader",
> - "options": Object {
> + "options": {
> "limit": 8192,
> "name": "name-for-url-loader.[ext]",
> },
> }
>
> 21 | });
> 22 |
> > 23 | expect(result).toMatchSnapshot();
> | ^
> 24 | });
> 25 |
> 26 | test('string-with-query', () => {
>
> at Object.<anonymous> (test/utils/normalizeFallback.test.js:23:20)
>
> ● normalizeFallback › string-with-query
>
> expect(received).toMatchSnapshot()
>
> Snapshot name: `normalizeFallback string-with-query 1`
>
> - Snapshot - 2
> + Received + 2
>
> - Object {
> + {
> "loader": "file-loader",
> - "options": Object {
> + "options": {
> "limit": 8192,
> "name": "name-for-file-loader.[ext]",
> },
> }
>
> 30 | );
> 31 |
> > 32 | expect(result).toMatchSnapshot();
> | ^
> 33 | });
> 34 |
> 35 | test('object', () => {
>
> at Object.<anonymous> (test/utils/normalizeFallback.test.js:32:20)
>
> ● normalizeFallback › object
>
> expect(received).toMatchSnapshot()
>
> Snapshot name: `normalizeFallback object 1`
>
> - Snapshot - 2
> + Received + 2
>
> - Object {
> + {
> "loader": "file-loader",
> - "options": Object {
> + "options": {
> "limit": 8192,
> "name": "name-for-url-loader.[ext]",
> },
> }
>
> 39 | );
> 40 |
> > 41 | expect(result).toMatchSnapshot();
> | ^
> 42 | });
> 43 |
> 44 | test('object-with-options', () => {
>
> at Object.<anonymous> (test/utils/normalizeFallback.test.js:41:20)
>
> ● normalizeFallback › object-with-options
>
> expect(received).toMatchSnapshot()
>
> Snapshot name: `normalizeFallback object-with-options 1`
>
> - Snapshot - 2
> + Received + 2
>
> - Object {
> + {
> "loader": "file-loader",
> - "options": Object {
> + "options": {
> "limit": 8192,
> "name": "name-for-file-loader.[ext]",
> },
> }
>
> 51 | );
> 52 |
> > 53 | expect(result).toMatchSnapshot();
> | ^
> 54 | });
> 55 | });
> 56 |
>
> at Object.<anonymous> (test/utils/normalizeFallback.test.js:53:20)
>
> › 5 snapshots failed.
> PASS test/cjs.test.js
>
> Snapshot Summary
> › 5 snapshots failed from 1 test suite. Inspect your code changes or re-run jest with `-u` to update them.
>
> Test Suites: 1 failed, 1 passed, 2 total
> Tests: 5 failed, 2 passed, 7 total
> Snapshots: 5 failed, 5 total
> Time: 3.151 s
> Ran all test suites matching /test\/cjs.test.js|test\/utils\/normalizeFallback.test.js/i.
> 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-url-loader_4.1.1-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