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

Lucas Nussbaum lucas at debian.org
Sun Feb 13 07:42:21 GMT 2022


Source: node-ast-types
Version: 0.15.2-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220212 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 ../debian/tests/test_modules/flow-parser node_modules/flow-parser
> 	ln -s ../debian/tests/test_modules/reify node_modules/reify
> 	ln -s ../. node_modules/ast-types
> 	/bin/sh -ex debian/tests/pkg-js/test
> + test  != 
> + mocha
> 6295
> 48 ms
> 
> 
>   namedTypes
>     undefined should work as a namespace
>     undefined should work as a type
>     undefined should work as a value
> 
>   types.namedTypes
>     undefined should work as a namespace
>     undefined should work as a type
>     undefined should work as a value
> 
>   basic type checking
>     undefined should exhibit sanity
> 
>   builders
>     undefined should build types using positional arguments
>     undefined should build types using `.from`
> 
>   isSupertypeOf
>     undefined should report correct supertype relationships
> 
>   supertype lookup
>     undefined should resolve the most precise supertypes
>     undefined should properly linearize the inheritance hierarchy
>     undefined should trigger an AssertionError for unknown types
> 
>   shallow and deep checks
>     undefined should work when shallow
>     undefined should work when deep
>     undefined should fail when expected
>     undefined should disagree according to depth
> 
>   whole-program validation
>     undefined should validate test/data/backbone.js with Esprima (110ms)
>     undefined should validate test/data/backbone.js with Babylon (131ms)
>     undefined should validate test/data/jquery-1.9.1.js with Esprima (250ms)
>     undefined should validate test/data/jquery-1.9.1.js with Babylon (340ms)
> 
>   esprima Syntax types
>     1) should all be buildable
>     undefined builders for subtypes of Expression should have equivalent ExpressionStatement builders
> 
>   types.getFieldValue
>     undefined should work for explicit fields
>     undefined should work for implicit/default fields
>     undefined should work for explicitly undefined fields
>     undefined should handle undefined objects
> 
>   types.eachField
>     undefined should give correct keys for supertypes
>     undefined should work for non-buildable types
>     undefined should respect hidden fields
>     undefined should complain about invalid types
>     undefined should infer SourceLocation types
> 
>   types.visit
>     undefined should have correct .parent path
>     undefined should abort subtree traversal when false returned
>     undefined this.abort() should abort entire traversal
>     undefined this.abort() should be cancelable
>     undefined should visit comments
> 
>   path traversal
>     undefined should accept root paths as well as AST nodes
> 
>   replacing the root
>     undefined should be possible
> 
>   NodePath
>     undefined should have the expected type hierarchy
>     undefined should have sane values, nodes, parents
>     undefined should support .needsParens()
>     undefined should support .needsParens(true)
>     undefined should prune redundant variable declaration nodes
>     undefined should prune redundant expression statement nodes
>     undefined should prune redundant if statement node if no consequent and alternate remain after prune
>     undefined should modify if statement node if consequent is pruned and alternate remains
>     undefined should modify if statement node if consequent is pruned, alternate remains with no double negation
> 
>   path.replace
>     undefined should support replacement with a single node
>     undefined should support replacement in an array with a single node
>     undefined should support replacement with nothing
>     undefined should support replacement with itself plus more in an array
>     undefined should not throw when replacing the same node twice
> 
>   global scope
>     undefined should be reachable from nested scopes
>     undefined should be found by .lookup and .declares
> 
>   scope methods
>     undefined getBindings should get local and global scope bindings
>     undefined getBindings should work for import statements (esprima-fb)
>     undefined getBindings should work for import statements (acorn)
>     undefined should work for ES6 syntax (espree)
>     undefined should work with classes for ES6 syntax (espree)
>     undefined should inject temporary into current scope
>     undefined declareTemporary should use distinct names in nested scopes
>     getBindings should work with destructuring operations
>       undefined produces the correct bindings with esprima parser
>       undefined produces the correct bindings with babel parser
> 
>   catch block scope
>     undefined should not affect outer scope declarations
>     undefined should declare only the guard parameter
>     undefined should shadow only the parameter in nested scopes
> 
>   array and object pattern scope
>     esprima
>       undefined should handle object patterns variable declarations
>       undefined should handle array patterns in variable declarations
>       undefined should handle nested patterns in variable declarations
>     Mozilla Parser API
>       undefined should handle object patterns variable declarations
>       undefined should handle array patterns in variable declarations
>       undefined should handle nested patterns in variable declarations
> 
>   types.defineMethod
>     undefined should allow defining an .at method
>     undefined should allow methods to be removed
> 
>   types.visit
>     undefined should be identical to PathVisitor.visit
>     undefined should work with no visitors
>     undefined should allow simple tree modifications
>     undefined should complain about missing this.traverse
>     undefined should support this.traverse
>     undefined should support this.replace
>     undefined should reuse old VisitorContext objects
>     undefined should dispatch to closest visitSupertype method
>     undefined should replace this.currentPath with returned value
> 
>   path.shift
>     undefined should work like Array.prototype.shift
>     undefined should throw when path.value not an array
> 
>   path.unshift
>     undefined should work like Array.prototype.unshift
>     undefined should throw when path.value not an array
> 
>   path.push
>     undefined should work like Array.prototype.push
>     undefined should throw when path.value not an array
> 
>   path.pop
>     undefined should work like Array.prototype.pop
>     undefined should throw when path.value not an array
> 
>   path.insertAt
>     undefined should insert nodes at the given index
>     undefined should insert nodes even when path.value is empty
>     undefined should throw when path.value not an array
> 
>   path.insertBefore
>     undefined should insert nodes before the current path
>     undefined should throw when path.parentPath.value not an array
> 
>   path.insertAfter
>     undefined should insert nodes after the current path
>     undefined should throw when path.parentPath.value not an array
> 
>   types.astNodesAreEquivalent
>     undefined should work for simple values
>     undefined should work for arrays
>     undefined should work for objects
>     undefined should work for AST nodes
> 
>   RegExpLiteral nodes
>     undefined should have a default-computable .regex field
>     undefined should typecheck with explicit .regex field
> 
>   BigIntLiteral nodes
>     undefined should parse correctly with Babylon
> 
>   MemberExpression
>     undefined should set computed flag to false by default
>     undefined should not set computed to true if property is a callExpression
>     undefined should set computed flag to true if property is a literal
>     undefined should set computed flag to true if property is a memberExpression
>     undefined should set computed flag to true if property is a binaryExpression
>     undefined should override computed value when passed as a third argument to the builder
> 
>   Optional Chaining
>     ChainExpression
>       undefined should set expression.optional in CallExpression to false by default
>       undefined can set expression.optional in CallExpression to true
>       undefined should set expression.optional in MemberExpression to false by default
>       undefined can set expression.optional in MemberExpression to true
>     OptionalCallExpression
>       undefined should set optional to true by default
>       undefined should allow optional to be false
>     OptionalMemberExpression
>       undefined should set optional to true by default
>       undefined should allow optional to be false
> 
>   Nullish Coalescing Operator
>     undefined should allow `??` as operator
>     undefined should not allow `crap` as operator
> 
>   Dynamic import
>     undefined should work with expression values
>     undefined should not allow empty source
>     undefined should parse with espree
> 
>   flow types
>     undefined issue #242
>     undefined issue #261
>     undefined Explicit type arguments
>     undefined issue #294 - function declarations
>     undefined issue #294 - function expressions
>     undefined issue #294 - arrow function expressions
>     undefined issue #294 - class declarations
>     undefined issue #294 - class expressions
>     undefined issue #296 - interface declarations
>     scope
>       undefined should register flow types with the scope
> 
>   type annotations
>     undefined can build Identifier with Flow typeAnnotation
>     undefined can build Identifier with TS typeAnnotation
>     undefined can build ObjectPattern with Flow typeAnnotation
>     undefined can build ObjectPattern with TS typeAnnotation
>     undefined can build FunctionDeclaration with Flow typeParameters and returnType
>     undefined can build FunctionDeclaration with TS typeParameters and returnType
>     undefined can build ClassProperty with Flow typeAnnotation
>     undefined can build ClassProperty with TS typeAnnotation
>     undefined can build ClassDeclaration with Flow typeParameters and superTypeParameters
>     undefined can build ClassDeclaration with TS typeParameters and superTypeParameters
>     undefined can build ClassExpression with Flow typeParameters and superTypeParameters
>     undefined can build ClassExpression with TS typeParameters and superTypeParameters
>     undefined can build ClassDeclaration with Flow implements
>     undefined can build ClassDeclaration with TS implements
> 
>   scope
>     undefined should register typescript types with the scope
> 
>   typescript types
>     undefined issue #294 - function declarations
>     undefined issue #294 - function expressions
>     undefined issue #294 - arrow function expressions
>     undefined issue #294 - class declarations
>     undefined issue #294 - class expressions
>     undefined issue #296 - interface declarations
> 
> 
>   155 passing (971ms)
>   1 failing
> 
>   1) esprima Syntax types
>        should all be buildable:
> 
>       AssertionError [ERR_ASSERTION]: ClassAccessorProperty
>       + expected - actual
> 
>       -false
>       +true
>       
>       at /<<PKGBUILDDIR>>/test/ecmascript.js:206:30
>       at Array.forEach (<anonymous>)
>       at Context.<anonymous> (test/ecmascript.js:205:32)
>       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:461: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/02/12/node-ast-types_0.15.2-2_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!

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