Skip to content

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

@md-weber

Description

@md-weber

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.

Metadata

Metadata

Labels

bugSomething isn't working as expectedp1High-priority issues at the top of the work list

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions