Add concurrency support for more than one thread#681
Add concurrency support for more than one thread#681j0k3r merged 30 commits intoserverless-heaven:masterfrom
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 👏 |
j0k3r
left a comment
There was a problem hiding this comment.
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 |
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.0is more preferable thanmaster.How did you implement it:
Please see #517 (comment), basically I did two changes:
serizliedCompile: Booleanwithconcurrency: NumberserializedCompile: truetoconcurrency: 1for 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