[Pkg-javascript-devel] Bug#1022417: node-js-tokens: FTBFS: ln: failed to create symbolic link 'build/.': File exists

Lucas Nussbaum lucas at debian.org
Sun Oct 23 14:22:00 BST 2022


Source: node-js-tokens
Version: 8.0.0-1
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>>'
> node build.js
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../debian/tests/test_modules/test262-parser-tests node_modules/test262-parser-tests
> 	ln -s ../build node_modules/js-tokens
> 	/bin/sh -ex debian/tests/pkg-js/test
> + ln -s . build
> ln: failed to create symbolic link 'build/.': File exists
> + true
> + jest --ci -u
> FAIL test/nesting.test.js
>   ● Test suite failed to run
> 
>     Jest: Couldn't locate all inline snapshots.
> 
>       225 |   });
>       226 |   if (remainingSnapshots.size) {
>     > 227 |     throw new Error("Jest: Couldn't locate all inline snapshots.");
>           |           ^
>       228 |   }
>       229 | };
>       230 | const runPrettier = (prettier, sourceFilePath, sourceFileWithSnapshots, snapshotMatcherNames) => {
> 
>       at traverseAst (../../../usr/share/nodejs/jest-snapshot/build/InlineSnapshots.js:227:11)
> 
> FAIL test/template.test.js
>   ● Test suite failed to run
> 
>     Jest: Couldn't locate all inline snapshots.
> 
>       225 |   });
>       226 |   if (remainingSnapshots.size) {
>     > 227 |     throw new Error("Jest: Couldn't locate all inline snapshots.");
>           |           ^
>       228 |   }
>       229 | };
>       230 | const runPrettier = (prettier, sourceFilePath, sourceFileWithSnapshots, snapshotMatcherNames) => {
> 
>       at traverseAst (../../../usr/share/nodejs/jest-snapshot/build/InlineSnapshots.js:227:11)
> 
> FAIL test/example.test.js
>   ● Test suite failed to run
> 
>     Jest: Couldn't locate all inline snapshots.
> 
>       225 |   });
>       226 |   if (remainingSnapshots.size) {
>     > 227 |     throw new Error("Jest: Couldn't locate all inline snapshots.");
>           |           ^
>       228 |   }
>       229 | };
>       230 | const runPrettier = (prettier, sourceFilePath, sourceFileWithSnapshots, snapshotMatcherNames) => {
> 
>       at traverseAst (../../../usr/share/nodejs/jest-snapshot/build/InlineSnapshots.js:227:11)
> 
> FAIL test/jsx.test.js
>   ● Test suite failed to run
> 
>     Jest: Couldn't locate all inline snapshots.
> 
>       225 |   });
>       226 |   if (remainingSnapshots.size) {
>     > 227 |     throw new Error("Jest: Couldn't locate all inline snapshots.");
>           |           ^
>       228 |   }
>       229 | };
>       230 | const runPrettier = (prettier, sourceFilePath, sourceFileWithSnapshots, snapshotMatcherNames) => {
> 
>       at traverseAst (../../../usr/share/nodejs/jest-snapshot/build/InlineSnapshots.js:227:11)
> 
> PASS test/fixtures.test.js (5.723 s)
> PASS test/index.test.js (6.496 s)
> PASS test/expression-vs-operator.test.js (10.362 s)
> 
> Test Suites: 4 failed, 3 passed, 7 total
> Tests:       25507 passed, 25507 total
> Snapshots:   0 total
> Time:        11.799 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-js-tokens_8.0.0-1_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