Revamp Closure JsUnit tests runtime and optimize test/build flows.#1137
Merged
sampajano merged 1 commit intogrpc:masterfrom Sep 21, 2021
Merged
Revamp Closure JsUnit tests runtime and optimize test/build flows.#1137sampajano merged 1 commit intogrpc:masterfrom
sampajano merged 1 commit intogrpc:masterfrom
Conversation
46d1f3b to
c538d68
Compare
stanley-cheung
previously approved these changes
Sep 21, 2021
Collaborator
stanley-cheung
left a comment
There was a problem hiding this comment.
This is great work! Thanks for modernizing the build and test flows. Thanks for doing all the research into how other JS projects do this, distill and simplify the workflow to match our use case. This will unblock the effort to sync our codebase and work towards finally be able to make another release!
c538d68 to
5c739d3
Compare
stanley-cheung
approved these changes
Sep 21, 2021
Collaborator
Author
|
Thanks so much for the review, Stanley!! Happy to improve things! :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key changes:
Removed dependency on Bazel / rules_closure for Closure JsUnit tests in favor of google-closure-deps and Protractor.
Optimized Test flows
npm testinpackages/grpc-webnow runs both JsUnit tests on top of Mocha tests.Optimized Dockerfiles
commonDocker images (saves disk space) and revampedprereqsto use multistage build.git cloneto be accidentally in local buildsprereqsfor faster buildprereqsbuild time is down from 5+ minutes to <3 minutes (on 2019 MacbookPro)Other (small) changes:
.dockerignoreto avoid build failures when local node_modules/ are presentstreambodyclientreadablestream.jssince it’s not used and doesn’t build.Follow-up:
closure_js_libraryusages and our bazel rules.