build: use bazel version from node modules - #26691
devversion wants to merge 2 commits into
Conversation
787cb0b to
b916a55
Compare
|
This is blocked on bazel-contrib/rules_nodejs#390. Need to wait for the fix being available in |
There was a problem hiding this comment.
I'd rather it was more parallel and less clever.
Both docker vars should just be the image, then below when you need to override do the whole
docker:
- image: *browsers_docker_image
Also put the two docker images next to each other in the file so it's more clear they should be updated together
There was a problem hiding this comment.
actually, please remove this whole alias
Bazel no longer depends on the node_modules directory so users should never manually install
There was a problem hiding this comment.
Remove the sections above about installing things
35200c0 to
14294e7
Compare
14294e7 to
c0682b8
Compare
|
@alexeagle Addressed your feedback. Thanks. This should be ready for another review. |
alexeagle
left a comment
There was a problem hiding this comment.
Don't delete the tools/ngcontainer yet - a bunch of other repos still depend on it
thanks for working on this! looks great
There was a problem hiding this comment.
0.7.0 should be changed (to 10.12 I think) - out of caution we like the cache key to change whenever the container does, because we had a cache corruption once
and keep the comment about "if you change the docker_image version"
but no longer need "and the version of com_github... in the /WORKSPACE"
There was a problem hiding this comment.
Done. I've used node-10.12 in order to make it clear that the 10.12 stands for the NodeJS version.
There was a problem hiding this comment.
no point running bazel info release anymore, we know it's the one in yarn.lock
c0682b8 to
f1dd3d6
Compare
f1dd3d6 to
6327372
Compare
There was a problem hiding this comment.
Inconsistent (although arguably more reasonable) indentation.
There was a problem hiding this comment.
Let's keep the comments consistent between test_docs_examples_0 and test_docs_examples_1 🙏
There was a problem hiding this comment.
This was running yarn install with the --cwd aio option.
There was a problem hiding this comment.
Nit: It is not only the PWA score tests that require Chrome. (We run some minimal e2e tests as well now.)
6327372 to
20d37e2
Compare
|
Addressed all comments and rebased multiple times (with the recent changes to Closing and re-opening in favor of triggering CircleCI. |
20d37e2 to
2d96449
Compare
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
You can preview f69489f at https://pr26691-f69489f.ngbuilds.io/. |
This makes yarn_install of ngdeps under Bazel faster, since we don't need many of the large dependencies. It's important because downstream angular/bazel users will observe the same install time.
* No longer depends on a custom CircleCI docker image that comes with Bazel pre-installed. Since Bazel is now available through NPM, we should be able to use the version from `@bazel/bazel` in order to enforce a consistent environment on CI and locally. * This also reduces the amount of packages that need to be published (ngcontainer is removed)
f69489f to
3d48fac
Compare
|
You can preview 3d48fac at https://pr26691-3d48fac.ngbuilds.io/. |
|
This is finally green (after soo much closing and reopening; CI still doesn't run properly). There was a failing test within the |
|
Caretaker: this was approved but pullapprove is stale, merge-assistance please |
This makes yarn_install of ngdeps under Bazel faster, since we don't need many of the large dependencies. It's important because downstream angular/bazel users will observe the same install time. PR Close #26691
* No longer depends on a custom CircleCI docker image that comes with Bazel pre-installed. Since Bazel is now available through NPM, we should be able to use the version from `@bazel/bazel` in order to enforce a consistent environment on CI and locally. * This also reduces the amount of packages that need to be published (ngcontainer is removed) PR Close #26691
* No longer depends on a custom CircleCI docker image that comes with Bazel pre-installed. Since Bazel is now available through NPM, we should be able to use the version from `@bazel/bazel` in order to enforce a consistent environment on CI and locally. * This also reduces the amount of packages that need to be published (ngcontainer is removed) PR Close #26691
By default, `webdriver-manager update` will download the latest ChromeDriver version, which might not be compatible with the Chrome version included in the [docker image used on CI], causing CI failures. Previously, we used to pin the ChromeDriver version on CI in [ngcontainer's Dockerfile][2]. This was accidentally broken in angular#26691, while moving from ngcontainer to default CircleCI docker images. This commit fixes the issue by pinning ChromeDriver to a known compatible version. [1]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/.circleci/config.yml#L16 [2]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/tools/ngcontainer/Dockerfile#L63
…me (#28494) By default, `webdriver-manager update` will download the latest ChromeDriver version, which might not be compatible with the Chrome version included in the [docker image used on CI], causing CI failures. Previously, we used to pin the ChromeDriver version on CI in [ngcontainer's Dockerfile][2]. This was accidentally broken in #26691, while moving from ngcontainer to default CircleCI docker images. This commit fixes the issue by pinning ChromeDriver to a known compatible version. [1]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/.circleci/config.yml#L16 [2]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/tools/ngcontainer/Dockerfile#L63 PR Close #28494
…me (#28494) By default, `webdriver-manager update` will download the latest ChromeDriver version, which might not be compatible with the Chrome version included in the [docker image used on CI], causing CI failures. Previously, we used to pin the ChromeDriver version on CI in [ngcontainer's Dockerfile][2]. This was accidentally broken in #26691, while moving from ngcontainer to default CircleCI docker images. This commit fixes the issue by pinning ChromeDriver to a known compatible version. [1]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/.circleci/config.yml#L16 [2]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/tools/ngcontainer/Dockerfile#L63 PR Close #28494
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
@bazel/bazelin order to enforce a consistent environment on CI and locally.