Mock Version: 2.3 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nodejs-winston.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1591368477.736239/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3fe38d13399a40c1a91426d3b1a43ea0', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1591368477.736239/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nodejs-winston.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1591315200 Wrote: /builddir/build/SRPMS/nodejs-winston-3.2.1-2.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nodejs-winston.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1591368477.736239/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c04ca151ca5b4c458c94ff0c0cfb67fa', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1591368477.736239/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y7dxig1n:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nodejs-winston.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1591315200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TpXNTt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf winston-3.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/winston-3.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd winston-3.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/winston-async-1.5.1-compatibility.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/lib/rpm/nodejs-fixdep async + /usr/lib/rpm/nodejs-fixdep diagnostics + /usr/lib/rpm/nodejs-fixdep is-stream + /usr/lib/rpm/nodejs-fixdep one-time + /usr/lib/rpm/nodejs-fixdep readable-stream + rm -f test/logger-legacy.test.js + rm -f test/transports/http.test.js + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tmBBbw + umask 022 + cd /builddir/build/BUILD + cd winston-3.2.1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kLFMIw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 ++ dirname /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 + cd winston-3.2.1 + mkdir -p /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/lib/node_modules/winston + cp -pr package.json lib/ /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/lib/node_modules/winston + cp -pr index.d.ts /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/lib/node_modules/winston + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 3.2.1-2.fc33 --unique-debug-suffix -3.2.1-2.fc33.x86_64 --unique-debug-src-base nodejs-winston-3.2.1-2.fc33.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/winston-3.2.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.cOICaw + umask 022 + cd /builddir/build/BUILD + cd winston-3.2.1 + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check + /usr/bin/node -e 'require('\''./'\'')' + mocha test/config.test.js test/container.test.js test/exception-handler.test.js test/exception-stream.test.js test/log-exception.test.js test/logger.test.js test/profiler.test.js test/rejection-handler.test.js test/tail-file.test.js test/winston.test.js test/formats/errors.test.js test/integration/formats.test.js test/transports/00-file-stress.test.js test/transports/01-file-maxsize.test.js test/transports/console.test.js test/transports/file-archive.test.js test/transports/file-tailrolling.test.js test/transports/file.test.js test/transports/stream.test.js winston.config ✓ should have expected methods Container no transports ✓ .add(default-test) ✓ .get(default-test) ✓ .has(default-test) ✓ .has(not-has) ✓ .close(default-test) ✓ .close(non-existent) ✓ .close() explicit transports ✓ .get(some-logger) ✓ .get(some-other-logger) ExceptionHandler ✓ has expected methods ✓ new ExceptionHandler() ✓ new ExceptionHandler(logger) ✓ .getProcessInfo() ✓ .getOsInfo() ✓ .getTrace(new Error) ✓ .getTrace() ✓ .handle() ExceptionStream ✓ has expected methods ✓ throws without a transport Logger, ExceptionHandler ✓ Custom exitOnError function does not exit (1008ms) .exceptions.unhandle() ✓ does not log to any transports (168ms) ✓ handlers immutable .exceptions.handle() should save the error information to the specified file ✓ when strings are thrown as errors (1173ms) ✓ with a custom winston.Logger instance (1174ms) ✓ with the default winston logger (1173ms) Logger ✓ new Logger() ✓ new Logger({ parameters }) ✓ new Logger({ levels }) defines custom methods ✓ new Logger({ levels }) custom methods are not bound to instance ✓ .add({ invalid Transport }) ✓ .add(TransportStream) ✓ .stream() ✓ .configure() ✓ .configure({ transports }) ✓ .configure({ transports, format }) ✓ .remove() [transport not added] ✓ .remove() [TransportStream] ✓ .clear() [no transports] ✓ .clear() [transports] ✓ { silent: true } Logger (multiple transports of the same type) ✓ should have both transports ✓ .remove() of one transport Logger (levels) ✓ report unknown levels ✓ .() ✓ default levels ✓ custom levels ✓ sets transports levels Logger (level enabled/disabled) ✓ default levels ✓ default levels, transport override ✓ default levels, no transports ✓ custom levels ✓ custom levels, no transports ✓ custom levels, transport override Logger (stream semantics) ✓ 'finish' event awaits transports to emit 'finish' ✓ rethrows errors from user-defined formats Logger (winston@2 logging API) ✓ .log(level, message) ✓ .log(level, undefined) creates info with { message: undefined } ✓ .log(level, null) creates info with { message: null } ✓ .log(level, new Error()) uses Error instance as info ✓ .log(level, message, meta) ✓ .log(level, formatStr, ...splat) ✓ .log(level, formatStr, ...splat, meta) Logger (logging exotic data types) .log ✓ .log(new Error()) uses Error instance as info ✓ .info('Hello') preserve meta without splat format ✓ .info('Hello %d') does not mutate unnecessarily with string interpolation tokens ✓ .info('Hello') and .info('Hello %d') preserve meta with splat format .info ✓ .info(undefined) creates info with { message: undefined } ✓ .info(null) creates info with { message: null } ✓ .info(new Error()) uses Error instance as info - .info('any string', new Error()) Logger (profile, startTimer) ✓ profile(id, info) (102ms) ✓ profile(id, callback) ignores callback (102ms) ✓ startTimer() (103ms) Should bubble transport events ✓ error ✓ warn Should support child loggers & defaultMeta ✓ sets child meta for text messages correctly ✓ sets child meta for json messages correctly ✓ merges child and provided meta correctly ✓ provided meta take precedence over defaultMeta ✓ provided meta take precedence over child meta ✓ handles error stack traces in child loggers correctly ✓ defaultMeta() autobinds correctly Profiler ✓ new Profiler() ✓ .done({ info }) (201ms) UnhandledRejectionHandler ✓ has expected methods ✓ new RejectionHandler() ✓ new RejectionHandler(logger) ✓ .getProcessInfo() ✓ .getOsInfo() ✓ .getTrace(new Error) ✓ .getTrace() ✓ .handle() tailFile ✓ is a function ✓ returns a stream that emits "line" for every line (5104ms) winston ✓ winston.transports ✓ has expected initial state ✓ has expected methods ✓ exposes version - abstract-winston-logger deprecates winston < 3.0.0 properties ✓ .addRewriter() ✓ .addFilter() ✓ .cli() ✓ .clone() ✓ .extend() ✓ .emitErrs ✓ .levelLength ✓ .padLevels ✓ .stripColors format.errors (integration) ✓ logger.log(level, error) ✓ logger.log(level, error) [custom error properties] ✓ logger.log(level, error, meta) ✓ logger.log(level, error, meta) [custom error properties] ✓ logger.log(level, msg, meta) ✓ logger.log(level, msg, meta) [custom error properties] ✓ logger.(error) ✓ logger.(error) [custom error properties] ✓ logger.(error, meta) ✓ logger.(error, meta) [custom error properties] ✓ logger.(msg, meta) ✓ logger.(msg, meta) [custom error properties] ✓ Promise.reject().catch(logger.) ✓ Promise.reject().catch(logger.) [custom error properties] winston.format.colorize (Integration) ✓ non-TTY environment (165ms) File (stress) ✓ should handle a high volume of writes (10489ms) ✓ should handle a high volume of large writes (11255ms) ✓ should handle a high volume of large writes synchronous (10008ms) File (maxsize) ✓ should create multiple files correctly when passed more than the maxsize Console transport ✓ { stderrLevels: ['info', 'error'] } logs to them appropriately ✓ { consoleWarnLevels: ['warn', 'debug'] } logs to them appropriately ✓ { eol } adds a custom EOL delimiter with defaults ✓ logs all levels to stdout ✓ should set stderrLevels to [] by default throws an appropriate error when ✓ if stderrLevels is set, but not an Array { stderrLevels: 'Not an Array' } ✓ if stderrLevels contains non-string elements { stderrLevels: ['good', /^invalid$/, 'valid'] Console transport (abstract-winston-tranport) .log() ✓ should be present {"level":"debug","message":"foo"} ✓ (with no callback) should return true {"level":"debug","message":"foo"} ✓ (with callback) should return true events {"level":"debug","message":"foo"} ✓ should emit the "logged" event winston/transports/file/zippedArchive An instance of the File Transport with tailable true ✓ init logger AFTER cleaning up old files ✓ when created archived files are rolled ✓ should be only 3 files called testarchive.log, testarchive1.log.gz and testarchive2.log.gz winston/transports/file/tailrolling An instance of the File Transport ✓ init logger AFTER cleaning up old files /builddir/build/BUILD/winston-3.2.1/test/fixtures/logs/testtailrollingfiles.log /builddir/build/BUILD/winston-3.2.1/test/fixtures/logs/testtailrollingfiles.log /builddir/build/BUILD/winston-3.2.1/test/fixtures/logs/testtailrollingfiles.log /builddir/build/BUILD/winston-3.2.1/test/fixtures/logs/testtailrollingfiles.log ✓ and when passed more files than the maxFiles ✓ should be 3 log files, base to maxFiles - 1 ✓ should have files in correct order File({ filename }) ✓ should write to the file when logged to with expected object File({ stream }) - should display the deprecation notice options.stream will be removed in winston@4. Use winston.transports.Stream ✓ should write to the stream when logged to with expected object File transport (abstract-winston-tranport) .log() ✓ should be present ✓ (with no callback) should return true ✓ (with callback) should return true events ✓ should emit the "logged" event Stream({ stream }) ✓ should support objectMode streams ✓ should support UTF8 encoding streams ✓ should throw when not passed a stream 153 passing (43s) 3 pending + RPM_EC=0 ++ jobs -p + exit 0 Processing files: nodejs-winston-3.2.1-2.fc33.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.WfHZlw + umask 022 + cd /builddir/build/BUILD + cd winston-3.2.1 + DOCDIR=/builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + cp -pr LICENSE /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + cp -pr README.md /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + cp -pr docs/ /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + cp -pr examples/ /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64/usr/share/doc/nodejs-winston + RPM_EC=0 ++ jobs -p + exit 0 warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/async -> /usr/lib/node_modules/async warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/diagnostics -> /usr/lib/node_modules/diagnostics warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/is-stream -> /usr/lib/node_modules/is-stream warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/logform -> /usr/lib/node_modules/logform warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/one-time -> /usr/lib/node_modules/one-time warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/readable-stream -> /usr/lib/node_modules/readable-stream warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/stack-trace -> /usr/lib/node_modules/stack-trace warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/triple-beam -> /usr/lib/node_modules/triple-beam warning: absolute symlink: /usr/lib/node_modules/winston/node_modules/winston-transport -> /usr/lib/node_modules/winston-transport Provides: nodejs-winston = 3.2.1-2.fc33 npm(winston) = 3.2.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (npm(logform) >= 2.1.1 with npm(logform) < 3) (npm(triple-beam) >= 1.3.0 with npm(triple-beam) < 2) (npm(winston-transport) >= 4.3.0 with npm(winston-transport) < 5) nodejs(engine) >= 6.4.0 npm(async) npm(diagnostics) npm(is-stream) npm(one-time) npm(readable-stream) npm(stack-trace) < 0.1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 Wrote: /builddir/build/RPMS/nodejs-winston-3.2.1-2.fc33.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XjXufx + umask 022 + cd /builddir/build/BUILD + cd winston-3.2.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/nodejs-winston-3.2.1-2.fc33.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0