-
Notifications
You must be signed in to change notification settings - Fork 385
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
'grep: MANIFEST: No such file or directory' with remote caching #884
Comments
I tried running The error sounds like the Gazelle runner script (generated from gazelle.bash.in) is failing to find runfiles. It will check the local directory first, then will fall back to |
Hm, I've removed Gazelle invocation but now rules_docker fails in a similar way: (10:42:01) INFO: Analyzed target //cmd/agentk:push_docker_latest (0 packages loaded, 0 targets configured).
(10:42:01) INFO: Found 1 target...
(10:42:01) [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Target //cmd/agentk:push_docker_latest up-to-date:
bazel-bin/cmd/agentk/push_docker_latest.digest
bazel-bin/cmd/agentk/push_docker_latest
(10:42:01) INFO: Elapsed time: 0.628s, Critical Path: 0.02s
(10:42:01) INFO: 0 processes.
(10:42:01) INFO: Build completed successfully, 1 total action
(10:42:01) INFO: Running command line: bazel-bin/cmd/agentk/push_docker_latest
(10:42:01) INFO: Build completed successfully, 1 total action
/root/.cache/bazel/_bazel_root/9ca8268df963885560ea55034139bea5/execroot/gitlab_k8s_agent/bazel-out/k8-fastbuild/bin/cmd/agentk/push_docker_latest: line 31: /root/.cache/bazel/_bazel_root/9ca8268df963885560ea55034139bea5/execroot/gitlab_k8s_agent/bazel-out/k8-fastbuild/bin/cmd/agentk/push_docker_latest.runfiles/gitlab_k8s_agent/../io_bazel_rules_docker/container/go/cmd/pusher/pusher_/pusher: No such file or directory
make: *** [release-latest-all-ci] Error 1 It feels like
Using |
I've tried to use gazelle repository to reproduce the issue, but something else is happening here. I've added the following to
And then: bazel run //:gazelle # OK
bazel clean # OK
bazel run -s //:gazelle > ./log.txt 2>&1
cat ./log.txt
INFO: Invocation ID: 5d377f40-2ea0-4bef-8bfe-e13b9089e21f
Loading:
Loading: 0 packages loaded
Analyzing: target //:gazelle (1 packages loaded, 0 targets configured)
INFO: Repository bazel_gazelle_go_repository_tools instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule go_repository_tools defined at:
/Users/mikhail/src/bazel-gazelle/internal/go_repository_tools.bzl:117:38: in <toplevel>
ERROR: An error occurred during the fetch of repository 'bazel_gazelle_go_repository_tools':
list_repository_tools_srcs: 2020/08/28 11:26:45 generated file internal/go_repository_tools_srcs.bzl is not up to date
exit status 1
ERROR: /Users/mikhail/src/bazel-gazelle/cmd/gazelle/BUILD.bazel:10:11: no such package '@com_github_pmezard_go_difflib//difflib': no such package '@bazel_gazelle_go_repository_config//': no such package '@bazel_gazelle_go_repository_tools//': list_repository_tools_srcs: 2020/08/28 11:26:45 generated file internal/go_repository_tools_srcs.bzl is not up to date
exit status 1
and referenced by '//cmd/gazelle:gazelle_lib'
ERROR: Analysis of target '//:gazelle' failed; build aborted: Analysis failed
INFO: Elapsed time: 1.137s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (65 packages loaded, 6925 targets configured)
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (65 packages loaded, 6925 targets configured) Ok, this happens even without any modifications, so it's some other issue probably. Edit: I think this was happening because the first gazelle run removed
I'm probably doing something silly but I don't understand what. |
I've created bazelbuild/bazel#12015 as it seem to be a bazel issue. |
It looks like For the Gazelle build issue, let me know if you see that in the default configuration at |
I'm closing this one as it's a bazel issue. For the gazelle weirdness I'm seeing I've created #894. |
Note: this error seems to occur in a nix environment as well. |
What version of gazelle are you using?
49a5b63
What version of rules_go are you using?
bazel-contrib/rules_go@cbb70ea
What version of Bazel are you using?
v3.4.1
Does this issue reproduce with the latest releases of all the above?
These versions are not too old, newer than latest released versions. Haven't tried the latest commits.
What operating system and processor architecture are you using?
linux, x86_64
What did you do?
Recently changed the build to use remote caching with a GCP Bucket.
What did you expect to see?
Passing build with no errors.
What did you see instead?
Now the build is failing with:
I didn't notice the problem because our build does not run gazelle on branches, only on
master
. This is not needed, so I'll remove the invocation as a fix, but it probably shouldn't be happening.For your convenience, here are some relevant links:
The text was updated successfully, but these errors were encountered: