lowRISC / lowRISC/opentitan

[ci] Share bazel verilator model build between jobs

Open
#12,574 0 comments 0 reactions 1 assignee Claimed by @milesdai View on GitHub
Component:CI Earlgrey-PROD Triaged Priority:P2 Type:Enhancement
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

CI currently runs two parallel jobs to run the fast and slow verilator tests on earlgrey. Each job will first build the Verilator model for the chip before running the tests. It should be possible to avoid this duplicate work by using one job to just build the Verilator model and upload it as an artifact. Then all subsequent test jobs can download that model and run tests. Alternatively, it may be possible to just upload the entire Bazel local cache instead of trying to locate and place the Verilator model itself.

Even though we have a remote cache, PRs cannot write to it which necessitates this mechanism to transfer artifacts between jobs within the same PR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.