[Pkg-javascript-devel] Bug#907766: node-chokidar: FTBFS in buster/sid (failing tests)
Santiago Vila
sanvila at debian.org
Sat Sep 1 17:30:53 BST 2018
Package: src:node-chokidar
Version: 1.7.0-2
Severity: serious
Tags: ftbfs
Dear maintainer:
I tried to build this package in buster but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep
dh_update_autotools_config -i
dh_autoreconf -i
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mocha --exit --reporter spec
chokidar
✓ should expose public API methods
fs.watch (non-polling)
watch a directory
✓ should produce an instance of chokidar.FSWatcher
✓ should expose public API methods
✓ should emit `add` event when file was added (57ms)
✓ should emit `addDir` event when directory was added (56ms)
✓ should emit `change` event when file was changed
✓ should emit `unlink` event when file was removed (104ms)
✓ should emit `unlinkDir` event when a directory was removed (53ms)
✓ should emit `unlink` and `add` events when a file is renamed (156ms)
✓ should emit `add`, not `change`, when previously deleted file is re-added (161ms)
✓ should not emit `unlink` for previously moved files (404ms)
✓ should survive ENOENT for missing subdirectories
✓ should notice when a file appears in a new directory
✓ should watch removed and re-added directories (1514ms)
watch individual files
✓ should detect changes
✓ should detect unlinks (156ms)
✓ should detect unlink and re-add (257ms)
✓ should ignore unwatched siblings (55ms)
renamed directory
✓ should emit `add` for a file in a renamed directory (1017ms)
watch non-existent paths
✓ should watch non-existent file and detect add (56ms)
✓ should watch non-existent dir and detect addDir/add (106ms)
watch glob patterns
✓ should correctly watch and emit based on glob input (62ms)
✓ should respect negated glob patterns (156ms)
✓ should traverse subdirs to match globstar patterns (216ms)
✓ should resolve relative paths with glob patterns (72ms)
✓ should correctly handle conflicting glob patterns (158ms)
✓ should correctly handle intersecting glob patterns (58ms)
✓ should not confuse glob-like filenames with globs (103ms)
✓ should treat glob-like directory names as literal directory names when globbing is disabled (64ms)
✓ should treat glob-like filenames as literal filenames when globbing is disabled (51ms)
✓ should not prematurely filter dirs against complex globstar patterns (62ms)
✓ should emit matching dir events
watch symlinks
✓ should watch symlinked dirs
✓ should watch symlinked files
✓ should follow symlinked files within a normal dir
✓ should watch paths with a symlinked parent
✓ should not recurse indefinitely on circular symlinks
✓ should recognize changes following symlinked dirs
✓ should follow newly created symlinks (57ms)
✓ should watch symlinks as files when followSymlinks:false
✓ should watch symlinks within a watched dir as files when followSymlinks:false (310ms)
✓ should not reuse watcher when following a symlink to elsewhere (115ms)
✓ should properly match glob patterns that include a symlinked dir
watch arrays of paths/globs
✓ should watch all paths in an array
✓ should accommodate nested arrays in input
✓ should throw if provided any non-string paths
watch options
ignoreInitial
false
✓ should emit `add` events for preexisting files
✓ should emit `addDir` event for watched dir
✓ should emit `addDir` events for preexisting dirs
true
✓ should ignore inital add events (51ms)
✓ should ignore add events on a subsequent .add() (1002ms)
✓ should notice when a file appears in an empty directory
✓ should emit a change on a preexisting file as a change
✓ should not emit for preexisting dirs when depth is 0 (418ms)
ignored
✓ should check ignore after stating
✓ should not choke on an ignored watch path
✓ should ignore the contents of ignored dirs (359ms)
✓ should allow regex/fn ignores (57ms)
depth
✓ should not recurse if depth is 0
✓ should recurse to specified depth (66ms)
✓ should respect depth setting when following symlinks (65ms)
✓ should respect depth setting when following a new symlink
✓ should correctly handle dir events when depth is 0 (68ms)
atomic
✓ should ignore vim/emacs/Sublime swapfiles (906ms)
✓ should ignore stale tilde files (53ms)
cwd
✓ should emit relative paths based on cwd (105ms)
✓ should emit `addDir` with alwaysStat for renamed directory (1010ms)
✓ should allow separate watchers to have different cwds (161ms)
✓ should ignore files even with cwd (54ms)
ignorePermissionErrors
false
✓ should not watch files without read permissions (502ms)
true
✓ should watch unreadable files if possible
✓ should not choke on non-existent files
awaitWriteFinish
✓ should use default options if none given
✓ should not emit add event before a file is fully written (202ms)
✓ should wait for the file to be fully written before emitting the add event (503ms)
✓ should emit with the final stats (809ms)
✓ should not emit change event while a file has not been fully written (304ms)
✓ should not emit change event before an existing file is fully updated (304ms)
✓ should wait for an existing file to be fully updated before emitting the change event (509ms)
✓ should emit change event after the file is fully written (1060ms)
✓ should not raise any event for a file that was deleted before fully written (804ms)
✓ should be compatible with the cwd option (1106ms)
✓ should still emit initial add events
✓ should emit an unlink event when a file is updated and deleted just after that (255ms)
getWatched
✓ should return the watched paths
✓ should set keys relative to cwd & include added paths
unwatch
✓ should stop watching unwatched paths (358ms)
✓ should ignore unwatched paths that are a subset of watched paths (409ms)
✓ should unwatch relative paths (357ms)
✓ should watch paths that were unwatched and added again (157ms)
✓ should unwatch paths that are relative to options.cwd (354ms)
close
✓ should ignore further events on close (902ms)
✓ should not prevent the process from exiting (366ms)
env variable option override
CHOKIDAR_USEPOLLING
✓ should make options.usePolling `true` when CHOKIDAR_USEPOLLING is set to true
✓ should make options.usePolling `true` when CHOKIDAR_USEPOLLING is set to 1
✓ should make options.usePolling `false` when CHOKIDAR_USEPOLLING is set to false
✓ should make options.usePolling `false` when CHOKIDAR_USEPOLLING is set to 0
✓ should not attenuate options.usePolling when CHOKIDAR_USEPOLLING is set to an arbitrary value
CHOKIDAR_INTERVAL
✓ should make options.interval = CHOKIDAR_INTERVAL when it is set
fs.watchFile (polling)
watch a directory
✓ should produce an instance of chokidar.FSWatcher
✓ should expose public API methods
✓ should emit `add` event when file was added (57ms)
✓ should emit `addDir` event when directory was added (58ms)
✓ should emit `change` event when file was changed
✓ should emit `unlink` event when file was removed
✓ should emit `unlinkDir` event when a directory was removed (65ms)
✓ should emit `unlink` and `add` events when a file is renamed (63ms)
✓ should emit `add`, not `change`, when previously deleted file is re-added (74ms)
✓ should not emit `unlink` for previously moved files (308ms)
✓ should survive ENOENT for missing subdirectories
✓ should notice when a file appears in a new directory
✓ should watch removed and re-added directories (1516ms)
watch individual files
✓ should detect changes
✓ should detect unlinks (58ms)
✓ should detect unlink and re-add (168ms)
✓ should ignore unwatched siblings (57ms)
renamed directory
✓ should emit `add` for a file in a renamed directory (1011ms)
watch non-existent paths
✓ should watch non-existent file and detect add (56ms)
✓ should watch non-existent dir and detect addDir/add (107ms)
watch glob patterns
✓ should correctly watch and emit based on glob input (62ms)
✓ should respect negated glob patterns (64ms)
✓ should traverse subdirs to match globstar patterns (134ms)
✓ should resolve relative paths with glob patterns (69ms)
✓ should correctly handle conflicting glob patterns (57ms)
✓ should correctly handle intersecting glob patterns (64ms)
✓ should not confuse glob-like filenames with globs (102ms)
✓ should treat glob-like directory names as literal directory names when globbing is disabled (54ms)
✓ should treat glob-like filenames as literal filenames when globbing is disabled (56ms)
✓ should not prematurely filter dirs against complex globstar patterns (68ms)
1) should emit matching dir events
watch symlinks
✓ should watch symlinked dirs
✓ should watch symlinked files
✓ should follow symlinked files within a normal dir
✓ should watch paths with a symlinked parent
✓ should not recurse indefinitely on circular symlinks
✓ should recognize changes following symlinked dirs
✓ should follow newly created symlinks (67ms)
✓ should watch symlinks as files when followSymlinks:false
✓ should watch symlinks within a watched dir as files when followSymlinks:false (1210ms)
✓ should not reuse watcher when following a symlink to elsewhere (964ms)
2) should properly match glob patterns that include a symlinked dir
watch arrays of paths/globs
✓ should watch all paths in an array
✓ should accommodate nested arrays in input
✓ should throw if provided any non-string paths
watch options
ignoreInitial
false
✓ should emit `add` events for preexisting files
✓ should emit `addDir` event for watched dir
✓ should emit `addDir` events for preexisting dirs
true
✓ should ignore inital add events (51ms)
✓ should ignore add events on a subsequent .add() (1000ms)
✓ should notice when a file appears in an empty directory
✓ should emit a change on a preexisting file as a change
✓ should not emit for preexisting dirs when depth is 0 (415ms)
ignored
✓ should check ignore after stating
✓ should not choke on an ignored watch path
✓ should ignore the contents of ignored dirs (353ms)
✓ should allow regex/fn ignores (58ms)
depth
✓ should not recurse if depth is 0
✓ should recurse to specified depth (55ms)
✓ should respect depth setting when following symlinks (55ms)
✓ should respect depth setting when following a new symlink
✓ should correctly handle dir events when depth is 0 (73ms)
atomic
✓ should ignore vim/emacs/Sublime swapfiles (900ms)
✓ should ignore stale tilde files (52ms)
cwd
✓ should emit relative paths based on cwd
✓ should emit `addDir` with alwaysStat for renamed directory (1006ms)
✓ should allow separate watchers to have different cwds (68ms)
✓ should ignore files even with cwd (65ms)
ignorePermissionErrors
false
✓ should not watch files without read permissions (501ms)
true
✓ should watch unreadable files if possible
✓ should not choke on non-existent files
awaitWriteFinish
✓ should use default options if none given
✓ should not emit add event before a file is fully written (202ms)
✓ should wait for the file to be fully written before emitting the add event (517ms)
✓ should emit with the final stats (816ms)
✓ should not emit change event while a file has not been fully written (301ms)
✓ should not emit change event before an existing file is fully updated (301ms)
✓ should wait for an existing file to be fully updated before emitting the change event (517ms)
✓ should emit change event after the file is fully written (1068ms)
✓ should not raise any event for a file that was deleted before fully written (801ms)
✓ should be compatible with the cwd option (1107ms)
✓ should still emit initial add events
✓ should emit an unlink event when a file is updated and deleted just after that (159ms)
getWatched
✓ should return the watched paths
✓ should set keys relative to cwd & include added paths
unwatch
✓ should stop watching unwatched paths (363ms)
✓ should ignore unwatched paths that are a subset of watched paths (408ms)
✓ should unwatch relative paths (356ms)
✓ should watch paths that were unwatched and added again (156ms)
✓ should unwatch paths that are relative to options.cwd (360ms)
close
✓ should ignore further events on close (900ms)
✓ should not prevent the process from exiting (371ms)
env variable option override
CHOKIDAR_USEPOLLING
✓ should make options.usePolling `true` when CHOKIDAR_USEPOLLING is set to true
✓ should make options.usePolling `true` when CHOKIDAR_USEPOLLING is set to 1
✓ should make options.usePolling `false` when CHOKIDAR_USEPOLLING is set to false
✓ should make options.usePolling `false` when CHOKIDAR_USEPOLLING is set to 0
✓ should not attenuate options.usePolling when CHOKIDAR_USEPOLLING is set to an arbitrary value
CHOKIDAR_INTERVAL
✓ should make options.interval = CHOKIDAR_INTERVAL when it is set
195 passing (48s)
2 failing
1) chokidar
fs.watchFile (polling)
watch glob patterns
should emit matching dir events:
Uncaught expected spy to have been called with arguments addDir, /<<PKGBUILDDIR>>/test-fixtures/130/subdir/subsub/subsubsub
spy(addDir, /<<PKGBUILDDIR>>/test-fixtures/130/subdir, [Stats] {
atime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
atimeMs: 1535276981176.2725,
birthtime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
birthtimeMs: 1535276981176.2725,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
ctimeMs: 1535276981176.2725,
dev: 37,
gid: 924,
ino: 6653106,
mode: 16877,
mtime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
mtimeMs: 1535276981176.2725,
nlink: 3,
rdev: 0,
size: 4096,
uid: 924
}) at emitThree (events.js:136:13)
spy(add, /<<PKGBUILDDIR>>/test-fixtures/130/change.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311900,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
}) at emitThree (events.js:136:13)
spy(add, /<<PKGBUILDDIR>>/test-fixtures/130/unlink.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311901,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
}) at emitThree (events.js:136:13)
AssertionError: expected spy to have been called with arguments addDir, /<<PKGBUILDDIR>>/test-fixtures/130/subdir/subsub/subsubsub
spy(addDir, /<<PKGBUILDDIR>>/test-fixtures/130/subdir, [Stats] {
atime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
atimeMs: 1535276981176.2725,
birthtime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
birthtimeMs: 1535276981176.2725,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
ctimeMs: 1535276981176.2725,
dev: 37,
gid: 924,
ino: 6653106,
mode: 16877,
mtime: Sun Aug 26 2018 09:49:41 GMT+0000 (UTC),
mtimeMs: 1535276981176.2725,
nlink: 3,
rdev: 0,
size: 4096,
uid: 924
spy(add, /<<PKGBUILDDIR>>/test-fixtures/130/change.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311900,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
spy(add, /<<PKGBUILDDIR>>/test-fixtures/130/unlink.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311901,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
at test.js:760:34
at Timeout.finish (test.js:157:7)
2) chokidar
fs.watchFile (polling)
watch symlinks
should properly match glob patterns that include a symlinked dir:
Uncaught expected addSpy to have been called with arguments test-fixtures/141-link/add.txt
addSpy(test-fixtures/141-link/change.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311922,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
}) at emitTwo (events.js:126:13)
addSpy(test-fixtures/141-link/unlink.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311923,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
}) at emitTwo (events.js:126:13)
addSpy(test-fixtures/141-link/subdir/add.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
atimeMs: 1535276986996.158,
birthtime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
birthtimeMs: 1535276986996.158,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
ctimeMs: 1535276986996.158,
dev: 65025,
gid: 924,
ino: 1312192,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
mtimeMs: 1535276986996.158,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
}) at emitTwo (events.js:126:13)
AssertionError: expected addSpy to have been called with arguments test-fixtures/141-link/add.txt
addSpy(test-fixtures/141-link/change.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311922,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
addSpy(test-fixtures/141-link/unlink.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
atimeMs: 1535276956416.7595,
birthtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
birthtimeMs: 1535276956420.7593,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
ctimeMs: 1535276956420.7593,
dev: 65025,
gid: 924,
ino: 1311923,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:16 GMT+0000 (UTC),
mtimeMs: 1535276956420.7593,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
addSpy(test-fixtures/141-link/subdir/add.txt, [Stats] {
atime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
atimeMs: 1535276986996.158,
birthtime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
birthtimeMs: 1535276986996.158,
blksize: 4096,
blocks: 8,
ctime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
ctimeMs: 1535276986996.158,
dev: 65025,
gid: 924,
ino: 1312192,
mode: 33204,
mtime: Sun Aug 26 2018 09:49:46 GMT+0000 (UTC),
mtimeMs: 1535276986996.158,
nlink: 1,
rdev: 0,
size: 1,
uid: 924
at test.js:952:37
at Timeout.finish (test.js:157:7)
make[1]: *** [debian/rules:14: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------
The build was made in my autobuilder with "dpkg-buildpackage -A"
but this kind of failure also happens here:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/node-chokidar.html
The failure does not always happen, but it happens very often (34% of the time
in a test I did today with n1-standard-1 instances from GCE).
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