-
Notifications
You must be signed in to change notification settings - Fork 757
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
[bazel] lowRISC/misc-linters does not cache Python wheels #12538
Comments
As a meta-question: do we care? It seems a bit bizarre to be hot on running a licence check linting flow in an air-gapped environment! Can't we just not bother running it? |
That's a great question, and one I asked myself before I endeavored down this path, and the answer I still believe is that we shouldn't need to! However, reality set in, and I had to side line my idealist approach in the interim. Specifically when I run a But this was puzzling to me because the bazel documentation clearly states "By default, external dependencies are fetched as needed during So something odd is happening that I need to track down, but until then I did not want to hold up the Bazel transition on something I know how to fix in the iterim. Specifically, I already learned how to cache Python wheels that are downloaded/installed with the I will keep this issue open, and have added a task (see above) to track down this issue to eventually simplify the need for this work around. |
This update the lowrisc_lint external repository to accomodate the latest patches and partially address lowRISC#12538. Signed-off-by: Timothy Trippel <[email protected]>
This update the lowrisc_lint external repository to accomodate the latest patches and partially address lowRISC#12538. Signed-off-by: Timothy Trippel <[email protected]>
This update the lowrisc_lint external repository to accomodate the latest patches and partially address #12538. Signed-off-by: Timothy Trippel <[email protected]>
Ah, I see. I guess I was asking something even stupider: why are we running the licence checker in Bazel, which I thought was supposed to be for building our software? It's not clear to me that compiling a bunch of C and assembly code requires a linting script that looks at the first few lines of each file... |
It is for two reasons: 1) provide developers with a simple |
The lowRISC/misc-linters repository currently makes use of the default
rules_python
repository to register a hermetic Python toolchain and packages. Like #12091, the Python wheels in this dependency must be cached so that this (opentitan) repo can be built in an air-gapped environment. To accomplish this:Addressed in: lowRISC/misc-linters:#28
lowRISC/misc-linters
repository must be updated torules_python
repository (that allows passing thepip_install
rule a local directory to look for packages before going to the network), andpip_install
rule (similar to [bazel] addpip_wheel
repository rule #12091)Addressed in: #12562
lowRISC/misc-linters
dependency (in this Bazel workspace) must be updated to include the above updatesAddressed in: TBD
opentitan_functest
) targetsThe text was updated successfully, but these errors were encountered: