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_download_minimal does not work with --build_event_publish_all_actions #10971

Closed
Tracked by #12665
scele opened this issue Mar 16, 2020 · 1 comment
Closed
Tracked by #12665
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

@scele
Copy link
Contributor

scele commented Mar 16, 2020

Description of the problem / feature request:

--remote_download_minimal does not work with --build_event_publish_all_actions.

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

$ cat BUILD 
cc_binary(
    name = "test",
    srcs = ["test.cc"],
)
$ cat test.cc 
int main() {
    return 1;
}
# First, make sure that all actions are populated in the remote cache
# I'm using buildbarn, but I don't think this is related to the remote cache implementation.
bazel build ... --remote_cache=grpc://127.0.0.1:8980 --remote_instance_name=local --remote_upload_local_results=true
# Then, clean to ensure that remote_download_minimal is kicking in.
bazel clean
# Observe a failure from writing build events.
bazel build ... --remote_cache=grpc://127.0.0.1:8980 --remote_instance_name=local --remote_upload_local_results=true --remote_download_minimal --build_event_json_file=$PWD/be.json --build_event_publish_all_actions
INFO: Invocation ID: 87151a7b-6ca0-4c26-9ced-b4534bd969e9
INFO: Analyzed target //:test (13 packages loaded, 47 targets configured).
INFO: Found 1 target...
INFO: Deleting stale sandbox base /mnt/data2/cache/bazel/_bazel_lpeltonen/1da3da6443024d4847298a76d6f71841/sandbox
Target //:test up-to-date:
  bazel-bin/test
INFO: Elapsed time: 3.285s, Critical Path: 0.98s
INFO: 2 processes: 2 remote cache hit.
ERROR: Unable to write all BEP events to file due to 'java.io.FileNotFoundException: /mnt/data2/cache/bazel/_bazel_lpeltonen/1da3da6443024d4847298a76d6f71841/execroot/__main__/bazel-out/k8-fastbuild/bin/_objs/test/test.pic.o (No such file or directory)'
INFO: Build completed successfully, 5 total actions

What operating system are you running Bazel on?

Ubuntu 18.04.

What's the output of bazel info release?

release 2.2.0

Also reproduces on recent master (3c89a91).

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

git@github.com:bazelbuild/bazel.git
3c89a910ad1c59160ba4058c47b6752ce9e7efb6
3c89a910ad1c59160ba4058c47b6752ce9e7efb6

Have you found anything relevant by searching the web?

No.

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

I think I understand what the issue is, I have opened #10972 that shows one way to fix the issue.

@aiuto aiuto added team-Remote-Exec Issues and PRs for the Execution (Remote) team untriaged labels Mar 24, 2020
@coeuvre coeuvre added P2 We'll consider working on this in future. (Assignee optional) type: bug and removed untriaged labels Dec 9, 2020
@coeuvre coeuvre self-assigned this Dec 9, 2020
@coeuvre
Copy link
Member

coeuvre commented Oct 21, 2022

I think this is fixed by #16123. Closing.

@coeuvre coeuvre closed this as completed Oct 21, 2022
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

Successfully merging a pull request may close this issue.

3 participants