Skip to content

Investigate Bazel Disk Cache #3448

@Mr-Anyone

Description

@Mr-Anyone

Description of the task

According to bazel, there is a way to save compile outputs. We set a disk cache, and it doesn't seem to be used for some reason.

Software/src/.bazelrc

Lines 22 to 25 in dd34bc9

# Use a local directory as a remote cache. This shares artifacts when switching
# between git branches or workspaces for the same project.
# See https://docs.bazel.build/versions/master/remote-caching.html#disk-cache
build --disk_cache=~/.cache/thunderbots_bazel_disk_cache

The line above doesn't do what it say it does.

Reference:

https://bazel.build/remote/caching#disk-cache

It will be nice if someone fix this because rebuild takes a long time!

FYI: in my local machine, the disk cache directory is ~50GB.

Acceptance criteria

  • Fix Bazel Disk Cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues that describe a bug and possibly a suggested solutionDevOpsFor everything related to logistics of codeDifficulty - 7Well-defined tasks that require some understanding about the relevant system and toolsTestingField testing, test infrastructure, robot tuningTriageWhen it's unclear if it's worth doing or how to start

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions