Repository navigation
docs(setup-environment): give the real reason container mode caches nothing (#18) - #273
Merged
Merged
Conversation
…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
Contributor
There was a problem hiding this comment.
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 ofenvironment.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
This was referenced Nov 7, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 acontainer:job,actions/cacheruns 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.actions/cachecannot persist itactions/cachecould 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 removeenvironment.ymlas the delta's sourceenvironment-update, the input the step readsSee: …/issues/18See …/issues/18 for when that changesChanges
setup-environment/action.ymlIt 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/mainat9644f17. The facts the proposal check gives hold:setup-environment/action.yml:118-125, word for word as the check quotes it.docs/user/actions/setup-environment.md:142).setup-environment/action.yml:227-249).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.pywith 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.ymlas relevant.Not in this PR
environment-update.environment-update". I've left it for the organiser, since PLAN's rows aren't this PR's.Part of #18
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj