Skip to content

Caching data in workflows is not working #452

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

Open
2 tasks
felixhekhorn opened this issue Mar 20, 2025 · 1 comment
Open
2 tasks

Caching data in workflows is not working #452

felixhekhorn opened this issue Mar 20, 2025 · 1 comment
Labels
benchmarks Benchmark (or infrastructure) related

Comments

@felixhekhorn
Copy link
Contributor

Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.

from https://github.com/NNPDF/eko/actions/runs/13971535800/job/39114365372#step:25:2

this is because this


is just wrong

This holds in all places where the cache is used:

  • Python unit tests
  • PyPI
  • Rust unit tests

The solution will imply a series of steps, which include at least:

  • make the path a parameter in the Python workflow files - for Rust it is hard coded
  • do something against linking the file for Rust from Python. Currently the link is created when downloading, this will break when we only download once. Solution might be to permanently link the directory
@felixhekhorn felixhekhorn added the benchmarks Benchmark (or infrastructure) related label Mar 20, 2025
@felixhekhorn
Copy link
Contributor Author

When resolving the data cache we can also improve the independent poetry cache by adjusting the Python action- see https://github.com/actions/setup-python?tab=readme-ov-file#caching-packages-dependencies . Thanks to @alecandido for pointing out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks Benchmark (or infrastructure) related
Projects
None yet
Development

No branches or pull requests

1 participant