Skip to content
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

Worker is terminated #169

Open
rafaelbnp opened this issue Jun 18, 2019 · 4 comments
Open

Worker is terminated #169

rafaelbnp opened this issue Jun 18, 2019 · 4 comments

Comments

@rafaelbnp
Copy link

rafaelbnp commented Jun 18, 2019

We're having the following build error since yesterday. I'm not able to reproduce locally yet but it fails on our CI when running ember test. I've tried many different things but the error persists. This is blocking our builds so any help would be much appreciated.

Note that this time it mentioned 'ember-data-copyable' but sometimes it mentions a different dependency so not sure if that's relevant.

Build Error (broccoli-persistent-filter:Babel > [Babel: ember-data-copyable]) in ember-data-copyable/-private/symbols.js

Worker is terminated
@stefanpenner
Copy link
Collaborator

stefanpenner commented Jun 19, 2019

We’ve been trying to improve the error messages that come out of workerpool.

Could you share the version of workerpool that is being pulled in? I want to see if your in an old version, or if there are additional issues to resolve.

Also, to debug this further please set the environment variable JOBS=1. That should run the worker code in the main thread and potentially provide a more useful stacktrace.

@rafaelbnp
Copy link
Author

rafaelbnp commented Jun 19, 2019

Actually, after setting the environment variable JOBS=1 it worked 🎉

Looks like there's an issue with parallelism added to broccoli-babel-transpiler and the fix is to set the JOBS environment variable to 1 to essentially disable the parallelism on CI.

Thanks @stefanpenner for getting back to me on this and please let me know if you think this is not the proper fix.

References:
emberjs/ember.js#15641
https://github.com/babel/broccoli-babel-transpiler#number-of-jobs
https://github.com/mwisner/ember-ci-examples/blob/master/.circleci/config.yml

@stefanpenner
Copy link
Collaborator

@rafael-paiva well, I wouldn't consider that fixed. Maybe a work-around.

Do you have a reproduction?

@rafaelbnp
Copy link
Author

Right, I needed at least a quick work around to unblock my builds.

@stefanpenner like I said I can't even reproduce this on my local env, it only fails on CI so I assumed it had something to do with this parallelism issue on CIs. Although I'm not sure why it started happening now. I don't know what else information I can give you. If you can guide me I'd be happy to help.

Could you share the version of workerpool that is being pulled in?

Does this help?

$ npm ls workerpool
client
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]  deduped
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] 
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] 
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected] 
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └── [email protected] 
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └─┬ [email protected]
│ │     └── [email protected] 
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] 
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] 
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └── [email protected]  deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]  deduped
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected]  deduped

Additionally, this is what I added to my config.yml file (the JOBS line):

docker:
      - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
        command: /sbin/init
        environment:
          JOBS: 1 # https://github.com/emberjs/ember.js/issues/15641

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

2 participants