Skip to content

Vue-cli parallelism error at building when CPU limitations #2208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JFGHT opened this issue Aug 14, 2018 · 6 comments
Closed

Vue-cli parallelism error at building when CPU limitations #2208

JFGHT opened this issue Aug 14, 2018 · 6 comments

Comments

@JFGHT
Copy link

JFGHT commented Aug 14, 2018

Version

3.0.0

Node and OS info

Yarn 1.9.4 / CircleCI docker img: circleci/node:10.8-stretch-browsers

Steps to reproduce

  • Use the free version of CircleCI.
  • Build with CircleCI.

What is expected?

Normal build

What is actually happening?

events.js:183
throw er; // Unhandled 'error' event
^
Error: This socket has been ended by the other party
at Socket.writeAfterFIN (...)


Deactivating the parallelism is a workaround. More info here: https://forum.vuejs.org/t/solution-to-building-error-in-circleci-or-any-other-machine-with-cpu-limitations/40862

I think this should be in the docs.

@JFGHT JFGHT changed the title Vue-cli parallelism error when CPU limitations Vue-cli parallelism error at building when CPU limitations Aug 14, 2018
@yyx990803
Copy link
Member

Not sure if that's the real cause as our own tests run on free Circle CI.

@JFGHT
Copy link
Author

JFGHT commented Aug 14, 2018

Are you able to reproduce it?

@haoqunjiang
Copy link
Member

As quoted here:

The issue with this on Dockerized services such as CircleCI is that the container thinks it has access to all of the hosts cores, although its being limited down to 4 by another process.

I've encountered this issue before, with jest.

@yyx990803
Copy link
Member

@JFGHT Vue CLI's own tests runs on Circle CI free tier all the time, and it is passing right now. The only thing I can think of is that we are open source so we get 4 containers by default. Are you building from a private repo? In addition, can you share your Circle CI config.yaml?

One obvious option is disabling parallel by default in CI environments, although I'd like to avoid that if possible, as that would lead to non-optimal performance in CI systems that do support multiple cores.

@JFGHT
Copy link
Author

JFGHT commented Aug 14, 2018

Yes, I'm building in a private repo.

Here is the config.yaml: https://pastebin.com/tJUuktPa

@JFGHT
Copy link
Author

JFGHT commented May 10, 2019

Fixed #3850.

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

No branches or pull requests

3 participants