p4lang / p4-constraints

Constraints on P4 objects enforced at runtime
Apache License 2.0
14 stars 7 forks source link

Updated CI to use --disk-cache. #125

Closed smolkaj closed 11 months ago

smolkaj commented 11 months ago

Changes

Motivation

Using --disk_cache has the following advantage [source]:

running bazel build without --disk_cache will result in re-builds if you make changes and change them back, even inside the same directory

Adding new Action cache entries increases the expected relevance ("freshness") of cache hits.

Expected result

Faster CI runs. Reduction in slow CI runs.

Empirical result

The time for a re-run of the bazel CI script with no code changes drops from ~ 2 minutes to < 1 min.

Before

image

After

image