Skip to content

docs(setup-environment): give the real reason container mode caches nothing (#18) - #273

Merged
mmcky merged 1 commit into
mainfrom
docs/18-setup-env-comment
Nov 7, 2026
Merged

mmcky merged 1 commit into
mainfrom
docs/18-setup-env-comment

Conversation

@mmcky

@mmcky mmcky commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

The comment above setup-environment's container-mode step gave the wrong reason for caching nothing there. It said the Conda environment "lives outside the workspace mount, so actions/cache cannot persist it", and that "other host-mounted paths (e.g., pip cache) may still be cached". Neither is true. In a container: job, actions/cache runs inside the container, so it can reach the image's environment, and nothing in container mode caches pip. #18 has asked for this correction since its rewrite, and the proposal check on #18 (2026-11-06) settled the wording: this is the one part of #18 worth doing now.

Before After
Caching is "disabled" because the environment is outside the workspace mount, so actions/cache cannot persist it Nothing is cached. actions/cache could reach the image's environment. A cache of it would be as large as the environment, gigabytes for the full image, against GitHub's default 10 GB per repository, so it would evict the build caches. And restoring it over the image's own environment mixes the two, which standard mode avoids by removing its fresh environment first (#209). In container mode the image's environment is the target, so there is nothing to remove
"Other host-mounted paths (e.g., pip cache) may still be cached" Gone: nothing caches them
The heading names environment.yml as the delta's source environment-update, the input the step reads
See: …/issues/18 See …/issues/18 for when that changes

Changes

File Change
setup-environment/action.yml The comment block above "Update environment (container mode)". Nothing else changes.

It changes no behaviour, no input or output description and no generated doc, so it has no CHANGELOG entry and needs no release of its own. It ships with whatever release comes next.

What I checked, and how

The issue first, against origin/main at 9644f17. The facts the proposal check gives hold:

The proposal holds: fix the comment now, and keep #18 parked with the trigger the comment on #18 states. "Gigabytes" is said of the full image only, which is what the check established. I didn't claim a size for the lean image.

Checks. python3 scripts/generate-docs.py --check --check-examples --actionlint … passes with actionlint 1.7.12. actionlint over .github/workflows/ reports nothing. scripts/lint-shell.py with shellcheck 0.11.0 is clean.

What to watch after merge

Nothing. It's a comment. The harness runs in full, since the gate treats every action.yml as relevant.

Not in this PR

Part of #18

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj

…othing (#18)

The comment above the container-mode step said the Conda environment
lives outside the workspace mount, so actions/cache cannot persist it,
and that pip's cache may still be cached. Neither is true: in a
container: job actions/cache runs inside the container and can reach
the image's environment, and nothing in container mode caches pip.

The real reasons are the size of a cache of the image's environment,
against a repository's 10 GB of cache storage, and that restoring it
over the image's own environment mixes the two, which standard mode
avoids by removing its fresh environment first (#209). The heading also
named environment.yml where the delta comes from environment-update.

Comment only: no behaviour, description or generated doc changes.

Part of #18

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
Copilot AI balanced review requested due to automatic review settings November 6, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is limited to clarifying inline documentation in setup-environment/action.yml about container-mode caching behavior and terminology, with no functional modifications or outstanding issues indicated.

No open issues 🎉

What changed in this PR

This pull request updates the inline documentation in setup-environment/action.yml to correct the explanation for why container mode does not use caching, aligning the comment with actual container: job behavior and the repo’s current design constraints.

Changes:

  • Correct the container-mode comment to state that nothing is cached (including pip), and explain why caching the image environment is impractical (size/eviction and environment-mixing concerns).
  • Update terminology in the comment to reference environment-update (the container-mode delta input) instead of environment.yml.
  • Refresh the issue link wording to point to #18 for any future change in behavior.
File Summary
setup-environment/​action.yml Updates the explanatory comment block above “Update environment (container mode)” to reflect the correct caching rationale and reference environment-update.

Review effort: Balanced

@mmcky
mmcky merged commit 558ad65 into main Nov 7, 2026
57 checks passed
@mmcky
mmcky deleted the docs/18-setup-env-comment branch November 7, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants