-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Remove default
local = True
flag from OT tests
As per https://bazel.build/reference/be/general#genrule.local, Bazel normally runs tests with a default of `local = False`. Setting `local = True` as we do for FPGA and Verilator tests by default forces genrule to use the "local" spawn strategy, which disallows remote execution, sandboxing and remote caching. We do not use remote execution, but there is no reason for our FPGA tests to be run without sandboxing or without using remotely cached test results. Bazel will still respect the `cache_test_results` option, and so use of this cache can be overridden. Any tests that need to opt out of sandboxing features as the tests originally did can either add the `no-sandbox` tag to remove sandboxing, or the `local` tag to replicate the original functionality, though this will meant that these tests cannot be remotely cached and thus must be re-run every time if there is no result in a local cache. For Verilator, the UART and SPI DPIs spin up terminals which currently do not work in a sandbox environment; hence we make the same change but by default add the `no-sandbox` tag to the Verilator test parmeters for now. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
- Loading branch information
1 parent
8428ef0
commit 18b1c49
Showing
4 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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 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 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