-
Notifications
You must be signed in to change notification settings - Fork 813
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
[quality] Update repository quality suite #15044
Conversation
Oh, irony: The |
f1d07ce
to
d6bb7fd
Compare
Signed-off-by: Chris Frantz <[email protected]>
1. Move `clang_format_{check,fix}` to the `quality` subdir. 2. Execute `clang_format_check` as a test. Signed-off-by: Chris Frantz <[email protected]>
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.
LGTM, Thanks!
# Directories used exclusively to store build artifacts are still copied into. | ||
"./build-out/**", | ||
"./build-bin/**", | ||
# fusesoc build dir |
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.
Nit: I think the docs also get built in build
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.
I'm not sure what the suggestion is here. This was copied directly from the prior incarnation in the root BUILD file.
These excludes are slated for deletion once we get the CI doing everything through bazel.
Signed-off-by: Chris Frantz <[email protected]>
Signed-off-by: Chris Frantz <[email protected]>
PR lowRISC#15044 did not update bazel airgap environment prep script. Signed-off-by: Eli Kim <[email protected]>
PR lowRISC#15044 did not update bazel airgap environment prep script. Signed-off-by: Eli Kim <[email protected]>
PR #15044 did not update bazel airgap environment prep script. Signed-off-by: Eli Kim <[email protected]>
Signed-off-by: Timothy Trippel <[email protected]>
This updates the way the go toolchain is downloaded/included in our Bazel workspace to enable Bazel builds in an airgapped environment. Specifically, lowRISC#15044 exposed a bug in our go toolchain dependency that caused Bazel builds to fail in the airgapped environment. The fix for this was two fold: 1. manually specify the exact toolchain tarballs to be downloaded using the `go_download_sdk` repo rule, instead of the `go_register_toolchain` rule which attempts to automatically find the right toolchain to download by downloading a file from the Internet that is not cacheable, and therefore not accessible in an airgapped environment, and 2. fork and patch `rules_go` to only download go toolchains using the `ctx.download_and_extract` action (instead of the `ctx.download` action) which caches said downloads in the repository cache that is moved to the airgapped environment. See lowRISC/rules_go@07fe5f4 for more details. Signed-off-by: Timothy Trippel <[email protected]>
This updates the way the go toolchain is downloaded/included in our Bazel workspace to enable Bazel builds in an airgapped environment. Specifically, lowRISC#15044 exposed a bug in our go toolchain dependency that caused Bazel builds to fail in the airgapped environment. The fix for this was two fold: 1. manually specify the exact toolchain tarballs to be downloaded using the `go_download_sdk` repo rule, instead of the `go_register_toolchain` rule which attempts to automatically find the right toolchain to download by downloading a file from the Internet that is not cacheable, and therefore not accessible in an airgapped environment, and 2. fork and patch `rules_go` to only download go toolchains using the `ctx.download_and_extract` action (instead of the `ctx.download` action) which caches said downloads in the repository cache that is moved to the airgapped environment. See lowRISC/rules_go@07fe5f4 for more details. Signed-off-by: Timothy Trippel <[email protected]>
This updates the way the go toolchain is downloaded/included in our Bazel workspace to enable Bazel builds in an airgapped environment. Specifically, lowRISC#15044 exposed a bug in our go toolchain dependency that caused Bazel builds to fail in the airgapped environment. The fix for this was two fold: 1. manually specify the exact toolchain tarballs to be downloaded using the `go_download_sdk` repo rule, instead of the `go_register_toolchain` rule which attempts to automatically find the right toolchain to download by downloading a file from the Internet that is not cacheable, and therefore not accessible in an airgapped environment, and 2. fork and patch `rules_go` to only download go toolchains using the `ctx.download_and_extract` action (instead of the `ctx.download` action) which caches said downloads in the repository cache that is moved to the airgapped environment. See lowRISC/rules_go@07fe5f4 for more details. Signed-off-by: Timothy Trippel <[email protected]>
This updates the way the go toolchain is downloaded/included in our Bazel workspace to enable Bazel builds in an airgapped environment. Specifically, lowRISC#15044 exposed a bug in our go toolchain dependency that caused Bazel builds to fail in the airgapped environment. The fix for this was to manually specify the exact toolchain tarballs to be downloaded using the `go_download_sdk` repo rule, instead of the `go_register_toolchain` rule which attempts to automatically find the right toolchain to download by downloading a file from the Internet that is not cacheable, since no sha256 is provided to the `ctx.download` action, and therefore not accessible in an airgapped environment. Signed-off-by: Timothy Trippel <[email protected]>
This updates the way the go toolchain is downloaded/included in our Bazel workspace to enable Bazel builds in an airgapped environment. Specifically, #15044 exposed a bug in our go toolchain dependency that caused Bazel builds to fail in the airgapped environment. The fix for this was to manually specify the exact toolchain tarballs to be downloaded using the `go_download_sdk` repo rule, instead of the `go_register_toolchain` rule which attempts to automatically find the right toolchain to download by downloading a file from the Internet that is not cacheable, since no sha256 is provided to the `ctx.download` action, and therefore not accessible in an airgapped environment. Signed-off-by: Timothy Trippel <[email protected]>
Refactor the "quality" suite for the OpenTitan repository.
TL;DR:
bazel test //quality/...
bazel run <some_check>
to insteadbazel test <some_check> --test_output=streamed
.test
invocation and new labels.This change should not be committed until after lowRISC/misc-linters#30.