Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--remote_local_fallback lead to undeclared inclusion #16132

Open
Tracked by #19904
liyuyun-lyy opened this issue Aug 19, 2022 · 0 comments
Open
Tracked by #19904

--remote_local_fallback lead to undeclared inclusion #16132

liyuyun-lyy opened this issue Aug 19, 2022 · 0 comments
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Remote-Exec Issues and PRs for the Execution (Remote) team type: bug

Comments

@liyuyun-lyy
Copy link

liyuyun-lyy commented Aug 19, 2022

Description of the bug:

As said in #15519, the default strategy for --remote_local_fallback is local, which will cause build failure and report undeclared inclusion. When remote_execution with clang is failed, Bazel will fallback to local strategy, find the old cache file, which is a dependency file hello.pic.d, and upload it to Buildfarm cache directly. Then Bazel looked into the .d file and find out one header file is missing.

To solve this problem, we need to specify --remote_local_fallback_strategy to sandboxed, which is said no-op and deprecated in the document.

Also,#7480 leads to misunderstanding, --spawn_strategy cannot replace --remote_local_fallback_strategy

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

In this repo, I wrote a demo to reproduce the bug.

Which operating system are you running Bazel on?

linux

What is the output of bazel info release?

5.2.0

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

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

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

No response

@sgowroji sgowroji added type: bug untriaged team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Aug 19, 2022
@zhengwei143 zhengwei143 added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Sep 6, 2022
@tjgq tjgq mentioned this issue Oct 20, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Remote-Exec Issues and PRs for the Execution (Remote) team type: bug
Projects
None yet
Development

No branches or pull requests

4 participants