Skip to content

setup-environment: fix standard-mode conda caching and validation #33

Closed

Description

@mmcky

Standard (non-container) mode remains a supported path (local dev / un-migrated repos), so these are real bugs, not just container-mode cosmetics.

  • C3 — Standard-mode conda cache is wasted. setup-environment/action.yml:99-122 restores the conda cache, then runs conda-incubator/setup-miniconda@v3 unconditionally — it reinstalls miniconda and recreates the env even on a cache hit, so the cache saves nothing (README claims "~3-4 min" saved). Fix options: add if: steps.conda-cache.outputs.cache-hit != 'true' to the setup-miniconda step + a separate activate step for hits, or migrate to mamba-org/setup-micromamba which integrates caching cleanly. Also drop the deprecated use-only-tar-bz2: true (line 122).
  • L19 — Silent broken env on missing LaTeX requirements. action.yml:128-137: when install-latex: true but the requirements file is missing, it warns and skips, producing an env that fails ~an hour later in the build. Error out instead.
  • L23 — cache-version is a no-op in container mode. action.yml:22-25; the "Force Cache Rebuild" advice in docs/QUICK-REFERENCE.md is misleading for container users. Clarify the docs.

Filed from the 2026-06-16 technical review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions