这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@GantMan
Copy link
Member

@GantMan GantMan commented Dec 28, 2017

No description provided.

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && tslint -p .

PASS __tests__/command_helpers/skipRule.ts (19.263s)
PASS __tests__/command_helpers/getLineWithVersion.ts (19.752s)
PASS __tests__/command_helpers/removeNonVersionCharacters.ts (19.745s)
PASS __tests__/command_helpers/setSolidaritySettings.ts (19.67s)
PASS __tests__/commands/help.ts (20.401s)
PASS __tests__/docs/testDocs.ts (19.674s)
PASS __tests__/command_helpers/checkENV.ts (20.652s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && tslint -p .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T05_29_28_971Z-debug.log

@codecov
Copy link

codecov bot commented Dec 28, 2017

Codecov Report

Merging #153 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #153   +/-   ##
=======================================
  Coverage   81.64%   81.64%           
=======================================
  Files          28       28           
  Lines         534      534           
  Branches       83       83           
=======================================
  Hits          436      436           
  Misses         66       66           
  Partials       32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46cf798...1ce40f0. Read the comment docs.

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && tslint -p .

PASS __tests__/command_helpers/setSolidaritySettings.ts (19.122s)
PASS __tests__/schema/validateExampleSchema.ts (19.428s)
PASS __tests__/command_helpers/checkENV.ts (20.129s)
PASS __tests__/command_helpers/getLineWithVersion.ts (19.956s)
PASS __tests__/commands/help.ts (20.237s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && tslint -p .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T05_33_12_692Z-debug.log

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && yarn test:extras

PASS __tests__/command_helpers/getLineWithVersion.ts (23.907s)
PASS __tests__/command_helpers/setSolidaritySettings.ts (24.511s)
PASS __tests__/command_helpers/checkENV.ts (25.693s)
PASS __tests__/command_helpers/removeNonVersionCharacters.ts (28.207s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && yarn test:extras`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T05_41_06_711Z-debug.log

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && yarn test:extras

PASS __tests__/schema/validateExampleSchema.ts (19.073s)
PASS __tests__/docs/testDocs.ts (19.771s)
PASS __tests__/commands/help.ts (20.622s)
PASS __tests__/command_helpers/skipRule.ts (21.785s)
PASS __tests__/command_helpers/removeNonVersionCharacters.ts (20.981s)
PASS __tests__/command_helpers/checkENV.ts (21.779s)
PASS __tests__/command_helpers/setSolidaritySettings.ts (21.148s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && yarn test:extras`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T05_48_23_071Z-debug.log

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && yarn test:extras

PASS __tests__/command_helpers/setSolidaritySettings.ts (33.157s)
PASS __tests__/command_helpers/checkENV.ts (33.828s)
PASS __tests__/command_helpers/removeNonVersionCharacters.ts (34.189s)
PASS __tests__/command_helpers/skipRule.ts (34.354s)
PASS __tests__/docs/testDocs.ts (33.707s)
PASS __tests__/command_helpers/getLineWithVersion.ts (34.909s)
PASS __tests__/commands/help.ts (35.276s)
PASS __tests__/schema/validateExampleSchema.ts (37.601s)
PASS __tests__/commands/solidarity.ts (47.047s)
PASS __tests__/extensions/extensionCheck.ts (47.228s)
PASS __tests__/index.ts (49.266s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && yarn test:extras`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T15_51_11_927Z-debug.log

@TravisBuddy
Copy link
Contributor

Travis tests have failed

Hey Gant,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: node

npm run test:ci
> solidarity@1.1.0 test:ci /home/travis/build/infinitered/solidarity
> jest --ci && yarn test:extras

PASS __tests__/docs/testDocs.ts (14.278s)
PASS __tests__/commands/help.ts (22.009s)
PASS __tests__/command_helpers/setSolidaritySettings.ts (27.881s)
PASS __tests__/schema/validateExampleSchema.ts (25.26s)
PASS __tests__/command_helpers/removeNonVersionCharacters.ts (29.731s)
PASS __tests__/command_helpers/getLineWithVersion.ts (27.442s)
PASS __tests__/command_helpers/checkENV.ts (28.473s)
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Object.send (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/home/travis/build/infinitered/solidarity/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! solidarity@1.1.0 test:ci: `jest --ci && yarn test:extras`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the solidarity@1.1.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-12-28T16_10_22_886Z-debug.log

"shipit": "tsc && np",
"test": "jest && yarn test:extras",
"test:ci": "jest --ci && yarn test:extras",
"test:ci": "jest --ci --runInBand && yarn test:extras",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattathompson - this was the issue with testing on travis CI! I thought --ci would do it, but nope!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GantMan: Why does not running the specs serially cause issues on Travis? Might be a dumb question but, I'll take that risk

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a dumb question. So tests are designed to be forked processes for speed, but CI stops forked processes in order to protect from people getting insane processing power on those public machines or causing fork bombs and killing the server.

Result: When Jest forks a process, the server kills it ASAP, causing closed connections before a test finishes running, resulting in an error.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TLDR: The Jest process farm fights the Travis process killer and Jest loses 80% of the time causing non-deterministic testing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wow. Thats insane. Thanks for the explanation.

@GantMan GantMan merged commit 6d6307b into master Dec 28, 2017
@GantMan GantMan deleted the use_madge branch December 28, 2017 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants