[Pkg-javascript-devel] Bug#1072603: node-read-package-json: FTBFS: failing tests

Santiago Vila sanvila at debian.org
Wed Jun 5 01:17:28 BST 2024


Package: src:node-read-package-json
Version: 5.0.2+~2.0.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Link node_modules/npm-normalize-package-bin -> ../npm-normalize-package-bin
    dh_auto_build --buildsystem=nodejs
No build command found, searching known files
No build command found, searching known files
    dh_auto_test --buildsystem=nodejs
	ln -s ../. node_modules/read-package-json
	/bin/sh -ex debian/tests/pkg-js/test
+ ls test/basic.js test/bin-non-string.js test/bin.js test/bom.js test/bundle.js test/fill-types.js test/git-head.js test/helpful.js test/indexjs.js test/main-non-string.js test/mans.js test/non-json.js test/readmes.js test/semver.js test/underscores.js
+ grep -v test/git-head.js
+ tap --no-cov test/basic.js test/bin-non-string.js test/bin.js test/bom.js test/bundle.js test/fill-types.js test/helpful.js test/indexjs.js test/main-non-string.js test/mans.js test/non-json.js test/readmes.js test/semver.js test/underscores.js
TAP version 13
# Subtest: test/basic.js
     # Subtest: basic test
         ok 1 - expect truthy value
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - type is object
         ok 6 - should be equal
         ok 7 - should be equivalent
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - should be equivalent
         ok 11 - should contain all provided fields
         ok 12 - should be equivalent
         1..12
     ok 1 - basic test # time=73.281ms
     
     1..1
     # time=78.099ms
ok 1 - test/basic.js # time=78.099ms

# Subtest: test/bin-non-string.js
     # Subtest: non-string bin entries
         #
         ok 1 - no error from readJson
         ok 2 - should be equal
         1..2
     ok 1 - non-string bin entries # time=58.267ms
     
     1..1
     # time=65.274ms
ok 2 - test/bin-non-string.js # time=65.274ms

# Subtest: test/bin.js
     # Subtest: Bin test
         ok 1 - should be equal
         ok 2 - should be equivalent strictly
         1..2
     ok 1 - Bin test # time=41.372ms
     
     # Subtest: Bad bin test
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 2 - Bad bin test # time=26.1ms
     
     # Subtest: Empty bin test
         ok 1 - should be equal
         ok 2 - no mapping to bin because object was empty
         1..2
     ok 3 - Empty bin test # time=11.034ms
     
     1..3
     # time=87.294ms
ok 3 - test/bin.js # time=87.294ms

# Subtest: test/bom.js
     # Subtest: BOM test
         ok 1 - should be equivalent
         1..1
     ok 1 - BOM test # time=57.377ms
     
     1..1
     # time=70.553ms
ok 4 - test/bom.js # time=70.553ms

# Subtest: test/bundle.js
     # Subtest: bundle-true
         ok 1 - should match pattern provided
         1..1
     ok 1 - bundle-true # time=68.833ms
     
     # Subtest: bundle-null
         ok 1 - no bundleDependencies
         ok 2 - no bundledDependencies
         1..2
     ok 2 - bundle-null # time=7.911ms
     
     # Subtest: bundle-array
         ok 1 - should match pattern provided
         1..1
     ok 3 - bundle-array # time=13.307ms
     
     # Subtest: bundle-false
         ok 1 - should match pattern provided
         1..1
     ok 4 - bundle-false # time=25.722ms
     
     1..4
     # time=127.224ms
ok 5 - test/bundle.js # time=127.224ms

# Subtest: test/fill-types.js
     # Subtest: adds types with a custom main field
         ok 1 - should match pattern provided
         1..1
     ok 1 - adds types with a custom main field # time=43.582ms
     
     # Subtest: handles the inferred index.js
         ok 1 - should match pattern provided
         1..1
     ok 2 - handles the inferred index.js # time=11.425ms
     
     # Subtest: handles subpaths and starting with ./
         ok 1 - should match pattern provided
         1..1
     ok 3 - handles subpaths and starting with ./ # time=3.784ms
     
     # Subtest: handles not overwriting existing fields
         ok 1 - should match pattern provided
         1..1
     ok 4 - handles not overwriting existing fields # time=31.579ms
     
     # Subtest: does not add types fields if not present
         ok 1 - types field should not be added
         1..1
     ok 5 - does not add types fields if not present # time=26.97ms
     
     ok 6 - handles esm modules # SKIP
     ok 7 - handles esm modules with sugared exports # SKIP
     1..7
     # skip: 2
     # time=124.45ms
ok 6 - test/fill-types.js # time=124.45ms

# Subtest: test/helpful.js
     # Subtest: erroneous package data
         ok 1 - expect truthy value
         not ok 2 - expect truthy value
           ---
           at:
             line: 9
             column: 7
             file: test/helpful.js
           stack: |
             test/helpful.js:9:7
             parseJson (lib/read-json.js:115:14)
             lib/read-json.js:50:5
           source: |2
                 t.ok(er instanceof Error)
                 t.ok(er.message.match(/Unexpected token "'" \(0x27\)/))
             ------^
                 t.end()
               })
           ...
         
         1..2
         # failed 1 of 2 tests
     not ok 1 - erroneous package data # time=30.761ms
     
     # Subtest: ENOTDIR for non-directory packages
         ok 1 - expect truthy value
         ok 2 - should be equal
         1..2
     ok 2 - ENOTDIR for non-directory packages # time=1.205ms
     
     1..2
     # failed 1 of 2 tests
     # time=48.265ms
not ok 7 - test/helpful.js # time=48.265ms
   ---
   env: {}
   file: test/helpful.js
   timeout: 30000
   command: /usr/bin/node
   args:
     - test/helpful.js
   stdio:
     - 0
     - pipe
     - 2
   cwd: /<<PKGBUILDDIR>>
   exitCode: 1
   ...

# Subtest: test/indexjs.js
     # Subtest: read from an index.js file
         ok 1 - should match pattern provided
         1..1
     ok 1 - read from an index.js file # time=59.687ms
     
     # Subtest: missing file
         ok 1 - should match pattern provided
         ok 2 - expect falsey value
         1..2
     ok 2 - missing file # time=11.657ms
     
     # Subtest: EJSONPARSE
         ok 1 - should match pattern provided
         ok 2 - expect falsey value
         1..2
     ok 3 - EJSONPARSE # time=8.419ms
     
     1..3
     # time=85ms
ok 8 - test/indexjs.js # time=85ms

# Subtest: test/main-non-string.js
     # Subtest: non-string main entries
         #
         ok 1 - should match pattern provided
         1..1
     ok 1 - non-string main entries # time=54.696ms
     
     1..1
     # time=68.876ms
ok 9 - test/main-non-string.js # time=68.876ms

# Subtest: test/mans.js
     # Subtest: Mans test
         ok 1 - man directory is translated but not resolved
         1..1
     ok 1 - Mans test # time=43.432ms
     
     1..1
     # time=48.826ms
ok 10 - test/mans.js # time=48.826ms

# Subtest: test/non-json.js
     # Subtest: from css
         ok 1 - should be equivalent
         1..1
     ok 1 - from css # time=38.368ms
     
     # Subtest: from js
         ok 1 - should be equivalent
         1..1
     ok 2 - from js # time=17.966ms
     
     1..2
     # time=73.885ms
ok 11 - test/non-json.js # time=73.885ms

# Subtest: test/readmes.js
     # Subtest: readme test
         ok 1 - read README without error
         ok 2 - should be equivalent
         1..2
     ok 1 - readme test # time=102.412ms
     
     1..1
     # time=106.91ms
ok 12 - test/readmes.js # time=106.91ms

# Subtest: test/semver.js
     ok 1 - should match pattern provided
     ok 2 - expect falsey value
     1..2
     # time=12.971ms
ok 13 - test/semver.js # time=12.971ms

# Subtest: test/underscores.js
     # Subtest: strip underscores
         ok 1 - should be equivalent strictly
         1..1
     ok 1 - strip underscores # time=19.175ms
     
     1..1
     # time=22.802ms
ok 14 - test/underscores.js # time=22.802ms

1..14
# failed 1 of 14 tests
# time=2833.039ms
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202406/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list