Comments (7)
@iyefrat Does this happen with all commands or just running a task?
Edit: After looking at the commits, we did fix the auto-clean mechanism. So this may be clean trying to read the metadata of many files? If you run moon clean
manually does it error? And if you delete .moon/cache
does the error go away?
from moon.
- it doesn't happen on all commands, or all tasks, just some tasks. it's not entirely deterministic
- i do get the error when running
moon clean
, consistently - when deleting
.moon/cache
i canmoon check --all
to run for a while but it eventually fails on the error, after which other tasks seem to fail more consistently. seems that this error is more likely to happen the more cache files you have.
running du
in .moon/cache
at this point leads to:
6136 ./hashes
(... states subdirectories ...)
7536 ./states
8416 ./outputs
22104 .
from moon.
Ok that's helpful, then it definitely seems like the cleaning. Let me rework it a bit so that it doesn't read metadata of these files.
from moon.
This is actually a bit tricky. I may have to remove this functionality, or wrap it in a setting or something.
Are these large cache files by chance? Or just a ton of small ones?
from moon.
I've made a few changes that will reduce the amount of syscalls, but not 100% this will fix the problem. I'll pull these into a patch and look into a bigger fix for the next release:
from moon.
Ok I landed those in 1.24, I also added a new setting to control this so you can turn it off if its still an issue.
from moon.
Are these large cache files by chance? Or just a ton of small ones?
I get this with a du .
of 11960 and fd . | wc -l
of 1050 (on 1.23.4).
Updating to 1.24.1 has fixed the problem. Thanks!
from moon.
Related Issues (20)
- [bug] Double bun install HOT 10
- [bug] After update to 1.24, VSCode complains about `moon.yml` matching multiple schemas HOT 2
- [feature] How to create alias for hardcoded words? HOT 1
- [bug] `moon` overwrites files in git's `core.hooksPath` HOT 1
- [feat] Dynamic Bash/Fish tab completion for CLI HOT 1
- [bug] Regression on 1.24.3 on CI environment HOT 5
- [bug] Regression on proto after upgrade to 0.35.0 HOT 8
- [bug] Process /bin/zsh failed with a -1 exit code HOT 7
- [bug] 'moon' is not recognized as an internal or external command, operable program or batch file. HOT 10
- moon_app vs moon-cli HOT 1
- [bug] `moon ci` fails if bun is recently updated HOT 16
- [bug] Unexpected character '.' after patch version number HOT 6
- [bug] moon ci running dependent on target HOT 1
- [feature] Support Nix HOT 6
- [feature] hierarchical project grouping HOT 3
- [feature] ignore cache but still validate changes in inputs? HOT 6
- `dependencyVersionFormat: 'file'` has no affect [bug] HOT 5
- [feature] Support Remote Execution API for caching HOT 3
- [bug] moon does not keep formatting of package.json when updating toolchain version. HOT 3
- [bug] Failed to run `moon docker setup` HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moon.