bazel-contrib / bazel-contrib/setup-bazel

Cache intermediates when build fails

Open
#75 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
83
Forks
32
PR merge metrics
No merged PRs in 30d

Description

I'm trying to build a fork of https://github.com/envoyproxy/envoy/ in my own repository. I'm hoping to use this action so that caching can improve build times.

I'm hitting timeouts on GitHub's hosted runners - retriggering the job I would assume the units that were compiled in earlier runs would have been cached but I notice they are not.

I'm using the following config

```yaml
- uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
repository-cache: true
external-cache: true
disk-cache: ${{ github.workflow }}
```

Does this action save the cache on failed workflows?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the action handles the bazelisk-cache, repository-cache, external-cache, and disk-cache settings during failed workflows. Confirm whether cache data is saved after a failure and document or test the resulting behavior against the configuration shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.