[Pkg-javascript-devel] Bug#1072601: node-mock-fs: FTBFS: failing tests

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


Package: src:node-mock-fs
Version: 5.1.4-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
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cmark-gfm readme.md > readme.html
cmark-gfm --to plaintext readme.md > readme.txt
cmark-gfm changelog.md > changelog.html
cmark-gfm --to plaintext changelog.md > changelog.txt
dh override_dh_auto_build
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'

[... snipped ...]

       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/fs.rename.spec.js:180:12)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at cbHookRun (/usr/share/nodejs/mocha/lib/runner.js:550:7)
       at done (/usr/share/nodejs/mocha/lib/runnable.js:310:5)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:389:7)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at next (/usr/share/nodejs/mocha/lib/runner.js:509:10)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
not ok 660 fs.renameSync(oldPath, newPath) allows directories to be renamed
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/fs.rename.spec.js:186:12)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at cbHookRun (/usr/share/nodejs/mocha/lib/runner.js:550:7)
       at done (/usr/share/nodejs/mocha/lib/runnable.js:310:5)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:389:7)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at next (/usr/share/nodejs/mocha/lib/runner.js:509:10)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
not ok 661 fs.renameSync(oldPath, newPath) replaces existing directories (if empty)
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/fs.rename.spec.js:193:12)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at cbHookRun (/usr/share/nodejs/mocha/lib/runner.js:550:7)
       at done (/usr/share/nodejs/mocha/lib/runnable.js:310:5)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:389:7)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at next (/usr/share/nodejs/mocha/lib/runner.js:509:10)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
not ok 662 fs.renameSync(oldPath, newPath) renames symbolic links
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/fs.rename.spec.js:199:12)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at cbHookRun (/usr/share/nodejs/mocha/lib/runner.js:550:7)
       at done (/usr/share/nodejs/mocha/lib/runnable.js:310:5)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:389:7)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at next (/usr/share/nodejs/mocha/lib/runner.js:509:10)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 663 fs.renameSync(oldPath, newPath) throws if old path does not exist
ok 664 fs.renameSync(oldPath, newPath) throws if new path basename is not directory
ok 665 fs.renameSync(oldPath, newPath) throws if new dir is not empty dir
ok 666 fs.rmdir(path, callback) removes an empty directory
ok 667 fs.rmdir(path, callback) supports Buffer input
ok 668 fs.rmdir(path, callback) promise removes an empty directory
ok 669 fs.rmdir(path, callback) fails if not empty
ok 670 fs.rmdir(path, callback) promise fails if not empty
ok 671 fs.rmdir(path, callback) fails if file
ok 672 fs.rmdir(path, callback) promise fails if file
(node:171800) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
ok 673 fs.rmdir(path, callback) recursively remove empty directory
ok 674 fs.rmdir(path, callback) promise recursively remove empty directory
ok 675 fs.rmdir(path, callback) recursively remove non-empty directory
ok 676 fs.rmdir(path, callback) promise recursively remove non-empty directory
ok 677 fs.rmdir(path, callback) fails if parent is not writeable
ok 678 fs.rmdir(path, callback) promise fails if parent is not writeable
ok 679 fs.rmdirSync(path) removes an empty directory
ok 680 fs.rmdirSync(path) fails if directory does not exist
ok 681 fs.rmdirSync(path) fails if not empty
ok 682 fs.rmdirSync(path) fails if file
ok 683 fs.rmdirSync(path) recursively remove empty directory
ok 684 fs.rmdirSync(path) recursively remove non-empty directory
ok 685 fs.rmdirSync(path) fails if parent is not writeable
ok 686 fs.stat(path, options, callback) creates an instance of fs.Stats # SKIP -
ok 687 fs.stat(path, options, callback) promise creates an instance of fs.Stats # SKIP -
ok 688 fs.stat(path, options, callback) identifies files
ok 689 fs.stat(path, options, callback) identifies files with bigint
ok 690 fs.stat(path, options, callback) supports Buffer input
ok 691 fs.stat(path, options, callback) supports Buffer input with bigint
ok 692 fs.stat(path, options, callback) promise identifies files
ok 693 fs.stat(path, options, callback) promise identifies files
ok 694 fs.stat(path, options, callback) identifies directories
ok 695 fs.stat(path, options, callback) identifies directories with bigint
ok 696 fs.stat(path, options, callback) promise identifies directories
ok 697 fs.stat(path, options, callback) promise identifies directories with bigint
ok 698 fs.stat(path, options, callback) provides file stats
ok 699 fs.stat(path, options, callback) provides file stats with bigint
ok 700 fs.stat(path, options, callback) promise provides file stats
ok 701 fs.stat(path, options, callback) promise provides file stats with bigint
ok 702 fs.stat(path, options, callback) includes blocks and blksize in stats
ok 703 fs.stat(path, options, callback) promise includes blocks and blksize in stats
ok 704 fs.stat(path, options, callback) provides directory stats
ok 705 fs.stat(path, options, callback) provides directory stats with bigint
ok 706 fs.stat(path, options, callback) promise provides directory stats
ok 707 fs.stat(path, options, callback) promise provides directory stats with bigint
ok 708 fs.stat(path, options, callback) includes blocks and blksize in directory stats
ok 709 fs.stat(path, options, callback) promise includes blocks and blksize in directory stats
ok 710 fs.fstat(fd, options, callback) accepts a file descriptor for a file (r)
ok 711 fs.fstat(fd, options, callback) accepts a file descriptor for a file (r) with bigint
ok 712 fs.fstat(fd, options, callback) promise accepts a file descriptor for a file (r)
ok 713 fs.fstat(fd, options, callback) promise accepts a file descriptor for a file (r) with bigint
ok 714 fs.fstat(fd, options, callback) accepts a file descriptor for a directory (r)
ok 715 fs.fstat(fd, options, callback) accepts a file descriptor for a directory (r) with bigint
ok 716 fs.fstat(fd, options, callback) promise accepts a file descriptor for a directory (r)
ok 717 fs.fstat(fd, options, callback) promise accepts a file descriptor for a directory (r) with bigint
ok 718 fs.fstat(fd, options, callback) fails for bad file descriptor
ok 719 fs.fstat(fd, options, callback) promise fails for bad file descriptor
ok 720 fs.fstatSync(fd, options) accepts a file descriptor for a file (r)
ok 721 fs.fstatSync(fd, options) accepts a file descriptor for a file (r) with bigint
ok 722 fs.fstatSync(fd, options) accepts a file descriptor for a directory (r)
ok 723 fs.fstatSync(fd, options) accepts a file descriptor for a directory (r) with bigint
ok 724 fs.fstatSync(fd, options) fails for bad file descriptor
ok 725 fs.unlink(path, callback) deletes a file
ok 726 fs.unlink(path, callback) supports Buffer input
ok 727 fs.unlink(path, callback) promise deletes a file
ok 728 fs.unlink(path, callback) updates mtime of parent
ok 729 fs.unlink(path, callback) updates mtime of parent
not ok 730 fs.unlink(path, callback) fails for a directory
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at /<<PKGBUILDDIR>>/test/lib/fs.unlink.spec.js:76:14
       at FSReqCallback.oncomplete (node:fs:187:23)
       at /<<PKGBUILDDIR>>/lib/binding.js:71:9
       at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
not ok 731 fs.unlink(path, callback) promise fails for a directory
   Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/<<PKGBUILDDIR>>/test/lib/fs.unlink.spec.js)
   Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/<<PKGBUILDDIR>>/test/lib/fs.unlink.spec.js)
       at createTimeoutError (/usr/share/nodejs/mocha/lib/errors.js:498:15)
       at Runnable._timeoutError (/usr/share/nodejs/mocha/lib/runnable.js:431:10)
       at Timeout.<anonymous> (/usr/share/nodejs/mocha/lib/runnable.js:246:24)
       at listOnTimeout (node:internal/timers:573:17)
       at process.processTimers (node:internal/timers:514:7)
ok 732 fs.unlink(path, callback) respects previously opened file descriptors
ok 733 fs.unlink(path, callback) promise respects previously opened file descriptors
ok 734 fs.unlinkSync(path) deletes a file
ok 735 fs.unlinkSync(path) respects previously opened file descriptors
ok 736 fs.utimes(path, atime, mtime, callback) updates timestamps for a file
ok 737 fs.utimes(path, atime, mtime, callback) supports Buffer input
ok 738 fs.utimes(path, atime, mtime, callback) promise updates timestamps for a file
ok 739 fs.utimes(path, atime, mtime, callback) updates timestamps for a directory
ok 740 fs.utimes(path, atime, mtime, callback) promise updates timestamps for a directory
ok 741 fs.utimes(path, atime, mtime, callback) fails for a bogus path
ok 742 fs.utimes(path, atime, mtime, callback) promise fails for a bogus path
ok 743 fs.utimesSync(path, atime, mtime) updates timestamps for a file
ok 744 fs.futimes(fd, atime, mtime, callback) updates timestamps for a file
ok 745 fs.futimes(fd, atime, mtime, callback) promise updates timestamps for a file
ok 746 fs.futimes(fd, atime, mtime, callback) updates timestamps for a directory
ok 747 fs.futimes(fd, atime, mtime, callback) promise updates timestamps for a directory
ok 748 fs.futimesSync(path, atime, mtime) updates timestamps for a file
ok 749 fs.write(fd, buffer, offset, length, position, callback) writes a buffer to a file
ok 750 fs.write(fd, buffer, offset, length, position, callback) promise writes a buffer to a file
ok 751 fs.write(fd, buffer, offset, length, position, callback) writes a buffer to a file with implicit offset, length, position
ok 752 fs.write(fd, buffer, offset, length, position, callback) promise writes a buffer to a file with implicit offset, length, position
ok 753 fs.write(fd, buffer, offset, length, position, callback) can write a portion of a buffer to a file
ok 754 fs.write(fd, buffer, offset, length, position, callback) promise can write a portion of a buffer to a file
ok 755 fs.write(fd, buffer, offset, length, position, callback) can write a portion of a buffer to a file position
ok 756 fs.write(fd, buffer, offset, length, position, callback) promise can write a portion of a buffer to a file position
ok 757 fs.write(fd, buffer, offset, length, position, callback) can write a portion of a buffer to a file position and enlarge the file
ok 758 fs.write(fd, buffer, offset, length, position, callback) promise can write a portion of a buffer to a file position and enlarge the file
ok 759 fs.write(fd, buffer, offset, length, position, callback) can append to a file
ok 760 fs.write(fd, buffer, offset, length, position, callback) promise can append to a file
ok 761 fs.write(fd, buffer, offset, length, position, callback) fails if file not open for writing
ok 762 fs.write(fd, buffer, offset, length, position, callback) fails if file not open for writing
ok 763 fs.writeSync(fd, buffer, offset, length, position) writes a buffer to a file
ok 764 fs.writeSync(fd, buffer, offset, length, position) can write a portion of a buffer to a file
ok 765 fs.writeSync(fd, buffer, offset, length, position) can append to a file
ok 766 fs.writeSync(fd, buffer, offset, length, position) fails if file not open for writing
ok 767 fs.write(fd, data[, position[, encoding]], callback) writes a string to a file
not ok 768 fs.write(fd, data[, position[, encoding]], callback) promise writes a string to a file
   Method Promise.prototype.then called on incompatible receiver 8
   TypeError: Method Promise.prototype.then called on incompatible receiver 8
       at Number.then (<anonymous>)
       at write (node:internal/fs/promises:750:31)
       at fsCall (node:internal/fs/promises:464:18)
       at FileHandle.write (node:internal/fs/promises:226:12)
       at /<<PKGBUILDDIR>>/test/lib/fs.write.spec.js:331:19
       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ok 769 fs.write(fd, data[, position[, encoding]], callback) writes a string to a file with implicit position and encoding
not ok 770 fs.write(fd, data[, position[, encoding]], callback) promise writes a string to a file with implicit position and encoding
   Method Promise.prototype.then called on incompatible receiver 8
   TypeError: Method Promise.prototype.then called on incompatible receiver 8
       at Number.then (<anonymous>)
       at write (node:internal/fs/promises:750:31)
       at fsCall (node:internal/fs/promises:464:18)
       at FileHandle.write (node:internal/fs/promises:226:12)
       at /<<PKGBUILDDIR>>/test/lib/fs.write.spec.js:364:19
       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ok 771 fs.write(fd, data[, position[, encoding]], callback) can append to a file
not ok 772 fs.write(fd, data[, position[, encoding]], callback) promise can append to a file
   Method Promise.prototype.then called on incompatible receiver 5
   TypeError: Method Promise.prototype.then called on incompatible receiver 5
       at Number.then (<anonymous>)
       at write (node:internal/fs/promises:750:31)
       at fsCall (node:internal/fs/promises:464:18)
       at FileHandle.write (node:internal/fs/promises:226:12)
       at /<<PKGBUILDDIR>>/test/lib/fs.write.spec.js:397:19
       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ok 773 fs.write(fd, data[, position[, encoding]], callback) can write to a position of a file
not ok 774 fs.write(fd, data[, position[, encoding]], callback) promise can write to a position of a file
   Method Promise.prototype.then called on incompatible receiver 5
   TypeError: Method Promise.prototype.then called on incompatible receiver 5
       at Number.then (<anonymous>)
       at write (node:internal/fs/promises:750:31)
       at fsCall (node:internal/fs/promises:464:18)
       at FileHandle.write (node:internal/fs/promises:226:12)
       at /<<PKGBUILDDIR>>/test/lib/fs.write.spec.js:433:19
       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ok 775 fs.write(fd, data[, position[, encoding]], callback) can write to a position of a file and enlarge it
not ok 776 fs.write(fd, data[, position[, encoding]], callback) promise can write to a position of a file and enlarge it
   Method Promise.prototype.then called on incompatible receiver 5
   TypeError: Method Promise.prototype.then called on incompatible receiver 5
       at Number.then (<anonymous>)
       at write (node:internal/fs/promises:750:31)
       at fsCall (node:internal/fs/promises:464:18)
       at FileHandle.write (node:internal/fs/promises:226:12)
       at /<<PKGBUILDDIR>>/test/lib/fs.write.spec.js:469:19
       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ok 777 fs.write(fd, data[, position[, encoding]], callback) fails if file not open for writing
