VeryGoodOpenSource / VeryGoodOpenSource/very_good_cli
[CI - test_optimizer] GitHub Actions, Melos, very_good test lead sometimes to cache error
@erickzanardo is already working on this.
Since Oct 21, 2025.
- Dominant language
- Dart
- Stars
- 2.4k
- Forks
- 244
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 25
Description
Description
We use GitHub Actions with the caching support of the subosito/flutter-action@v2 together with Melos and every now and then we run into the following error:
cache/bundled/test_optimizer_0.1.0+1_e324e538d331470906db7fbaea6b8d957bcce68d/hooks/build/hooks/pre_gen/pre_gen_7389adb0f4462262bdd04123d3826c0231f89ed6.dart': No such file or directory
Melos config looks like this:
ci:test:
run: |
melos exec -c 4 -- \
very_good test --coverage --test-randomize-ordering-seed random
Steps To Reproduce
- Create a minimal project with melos multiple packages
- Add a CI with GitHub Actions
- Run very_good test with 4 concurrencies via melos in all packages
Expected Behavior
No error
Additional Context
I know that is not a perfect issue, but any help is much appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.