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

Lucas Nussbaum lucas at debian.org
Tue Apr 12 20:22:28 BST 2022


Source: node-recast
Version: 0.21.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 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>>'
> tsc
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	ln -s ../. node_modules/recast
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mocha -r ts-node/register test/babel.ts
> 
> 
>   Babel
>     undefined basic printing (65ms)
>     undefined babel 6: should not wrap IIFE when reusing nodes
>     undefined should not disappear when surrounding code changes
>     undefined should not disappear when an import is added and `export` is used inline
>     undefined should not disappear when an import is added and `export default` is used inline
>     undefined should not print delimiters with type annotations
>     undefined should parenthesize ** operator arguments when lower precedence
>     undefined should parenthesize ** operator arguments as needed when same precedence
>     undefined should be able to replace top-level statements with leading empty lines
>     undefined should parse and print dynamic import(...)
>     undefined tolerates circular references (95ms)
>     undefined prints numbers in bases other than 10 without converting them
>     undefined prints the export-default-from syntax
>     undefined avoids extra semicolons on mutated blocks containing a 'use strict' directive
>     undefined should print typescript class elements modifiers
> 
> 
>   15 passing (230ms)
> 
> + mocha -r ts-node/register test/comments.ts
> 
> 
>   comments
>     undefined [acorn] attachment and reprinting
>     undefined [acorn] TrailingComments
>     undefined [acorn] BodyTrailingComments
>     undefined [acorn] ParamTrailingComments
>     undefined [acorn] StatementTrailingComments
>     undefined [acorn] ProtoAssignComment
>     undefined [acorn] should correctly attach to concise methods
>     undefined [acorn] should attach comments as configurable
>     undefined [acorn] should be reprinted when modified
>     undefined [acorn] should preserve stray non-comment syntax
>     undefined [acorn] should be reprinted even if dangling
>     undefined [acorn] should attach to program.body[0] instead of program
>     undefined [acorn] should not collapse multi line function definitions
>     undefined [acorn] should be pretty-printable in illegal positions
>     undefined [acorn] should preserve correctness when a return expression has a comment
>     undefined [acorn] should wrap in parens when the return expression has nested leftmost comment
>     undefined [acorn] should not wrap in parens when the return expression has an interior comment
>     undefined [acorn] should correctly handle a lonesome comment (alt 1)
>     undefined [acorn] should correctly handle a not-so-lonesome comment (alt 2 - trailing whitespace)
>     undefined [acorn] should correctly handle a lonesome comment (alt 3 - trailing whitespace)
>     undefined [acorn] should not reformat a return statement that is not modified
>     undefined [acorn] should correctly handle a removing the argument from a return
>     undefined [acorn] should preserve comments attached to EmptyStatement
>     undefined [babel] attachment and reprinting
>     undefined [babel] TrailingComments
>     undefined [babel] BodyTrailingComments
>     undefined [babel] ParamTrailingComments
>     undefined [babel] StatementTrailingComments
>     undefined [babel] ProtoAssignComment
>     undefined [babel] should correctly attach to concise methods
>     undefined [babel] should attach comments as configurable
>     undefined [babel] should be reprinted when modified
>     undefined [babel] should preserve stray non-comment syntax
>     undefined [babel] should be reprinted even if dangling
>     undefined [babel] should attach to program.body[0] instead of program
>     undefined [babel] should not collapse multi line function definitions
>     undefined [babel] should be pretty-printable in illegal positions
>     undefined [babel] should preserve correctness when a return expression has a comment
>     undefined [babel] should wrap in parens when the return expression has nested leftmost comment
>     undefined [babel] should not wrap in parens when the return expression has an interior comment
>     undefined [babel] should correctly handle a lonesome comment (alt 1)
>     undefined [babel] should correctly handle a not-so-lonesome comment (alt 2 - trailing whitespace)
>     undefined [babel] should correctly handle a lonesome comment (alt 3 - trailing whitespace)
>     undefined [babel] should not reformat a return statement that is not modified
>     undefined [babel] should correctly handle a removing the argument from a return
>     undefined [babel] should preserve comments attached to EmptyStatement
>     undefined [esprima] attachment and reprinting
>     undefined [esprima] TrailingComments
>     undefined [esprima] BodyTrailingComments
>     undefined [esprima] ParamTrailingComments
>     undefined [esprima] StatementTrailingComments
>     undefined [esprima] ProtoAssignComment
>     undefined [esprima] should correctly attach to concise methods
>     undefined [esprima] should attach comments as configurable
>     undefined [esprima] should be reprinted when modified
>     undefined [esprima] should preserve stray non-comment syntax
>     undefined [esprima] should be reprinted even if dangling
>     undefined [esprima] should attach to program.body[0] instead of program
>     undefined [esprima] should not collapse multi line function definitions
>     undefined [esprima] should be pretty-printable in illegal positions
>     undefined [esprima] should preserve correctness when a return expression has a comment
>     undefined [esprima] should wrap in parens when the return expression has nested leftmost comment
>     undefined [esprima] should not wrap in parens when the return expression has an interior comment
>     undefined [esprima] should correctly handle a lonesome comment (alt 1)
>     undefined [esprima] should correctly handle a not-so-lonesome comment (alt 2 - trailing whitespace)
>     undefined [esprima] should correctly handle a lonesome comment (alt 3 - trailing whitespace)
>     undefined [esprima] should not reformat a return statement that is not modified
>     undefined [esprima] should correctly handle a removing the argument from a return
>     undefined [esprima] should preserve comments attached to EmptyStatement
>     undefined [flow] attachment and reprinting
>     undefined [flow] TrailingComments
>     undefined [flow] BodyTrailingComments
>     undefined [flow] ParamTrailingComments
>     undefined [flow] StatementTrailingComments
>     undefined [flow] ProtoAssignComment
>     undefined [flow] should correctly attach to concise methods
>     undefined [flow] should attach comments as configurable
>     undefined [flow] should be reprinted when modified
>     undefined [flow] should preserve stray non-comment syntax
>     undefined [flow] should be reprinted even if dangling
>     undefined [flow] should attach to program.body[0] instead of program
>     undefined [flow] should not collapse multi line function definitions
>     undefined [flow] should be pretty-printable in illegal positions
>     undefined [flow] should preserve correctness when a return expression has a comment
>     undefined [flow] should wrap in parens when the return expression has nested leftmost comment
>     undefined [flow] should not wrap in parens when the return expression has an interior comment
>     undefined [flow] should correctly handle a lonesome comment (alt 1)
>     undefined [flow] should correctly handle a not-so-lonesome comment (alt 2 - trailing whitespace)
>     undefined [flow] should correctly handle a lonesome comment (alt 3 - trailing whitespace)
>     undefined [flow] should not reformat a return statement that is not modified
>     undefined [flow] should correctly handle a removing the argument from a return
>     undefined [flow] should preserve comments attached to EmptyStatement
>     undefined [typescript] attachment and reprinting
>     undefined [typescript] TrailingComments
>     undefined [typescript] BodyTrailingComments
>     undefined [typescript] ParamTrailingComments
>     undefined [typescript] StatementTrailingComments
>     undefined [typescript] ProtoAssignComment
>     undefined [typescript] should correctly attach to concise methods
>     undefined [typescript] should attach comments as configurable
>     undefined [typescript] should be reprinted when modified
>     undefined [typescript] should preserve stray non-comment syntax
>     undefined [typescript] should be reprinted even if dangling
>     undefined [typescript] should attach to program.body[0] instead of program
>     undefined [typescript] should not collapse multi line function definitions
>     undefined [typescript] should be pretty-printable in illegal positions
>     undefined [typescript] should preserve correctness when a return expression has a comment
>     undefined [typescript] should wrap in parens when the return expression has nested leftmost comment
>     undefined [typescript] should not wrap in parens when the return expression has an interior comment
>     undefined [typescript] should correctly handle a lonesome comment (alt 1)
>     undefined [typescript] should correctly handle a not-so-lonesome comment (alt 2 - trailing whitespace)
>     undefined [typescript] should correctly handle a lonesome comment (alt 3 - trailing whitespace)
>     undefined [typescript] should not reformat a return statement that is not modified
>     undefined [typescript] should correctly handle a removing the argument from a return
>     undefined [typescript] should preserve comments attached to EmptyStatement
> 
> 
>   115 passing (426ms)
> 
> + mocha -r ts-node/register test/identity.ts
> 
> 
>   identity
>     undefined test/data/regexp-props.js
>     undefined test/data/empty.js
>     undefined test/data/backbone.js
>     undefined test/lines.ts
>     undefined lib/lines.ts
>     undefined lib/printer.ts
> 
> 
>   6 passing (677ms)
> 
> + mocha -r ts-node/register test/jsx.ts
> 
> 
>   Babel JSX Compatibility
>     undefined should parse and print attribute comments
>     undefined should parse and print child comments
>     undefined should parse and print literal attributes
>     undefined should parse and print expression attributes
>     undefined should parse and print chidren
>     undefined should parse and print literal chidren
>     undefined should parse and print expression children
>     undefined should parse and print namespaced elements
>     undefined should parse and print fragments
> 
>   Esprima JSX Compatibility
>     undefined should parse and print attribute comments
>     undefined should parse and print child comments
>     undefined should parse and print literal attributes
>     undefined should parse and print expression attributes
>     undefined should parse and print chidren
>     undefined should parse and print literal chidren
>     undefined should parse and print expression children
>     undefined should parse and print namespaced elements
>     - should parse and print fragments
> 
> 
>   17 passing (94ms)
>   1 pending
> 
> + mocha -r ts-node/register test/lines.ts
> 
> 
>   lines
>     undefined FromString
>     undefined ToString
>     undefined EachPos
>     undefined CharAt
>     undefined Concat
>     undefined Empty
>     undefined SingleLine
>     undefined Slice (199ms)
>     undefined GetSourceLocation
>     undefined Trim
>     undefined NoIndentEmptyLines
>     undefined CountSpaces
>     undefined IndentWithTabs
>     undefined GuessTabWidth
>     undefined ExoticWhitespace
>     line terminators
>       undefined can handle %0A as line terminator
>       undefined can handle %0D as line terminator
>       undefined can handle %u2028 as line terminator
>       undefined can handle %u2029 as line terminator
>       undefined can handle %0D%0A as line terminator
> 
> 
>   20 passing (280ms)
> 
> + mocha -r ts-node/register test/mapping.ts
> 
> 
>   source maps
>     undefined should generate correct mappings
>     undefined should compose with inputSourceMap
>     undefined should work when a child node becomes null
>     undefined should tolerate programs that become empty
> 
> 
>   4 passing (57ms)
> 
> + mocha -r ts-node/register test/parens-babylon.ts
> 
> 
>   babylon parens
>     undefined AwaitExpression
>     undefined YieldExpression
>     undefined decorative parens
>     undefined decorative parens which are also necessary
> 
> 
>   4 passing (47ms)
> 
> + mocha -r ts-node/register test/parens.ts
> 
> 
>   parens
>     undefined Arithmetic (581ms)
>     undefined Unary
>     undefined Binary
>     undefined Sequence
>     undefined NewExpression
>     undefined Numbers
>     undefined Assign
>     undefined Function
>     undefined ObjectLiteral
>     undefined ArrowFunctionExpression
>     undefined AwaitExpression
>     undefined YieldExpression
>     undefined ArrowFunctionExpression
>     undefined ReprintedParens
>     undefined don't reparenthesize valid IIFEs
>     undefined don't reparenthesize valid object literals
>     undefined don't parenthesize return statements with sequence expressions
>     undefined NegatedLoopCondition
>     undefined MisleadingExistingParens
>     undefined DiscretionaryParens
>     undefined should not be added to multiline boolean expressions
>     undefined should be added to callees that are function expressions
>     undefined issues #504 and #512
>     undefined should be added to bound arrow function expressions
>     undefined should be added to object destructuring assignment expressions
>     undefined regression test for issue #327
>     undefined regression test for issue #366
> 
> 
>   27 passing (732ms)
> 
> + mocha -r ts-node/register test/parser.ts
> 
> 
>   parser
>     undefined [acorn] empty source
>     undefined [acorn] parser basics (53ms)
>     undefined [acorn] LocationFixer
>     undefined [acorn] TabHandling
>     undefined [acorn] Only comment followed by space
>     undefined [babel] empty source
>     undefined [babel] parser basics (44ms)
>     undefined [babel] LocationFixer
>     undefined [babel] TabHandling (42ms)
>     undefined [babel] Only comment followed by space
>     undefined [esprima] empty source
>     undefined [esprima] parser basics
>     undefined [esprima] LocationFixer
>     undefined [esprima] TabHandling
>     undefined [esprima] Only comment followed by space
>     undefined [flow] empty source
>     undefined [flow] parser basics
>     undefined [flow] LocationFixer
>     undefined [flow] TabHandling
>     undefined [flow] Only comment followed by space
>     undefined [typescript] empty source
>     undefined [typescript] parser basics
>     undefined [typescript] LocationFixer
>     undefined [typescript] TabHandling
>     undefined [typescript] Only comment followed by space
>     undefined AlternateParser
> 
> 
>   26 passing (466ms)
> 
> + mocha -r ts-node/register test/patcher.ts
> 
> 
>   patcher
>     undefined Patcher
>     undefined GetIndent
>     undefined should patch return/throw/etc. arguments correctly
>     undefined should not add spaces to the beginnings of lines
>     undefined should handle function
> 
> 
>   5 passing (84ms)
> 
> + mocha -r ts-node/register test/syntax.ts
> 
> 
>   syntax
>     undefined Completeness (652ms)
> 
> 
>   1 passing (657ms)
> 
> + mocha -r ts-node/register test/typescript.ts
> 
> 
>   TypeScript
>     1) basic printing
>     undefined parens
> 
> 
>   1 passing (432ms)
>   1 failing
> 
>   1) TypeScript
>        basic printing:
>      SyntaxError: Initializers are not allowed in ambient contexts. (2:27)
>       at instantiate (node_modules/@babel/parser/src/parse-error/credentials.js:61:22)
>       at toParseError (node_modules/@babel/parser/src/parse-error.js:58:12)
>       at Object.raise (node_modules/@babel/parser/src/tokenizer/index.js:1736:19)
>       at Object.parseVarStatement (node_modules/@babel/parser/src/plugins/typescript/index.js:2565:16)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:391:21)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/plugins/typescript/index.js:2602:20)
>       at Object.parseStatement (node_modules/@babel/parser/src/parser/statement.js:329:17)
>       at Object.parseExportDeclaration (node_modules/@babel/parser/src/parser/statement.js:2127:17)
>       at Object.parseExportDeclaration (node_modules/@babel/parser/src/plugins/typescript/index.js:2842:15)
>       at Object.maybeParseExportDeclaration (node_modules/@babel/parser/src/parser/statement.js:2066:31)
>       at Object.parseExport (node_modules/@babel/parser/src/parser/statement.js:1986:29)
>       at Object.parseExport (node_modules/@babel/parser/src/plugins/typescript/index.js:2509:22)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:431:25)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/plugins/typescript/index.js:2602:20)
>       at Object.parseStatement (node_modules/@babel/parser/src/parser/statement.js:329:17)
>       at Object.parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:1082:25)
>       at Object.tsParseModuleBlock (node_modules/@babel/parser/src/plugins/typescript/index.js:1721:12)
>       at Object.tsParseModuleOrNamespaceDeclaration (node_modules/@babel/parser/src/plugins/typescript/index.js:1748:26)
>       at Object.tsParseDeclaration (node_modules/@babel/parser/src/plugins/typescript/index.js:1999:25)
>       at cb (node_modules/@babel/parser/src/plugins/typescript/index.js:1918:23)
>       at Object.tsInAmbientContext (node_modules/@babel/parser/src/plugins/typescript/index.js:3501:16)
>       at Object.tsTryParseDeclare (node_modules/@babel/parser/src/plugins/typescript/index.js:1867:19)
>       at Object.tsParseExpressionStatement (node_modules/@babel/parser/src/plugins/typescript/index.js:1939:36)
>       at Object.parseExpressionStatement (node_modules/@babel/parser/src/plugins/typescript/index.js:2743:18)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:477:19)
>       at Object.parseStatementContent (node_modules/@babel/parser/src/plugins/typescript/index.js:2602:20)
>       at Object.parseStatement (node_modules/@babel/parser/src/parser/statement.js:329:17)
>       at Object.parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:1082:25)
>       at Object.parseBlockBody (node_modules/@babel/parser/src/parser/statement.js:1058:10)
>       at Object.parseProgram (node_modules/@babel/parser/src/parser/statement.js:214:10)
>       at Object.parseTopLevel (node_modules/@babel/parser/src/parser/statement.js:197:25)
>       at Object.parse (node_modules/@babel/parser/src/parser/index.js:41:10)
>       at Object.parse (node_modules/@babel/parser/src/plugins/typescript/index.js:3580:20)
>       at Object.parse (node_modules/@babel/parser/src/index.js:58:38)
>       at Object.parse (parsers/typescript.js:17:27)
>       at Object.parse (lib/parser.js:23:30)
>       at check (test/typescript.ts:19:26)
>       at Context.<anonymous> (test/typescript.ts:276:5)
>       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:678:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:801:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:593:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:603:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:486:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:571:5)
>       at processImmediate (internal/timers.js:464:21)
> 
> 
> 
> 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/04/12/node-recast_0.21.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&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