Config should warn about conflicting options for `--[no]remote_upload_local_results`

Open
#32,948 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reading how Bazel parses and merges --remote_upload_local_results and its negated form across build and common options; the issue gives a minimal config to reproduce the behavior. Trace the option handling and related tests, then add or update a test for the two config lines. Done when Bazel warns about the conflict and the test confirms the warning.

Written by the indexing model from the issue text.

Description

team-Core type: bug untriaged
Description of the bug:

We set build --noremote_upload_local_results in one of our configs as a default base option. On another, strictly for CI, we set build --remote_upload_local_results. this was later changed to common --remote_upload_local_results and we lost remote cache for a while and didn't notice.

Which category does this issue belong to?

Configurability

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
  1. set build --noremote_upload_local_results
  2. set common --remote_upload_local_results
  3. see how there is no upload's happening to the remote cache.
Which operating system are you running Bazel on?

linux arm64

What is the output of bazel info release?

9.1.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

since 7.x, but we're currently on 9.1.0

What's the output of git remote get-url origin; git rev-parse HEAD ?
N/A
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

N/A

Have you found anything relevant by searching the web?

N/A

Any other information, logs, or outputs that you want to share?

N/A

Dominant language
Java
Stars
26.2k
Forks
4.7k
Avg merge
3d 11h
Merged PRs (30d)
125

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/bazel

All issues in bazelbuild/bazel

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.