-
Notifications
You must be signed in to change notification settings - Fork 416
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
Add concurrency support for more than one thread #681
Add concurrency support for more than one thread #681
Conversation
@miguel-a-calles-mba @j0k3r can you have a look and merge this? I am using vicary's fork for half a year and would love to switch back to the official package. |
@coyoteecd we are in the process of cleaning up stuff to release 5.4.0 and this will be part of it |
Sorry I made a mistake while merging |
Not sure if I'm doing it wrong, but I found myself learning the backstory every conflict or two in the process of rebasing. This takes a day or two, could only do this on weekends. |
Use `.map(..., { concurrency })` instead of `.mapSeries(...)`
… serverless.yml. Left only number conversion, since CLI options are typed as string
@j0k3r During my rebase I found that the current master has these patterns. // tests/packageModules.test.js
return BbPromise.each([ '1.18.1', '2.17.0', '10.15.3' ], version => {
getVersionStub.returns(version);
return expect(module.packageModules()).to.be.fulfilled.then(() => BbPromise.all([]));
}).then(() =>
BbPromise.each([ '1.17.0', '1.16.0-alpha', '1.15.3' ], version => {
getVersionStub.returns(version);
return expect(module.packageModules()).to.be.fulfilled.then(() => BbPromise.all([]));
})
); It has a strong code-smell here Not meant to make things more complicated than it should, please feel free to ignore this if it's intended. I'll be rebasing to master as-is, just a friendly heads-up. |
Mostly to fix security issue but also to keep them updated. Also: - fix an ESLint error: `8:16 error Do not access Object.prototype method 'hasOwnProperty' from target object no-prototype-builtins` - run prettier (following update) - update `format` script with `$(pwd)` to fix issue with higher version of ESLint (>5) - prettier now run on every js files
* Add copyExistingArtifacts to packageModules * Refactor packageModules * Set service path * Generate artifact name from service * Output artifacts to .webpack before copying * Set artifact name for service packaging * Skip webpack:compile if --no-build is set * Add webpack:package:copyExistingArtifacts hook * Make packageModules & packExternalModules no-op if skipCompile is set * Refactor packageModules * Remove artifact location setting from packageModules * Update cleanup to check this.keepOutputDirectory * Fix path join on Windows Co-authored-by: Miguel A. Calles MBA <44813512+miguel-a-calles-mba@users.noreply.github.com>
150b1a8
to
9f6e3d2
Compare
The rebase is finished, this should be ready for merging. |
Awesome job for the rebase @vicary 👏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think some tests should be updated as well about { concurrency: Infinity }
. Don't you think?
I agree that using To reduce ambiguity, how about we change the tests to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
This adds support for the `concurrency` option that was added to serverless-webpack in serverless-heaven/serverless-webpack#681 Fixes AnomalyInnovations#205
What did you implement:
Adding concurrency support for more than one thread.
Conditionally supersedes #680 if
release/5.4.0
is more preferable thanmaster
.How did you implement it:
Please see #517 (comment), basically I did two changes:
serizliedCompile: Boolean
withconcurrency: Number
serializedCompile: true
toconcurrency: 1
for backward compatibilityHow can we verify it:
Use the config below when packaging:
Todos:
Is this ready for review?: Yes
Is it a breaking change?: No