File does not exist errors when building with --experimental_merged_skyframe_analysis_execution
#23863
Labels
--experimental_merged_skyframe_analysis_execution
#23863
Description of the bug:
I originally discussed this bug on the bazel slack with the Aspect folks.
https://bazelbuild.slack.com/archives/C04281DTLH0/p1727907042769939
I was experiencing very flaky builds. Over the past month 60% of my builds failed from weird copy errors. Sometimes it was my
tsconfig.json
like below, other times it didn't say what the file was, but they were allNo such file or directory
errors.I have been able to trigger this 100% of the time by clean expunging my cache and rebuilding.
For the longest time I thought this was related to rules_js/rules_ts. I think it was in bazel 6 I added
build --experimental_merged_skyframe_analysis_execution
to my rc trying to fight long cc builds. I didn't really think about it after. @fmeum however suggested I try running with--noexperimental_merged_skyframe_analysis_execution
.This immediately resolved my issue.
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.
Clean building.
bazel clean --expunge bazel test //... --experimental_merged_skyframe_analysis_execution
I am struggling to find an existing repository I can reproduce this in. I tested out the frontend bazel examples, but failed to reproduce it there. The repo I am getting this in is a good bit more complicated, but I am working to come up with an environment you can poke at.
Which operating system are you running Bazel on?
Fedora 40
What is the output of
bazel info release
?release 7.3.2
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
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
There have been a few seemingly related issues. As best I can tell these weren't my issue, and I am running versions that these should be fixed in.
aspect-build/rules_js#1412
#22073
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: