-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/build: gotip-linux-amd64-misccompile builder fails with no space left on device #71696
Comments
Thanks for filing an issue to track this. Oddly, as Michael K. pointed out, it seems this isn't happening in post-submit so far, yet fairly often in pre-submit recently. Compare with: https://ci.chromium.org/ui/p/golang/builders/ci/gotip-linux-amd64-misccompile?limit=200 As a side note, I wonder if somehow watchflakes isn't reporting this at all, or if it's going to some issue that we're not looking at. For example, issue #57902 has a |
Change https://go.dev/cl/649075 mentions this issue: |
I got a disk space dump in https://logs.chromium.org/logs/golang/buildbucket/cr-buildbucket/8723101639890049153/+/u/step/13/log/2 The culprit is wasmtime
|
wasmtime appears to use XDG_CACHE_DIR if set, via https://crates.io/crates/directories-next#:~:text=/Movies/)-,ProjectDirs,-The%20intended%20use -> https://github.com/bytecodealliance/wasmtime/blob/ec9f885a2ed877deb3ce64050583be0688106f54/crates/cache/src/config.rs#L426. I propose we set XDG_CACHE_DIR to a temporary directory within the build directory, as we do for TMP and GOCACHE. |
Oh, so the $HOME/.cache isn't being cleaned by anything? Yeah, using a cache directory in a per-build work directory that is cleaned sounds good. Did you mean XDG_CACHE_HOME (s/_DIR/_HOME)? Setting that will also catch anything that uses os.UserCacheDir (and doesn't try to override the environment), which seems like a good thing. At some point we might also want to look at macOS and Windows - e.g., it looks like %LocalAppData% is being set, but unclear if that's a directory that gets cleaned. |
Yes, I did mean XDG_CACHE_HOME, apologies. I suppose I don't know if anything is cleaning $HOME/.cache, but it doesn't look like it. There is also some bazel stuff in there (probably from perf builders). |
I think there was some recent (perhaps a few month ago) update for LUCI report and the |
Trybot runs are failing on gotip-linux-amd64-misccompile with
no space left on device
errors. A sample log from one of the trybot runs:Issue 71667 was created but found not to be related.
@golang/release @prattmic
The text was updated successfully, but these errors were encountered: