Bug 1511845

Summary: tests from mocha version included in EPEL7 don't play well with nodejs from the same place
Product: [Fedora] Fedora EPEL Reporter: Petr Benes <petrben>
Component: mochaAssignee: Orphan Owner <extras-orphan>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: nodejs-sig, tchollingsworth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 02:13:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Benes 2017-11-10 09:46:03 UTC
Description of problem:

Attempt of building the mocha 1.18.2 with nodejs 6.11.3 fails with:

+ /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check
+ ./bin/mocha --reporter dot test/acceptance/context.js test/acceptance/diffs.js test/acceptance/duration.js test/acceptance/fs.js test/acceptance/globals.js test/acceptance/http.js test/acceptance/multiple.done.js test/acceptance/pending.js test/acceptance/required-tokens.js test/acceptance/root.js test/acceptance/timeout.js test/acceptance/uncaught.js test/acceptance/utils.js --growl test/grep.js test/hook.async.js test/hook.err.js test/hook.sync.js test/hook.sync.nested.js test/hook.timeout.js test/http.meta.2.js test/http.meta.js test/runnable.js test/runner.js test/suite.js test/utils.js
(node:16866) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
  [90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[93m[0m[33m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[33m[0m[90m[0m[36m[0m[90m[0m[90m[0m[90m[0m[93m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m
  [90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[36m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m
  [90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[31m[0m[90m[0m[31m[0m[90m[0m[31m[0m[90m[0m[31m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m[90m[0m
[92m [0m[32m 151 passing[0m[90m (808ms)[0m
[36m [0m[36m 2 pending[0m
[31m  4 failing[0m
[0m  1) Suite .beforeAll() wraps the passed in function in a Hook adds it to _beforeAll:
      [31mAssertionError: expected '"before all" hook: fn' to be '"before all" hook'[0m
      [42m+ expected[0m [41m- actual[0m
      [42m+"\"before all\" hook"[0m
      [41m-"\"before all\" hook: fn"[0m
      [0m[90m
      at Assertion.prop.(anonymous function) (/usr/lib/node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (/builddir/build/BUILD/package/test/suite.js:140:36)
      at callFn (/builddir/build/BUILD/package/lib/runnable.js:223:21)
      at Test.Runnable.run (/builddir/build/BUILD/package/lib/runnable.js:216:7)
      at Runner.runTest (/builddir/build/BUILD/package/lib/runner.js:374:10)
      at /builddir/build/BUILD/package/lib/runner.js:452:12
      at next (/builddir/build/BUILD/package/lib/runner.js:299:14)
      at /builddir/build/BUILD/package/lib/runner.js:309:7
      at next (/builddir/build/BUILD/package/lib/runner.js:247:23)
      at Immediate.<anonymous> (/builddir/build/BUILD/package/lib/runner.js:276:5)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
[0m
[0m  2) Suite .afterAll() wraps the passed in function in a Hook adds it to _afterAll:
      [31mAssertionError: expected '"after all" hook: fn' to be '"after all" hook'[0m
      [42m+ expected[0m [41m- actual[0m
      [42m+"\"after all\" hook"[0m
      [41m-"\"after all\" hook: fn"[0m
      [0m[90m
      at Assertion.prop.(anonymous function) (/usr/lib/node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (/builddir/build/BUILD/package/test/suite.js:175:35)
      at callFn (/builddir/build/BUILD/package/lib/runnable.js:223:21)
      at Test.Runnable.run (/builddir/build/BUILD/package/lib/runnable.js:216:7)
      at Runner.runTest (/builddir/build/BUILD/package/lib/runner.js:374:10)
      at /builddir/build/BUILD/package/lib/runner.js:452:12
      at next (/builddir/build/BUILD/package/lib/runner.js:299:14)
      at /builddir/build/BUILD/package/lib/runner.js:309:7
      at next (/builddir/build/BUILD/package/lib/runner.js:247:23)
      at Immediate.<anonymous> (/builddir/build/BUILD/package/lib/runner.js:276:5)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
[0m
[0m  3) Suite .beforeEach() wraps the passed in function in a Hook adds it to _beforeEach:
      [31mAssertionError: expected '"before each" hook: fn' to be '"before each" hook'[0m
      [42m+ expected[0m [41m- actual[0m
      [42m+"\"before each\" hook"[0m
      [41m-"\"before each\" hook: fn"[0m
      [0m[90m
      at Assertion.prop.(anonymous function) (/usr/lib/node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (/builddir/build/BUILD/package/test/suite.js:209:37)
      at callFn (/builddir/build/BUILD/package/lib/runnable.js:223:21)
      at Test.Runnable.run (/builddir/build/BUILD/package/lib/runnable.js:216:7)
      at Runner.runTest (/builddir/build/BUILD/package/lib/runner.js:374:10)
      at /builddir/build/BUILD/package/lib/runner.js:452:12
      at next (/builddir/build/BUILD/package/lib/runner.js:299:14)
      at /builddir/build/BUILD/package/lib/runner.js:309:7
      at next (/builddir/build/BUILD/package/lib/runner.js:247:23)
      at Immediate.<anonymous> (/builddir/build/BUILD/package/lib/runner.js:276:5)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
[0m
[0m  4) Suite .afterEach() wraps the passed in function in a Hook adds it to _afterEach:
      [31mAssertionError: expected '"after each" hook: fn' to be '"after each" hook'[0m
      [42m+ expected[0m [41m- actual[0m
      [42m+"\"after each\" hook"[0m
      [41m-"\"after each\" hook: fn"[0m
      [0m[90m
      at Assertion.prop.(anonymous function) (/usr/lib/node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (/builddir/build/BUILD/package/test/suite.js:244:36)
      at callFn (/builddir/build/BUILD/package/lib/runnable.js:223:21)
      at Test.Runnable.run (/builddir/build/BUILD/package/lib/runnable.js:216:7)
      at Runner.runTest (/builddir/build/BUILD/package/lib/runner.js:374:10)
      at /builddir/build/BUILD/package/lib/runner.js:452:12
      at next (/builddir/build/BUILD/package/lib/runner.js:299:14)
      at /builddir/build/BUILD/package/lib/runner.js:309:7
      at next (/builddir/build/BUILD/package/lib/runner.js:247:23)
      at Immediate.<anonymous> (/builddir/build/BUILD/package/lib/runner.js:276:5)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
[0m
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.h9RJk1 (%check)
    Bad exit status from /var/tmp/rpm-tmp.h9RJk1 (%check)
Child returncode was: 1

This is an old known issue caused by a change introduced in nodejs 6.5.0

Comment 1 Fedora Admin user for bugzilla script actions 2020-06-23 02:48:58 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2020-10-30 02:53:22 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 3 Troy Dawson 2024-07-09 02:13:39 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.