-
Notifications
You must be signed in to change notification settings - Fork 12k
Prepare bazel integration tests #17304
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
Merged
mgechev
merged 23 commits into
angular:master
from
filipesilva:prepare-bazel-integration-tests
Apr 7, 2020
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
457b046
build: fix bazel tests to run on windows
filipesilva 9790ad3
build: use runfiles on windows
filipesilva 3235d07
fix(@angular-devkit/architect): temporary workaround for TS bug with …
filipesilva fe680df
build: build and test @ngtools/webpack with Bazel
filipesilva bdda757
build: add module_name to @angular-devkit/build-optimizer Bazel rule
filipesilva 0fc9189
refactor: use BUILD.bazel instead of BUILD
filipesilva fd9441a
build: use ts_json_schema's ts output directly
filipesilva ef82fc9
build: also produce tar.gz for bazel npm_package rules
filipesilva 2513487
build: move BUILD.bazel files for secondary entry points into own folder
filipesilva 425de7d
build: include json files in @angular-devkit/build-optimizer Bazel build
filipesilva c807ebd
build: update com_google_protobuf shallow_since arg
filipesilva 96c3874
build: workaround bazel module resolution bug
filipesilva 6c0ff8b
test(@angular-devkit/architect): run tests in Bazel
filipesilva 3f2392b
fix(@schematics/schematics): add module_name and data files
filipesilva e1cb441
fix(@angular-devkit/schematics): add module_name and data files
filipesilva d09c6d5
test(@angular-devkit/schematics-cli): test with Bazel
filipesilva 51fc2ea
fix(@schematics/angular): include assets in ts library
filipesilva 9fcd794
test(@angular/pwa): test with Bazel
filipesilva b283747
test(@angular/cli): test with Bazel
filipesilva 5dfa64e
build: update yarn lock
filipesilva ac384fd
style: reformat bazel files
filipesilva 29137eb
build: add missing raw-loader dependency
filipesilva 5dba778
docs: add windows note to bazel process doc
filipesilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
Having to put all the dependencies in two places is really awkward and a potential maintenance burden. Hopefully this can be rectified in the future.
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.
At its core, this is needed because
rules_nodejs
doesn't understand yarn workspaces. It's not super clear to me whether it should though, or how yarn pnp plays into that either.We could reduce this burden with some health checks on our repository, like checking that these versions are the same everywhere they are mentioned, plus some exceptions. Maybe at that point what we need to to also loop in dev-infra to share that tooling between fw/comp/cli. We're the only ones that use yarn workspaces afaik but we're not the only ones that have versions sprinkled around that need to be matched.
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.
For now, I think extra validation checks are going to be paramount. Especially to ensure that the tests are using the same dependency versions that the users are using when they install the package.
I think this is also problematic if we need to use a different version of a dependency for a particular package (recent build optimizer TS issue, for example) or is there a mechanism for that situation? I don't think there are any of these currently though.
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.
cc @josephperrott
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.
We should also update renovate configuration now, so that it doesn't create separate PRs for dependencies and dev deps, as otherwise we'll have 2 PRs for each dependency update.