ok 778 fs.write(fd, data[, position[, encoding]], callback) promise fails if file not open for writing
ok 779 fs.writeSync(fd, data[, position[, encoding]]) writes a string to a file
ok 780 fs.writeSync(fd, data[, position[, encoding]]) can append to a file
ok 781 fs.writeSync(fd, data[, position[, encoding]]) fails if file not open for writing
ok 782 fs.writeFile(filename, data, [options], callback) writes a string to a file
ok 783 fs.writeFile(filename, data, [options], callback) promise writes a string to a file
ok 784 fs.writeFile(filename, data, [options], callback) updates mtime of parent directory
ok 785 fs.writeFile(filename, data, [options], callback) promise updates mtime of parent directory
ok 786 fs.writeFile(filename, data, [options], callback) writes a buffer to a file
ok 787 fs.writeFile(filename, data, [options], callback) promise writes a buffer to a file
ok 788 fs.writeFile(filename, data, [options], callback) fails if directory does not exist
ok 789 fs.writeFile(filename, data, [options], callback) promise fails if directory does not exist
not ok 790 fs.writeFileSync(filename, data, [options] writes a string to a file
   ENOENT, no such file or directory 'foo'
   Error: ENOENT, no such file or directory 'foo'
       at Binding.<anonymous> (lib/binding.js:386:15)
       at maybeCallback (lib/binding.js:85:17)
       at Binding.open (lib/binding.js:358:10)
       at Object.<anonymous> (lib/index.js:41:39)
       at Object.openSync (node:fs:573:18)
       at Object.readFileSync (node:fs:452:35)
       at Context.<anonymous> (test/lib/fs.writeFile.spec.js:106:28)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at cbHookRun (/usr/share/nodejs/mocha/lib/runner.js:550:7)
       at done (/usr/share/nodejs/mocha/lib/runnable.js:310:5)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:389:7)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at next (/usr/share/nodejs/mocha/lib/runner.js:509:10)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 791 fs.writeFileSync(filename, data, [options] writes a buffer to a file
ok 792 fs.writeFileSync(filename, data, [options] fails if directory does not exist
not ok 793 The API mock() configures the real fs module with a mock file system
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Reflect.get (<anonymous>)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/index.spec.js:22:14)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 794 The API mock() provides direct access to the internal filesystem object
ok 795 The API mock() creates process.cwd() and os.tmpdir() by default
not ok 796 The API mock() passes the createCwd option to the FileSystem constructor
   expected true to be false
   AssertionError: expected true to be false
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:701:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Reflect.get (<anonymous>)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isFalse (/usr/share/nodejs/chai/lib/chai/interface/assert.js:386:53)
       at Context.<anonymous> (test/lib/index.spec.js:55:14)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
not ok 797 The API mock() passes the createTmp option to the FileSystem constructor
   expected true to be false
   AssertionError: expected true to be false
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:701:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Reflect.get (<anonymous>)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isFalse (/usr/share/nodejs/chai/lib/chai/interface/assert.js:386:53)
       at Context.<anonymous> (test/lib/index.spec.js:70:16)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 798 The API mock() uses the real fs module in require() calls # SKIP -
not ok 799 The API mock.restore() restores bindings for the real file system
   expected false to be true
   AssertionError: expected false to be true
       at Assertion.<anonymous> (/usr/share/nodejs/chai/lib/chai/core/assertions.js:666:10)
       at Assertion.propertyGetter (/usr/share/nodejs/chai/lib/chai/utils/addProperty.js:62:29)
       at Reflect.get (<anonymous>)
       at Object.proxyGetter [as get] (/usr/share/nodejs/chai/lib/chai/utils/proxify.js:98:22)
       at assert.isTrue (/usr/share/nodejs/chai/lib/chai/interface/assert.js:348:52)
       at Context.<anonymous> (test/lib/index.spec.js:92:14)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 800 The API mock.file() lets you create files with additional properties
ok 801 The API mock.directory() lets you create directories with more properties
ok 802 The API mock.directory() works with a trailing slash
ok 803 The API mock.directory() works without a trailing slash
ok 804 The API mock.symlink() lets you create symbolic links
ok 805 The API mock.load() File creates a File factory with correct attributes
ok 806 The API mock.load() File lazy=false loads file content
ok 807 The API mock.load() File can read file from mocked FS
ok 808 The API mock.load() File lazy=true creates accessors
ok 809 The API mock.load() File lazy=true read file loads data and replaces accessors
ok 810 The API mock.load() File lazy=true write file updates content and replaces accessors
ok 811 The API mock.load() Dir creates a Directory factory with correct attributes
ok 812 The API mock.load() Dir recursive=false creates files & does not recurse
ok 813 The API mock.load() Dir can read file from mocked FS
ok 814 The API mock.load() Dir recursive=true creates all files & dirs
ok 815 The API mock.load() Dir recursive=true respects lazy setting
ok 816 The API mock.fs() generates a mock fs module with a mock file system # SKIP -
ok 817 The API mock.fs() passes options to the FileSystem constructor # SKIP -
ok 818 The API mock.fs() accepts an arbitrary nesting of files and directories # SKIP -
ok 819 process.cwd() maintains current working directory
ok 820 process.cwd() allows changing directory
ok 821 process.cwd() prevents changing directory to non-existent path
ok 822 process.cwd() prevents changing directory to non-directory path
ok 823 process.cwd() restores original methods on restore
ok 824 process.cwd() restores original working directory on restore
ok 825 security denies dir listing without execute on parent
ok 826 security denies file read without execute on parent
ok 827 security denies file read without read on file
not ok 828 security denies file write without write on file
   expected 'ENOENT' to equal 'EACCES'
   AssertionError: expected 'ENOENT' to equal 'EACCES'
       at assert.equal (/usr/share/nodejs/chai/lib/chai/interface/assert.js:139:10)
       at Context.<anonymous> (test/lib/index.spec.js:550:14)
       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
       at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
       at /usr/share/nodejs/mocha/lib/runner.js:800:12
       at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
       at /usr/share/nodejs/mocha/lib/runner.js:602:7
       at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
       at process.processImmediate (node:internal/timers:478:21)
ok 829 Item constructor creates a new instance
ok 830 Item getATime() returns a date
ok 831 Item setATime() sets the atime
ok 832 Item getCTime() returns a date
ok 833 Item setCTime() sets the ctime
ok 834 Item getBirthtime() returns a date
ok 835 Item setBirthtime() sets the birthtime
ok 836 Item getMTime() returns a date
ok 837 Item setMTime() sets the mtime
ok 838 Item getMode() returns a number
ok 839 Item setMode() sets the mode
ok 840 Item setMode() updates the ctime
ok 841 Item setUid() sets the uid
ok 842 Item setUid() updates the ctime
ok 843 Item setGid() sets the gid
ok 844 Item setGid() updates the ctime
ok 845 Item canRead() returns true if owner and 0700
ok 846 Item canRead() returns true if owner and 0600
ok 847 Item canRead() returns true if owner and 0500
ok 848 Item canRead() returns true if owner and 0400
ok 849 Item canRead() returns false if owner and 0300
ok 850 Item canRead() returns false if owner and 0200
ok 851 Item canRead() returns false if owner and 0100
ok 852 Item canRead() returns false if not owner and 0700 (different user)
ok 853 Item canRead() returns false if not owner and 0700 (different group)
ok 854 Item canRead() returns false if owner and 0170
ok 855 Item canRead() returns true if in group and 0170
ok 856 Item canRead() returns false if not in group and 0770
ok 857 Item canRead() returns true if not in group and 0777
ok 858 Item canWrite() returns true if owner and 0700
ok 859 Item canWrite() returns true if owner and 0600
ok 860 Item canWrite() returns false if owner and 0500
ok 861 Item canWrite() returns false if owner and 0400
ok 862 Item canWrite() returns true if owner and 0300
ok 863 Item canWrite() returns true if owner and 0200
ok 864 Item canWrite() returns false if owner and 0100
ok 865 Item canWrite() returns false if not owner and 0700 (different user)
ok 866 Item canWrite() returns false if not owner and 0700 (different group)
ok 867 Item canWrite() returns false if owner and 0170
ok 868 Item canWrite() returns true if in group and 0170
ok 869 Item canWrite() returns false if not in group and 0770
ok 870 Item canWrite() returns true if not in group and 0777
ok 871 Item canExecute() returns true if owner and 0700
ok 872 Item canExecute() returns false if owner and 0600
ok 873 Item canExecute() returns true if owner and 0500
ok 874 Item canExecute() returns false if owner and 0400
ok 875 Item canExecute() returns true if owner and 0300
ok 876 Item canExecute() returns false if owner and 0200
ok 877 Item canExecute() returns true if owner and 0100
ok 878 Item canExecute() returns false if not owner and 0700 (different user)
ok 879 Item canExecute() returns false if not owner and 0700 (different group)
ok 880 Item canExecute() returns false if owner and 0270
ok 881 Item canExecute() returns true if in group and 0270
ok 882 Item canExecute() returns false if not in group and 0770
ok 883 Item canExecute() returns true if not in group and 0777
ok 884 getReadFileContextPrototype provides access to the internal ReadFileContext
ok 885 patchReadFileContext patch forwards calls to mocked binding when available
ok 886 fs.readFile() with ReadFileContext allows file reads to be aborted
ok 887 fs.readFile() with ReadFileContext allows file reads with a numeric descriptor
ok 888 fs.readFile() with ReadFileContext allows file reads with unknown size
# tests 881
# pass 833
# fail 48
1..888
make[1]: *** [debian/rules:28: override_dh_auto_test] Error 48
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary] Error 2
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