VeryGoodOpenSource / VeryGoodOpenSource/very_good_cli

[CI - test_optimizer] GitHub Actions, Melos, very_good test lead sometimes to cache error

Open
#947 13 comments 15 reactions 3 assignees View on GitHub

@erickzanardo is already working on this.

Since Oct 21, 2025.

bug p1
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.