-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel info
-> cquery
invalidate part of cache
#22360
Comments
I'm not sure if this is related, but I also noticed that commands such as |
@tpasternak You are right. Checked and even just |
@tpasternak Are you using I'm seeing some weird Skyframe invalidation when using these flags, but not without them.
|
Possibly related: #22367 @tpasternak Could you build Bazel with the patch I added to that issue and rerun on your reproducer? |
Does this repro with |
@fmeum with your help I figured out what's wrong - I was using |
Probably my comments are unrelated to the original issue, sorry for messing |
Repro without |
Can we up this? The bug is still reproduced. |
Might not be realated (it's rather a problem with my settings), but I had an issue with an invalidated action cache. It would drop between runs of
It affects semantics of
but not
Setting it to
So it might be feasible to look for flags distinct between commands. |
Reproducing even without flags ( |
Found out, that running
|
Description of the bug:
Running:
1 -
bazel info
2 -
bazel cquery target
3 -
bazel run/build target
Invalidate part of cache (for example, suddenly npm modules start extracting, but must be taken from cache). For more info see reproduction steps
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add to
~/.bazelrc
:1 -
git clone https://github.com/bazelbuild/examples.git
- Clone examples repo2 -
cd frontend
- go to frontend example.3 -
bazel build //next.js:next
- build application4 -
bazel build //next.js:next
- check build is from cache5 -
bazel info && bazel cquery //next.js:next && bazel build //next.js:next
After step 5, in logs (
bazel info server_log
) we see there wereExtracting npm package
(building without info and cquery doesn't have extracting npm package):Which operating system are you running Bazel on?
macos
What is the output of
bazel info release
?release 7.1.0
If
bazel info release
returnsdevelopment 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 HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
#17914
Any other information, logs, or outputs that you want to share?
GrpcServerImpl.executeCommand
logs, without --client-env (removed it)The text was updated successfully, but these errors were encountered: