bazelbuild / bazelbuild/reclient

remote_update_cache=false unintentionally disables remote cache reads (remote_accept_cache has no effect)

Open
#169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
114
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Setting --remote_update_cache=false on rewrapper is supposed to prevent writing results to the remote cache while still accepting cache hits. In practice, it also disables remote cache reads, making --remote_accept_cache=true have no effect.

Steps to reproduce

rewrapper \
--remote_accept_cache=true \
--remote_update_cache=false \
--

Expected: cache hits are returned for previously cached actions.
Actual: every action executes as a cache miss, even when a valid cached result exists.

Contributor guide

Open the contributing guide

Research direction

Start at the rewrapper handling for --remote_accept_cache and --remote_update_cache, then trace how those flags control remote cache reads and writes. Reproduce the issue with both flags enabled as shown and verify that existing remote cache hits are returned while new results are not written.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.