iiasa / iiasa/message_ix

Enable caching in conda-forge workflow

Open
#717 0 comments 0 reactions 1 assignee View on GitHub

@glatterf42 is already working on this.

Since Jun 6, 2023.

ci
Dominant language
Jupyter Notebook
Stars
150
Forks
178
Avg merge
17h 32m
Merged PRs (30d)
2

Description

During the work on #715, I discovered that our conda-forge CI tests intend to use the cache action, but never do so successfully. The whole issue is described in detail in actions/cache/issues/1177.

After finding a way to fix the conda-forge CI tests, I reset the branch to throw out all unwanted commits, including all attempts of fixing the cache path. This also prevents scope creep.

One further source of scope creep might be this: while looking into mamba as a replacement for conda, I found that micromamba in particular comes with a setup action that has caching integrated. Pending @khaeru's opinion, we might switch to mamba/micromamba entirely rather than just using the mamba solver in conda. In that case, the paths here don't need fixing; instead, we can replace the whole cache action with the one integrated in the setup-micromamba action.

If we do want to keep conda and need to fix the paths, it is worth noting that our own setup-conda action provides an output called cache-path, which might in theory allow us to automatically use the correct path for caching our conda installation. In practice, we currently run the cache action before setup-conda, so we don't receive the path information in time. Currently, that output is not used anywhere in the workflow, so it might not work out of the box.

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.