mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8950] [Feature]: Stop pull requests writing the Docker build cache in container-build-test #8904
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8904
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8950
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
The
container-build-testjob in.github/workflows/pull-request-checks.ymlrunsdocker/build-push-actionwithcache-to: type=gha,mode=maxon every pull request. Each PR merge ref therefore writes its own full set of Docker layer blobs into the repository's GitHub Actions cache. A sample of the cache showed 8.15 GB of the 8.27 GB of Docker blobs belonging to three PR merge refs, whilestagingheld 0.08 GB. The cache is at its 10 GB limit (actions/cache/usagereports 10.34 GB across 84 entries on 2026-11-07), so GitHub evicts the pnpm, Playwright and CodeQL entries that other jobs rely on, and PR Docker builds do not benefit from the blobs anyway because each is scoped to its own merge ref.Proposed solution
Remove
cache-to: type=gha,mode=maxfrom thecontainer-build-testbuild step and keepcache-from: type=gha. The workflow only runs onpull_request, so no conditional is needed. Add a one-line comment saying PRs read the cache thatbuild-container.ymlwrites onstagingpushes and never write it, to protect the Actions cache budget.Scope:
.github/workflows/pull-request-checks.yml, jobcontainer-build-test, only.build-container.yml(staging/main pushes) keeps writing the cache.Verification:
node scripts/validate-pr-triage.mjspasses; the PR's own run logs the cache import attempt (the first run may miss becausestagingholds almost no blobs yet); recordactions/cache/usagebefore and a few days after merge.Alternatives considered
type=registry): sturdier, but the package must be public for fork PRs. Proposed as a follow-up only if the Actions cache is still over its limit after this change.Additional context
Part of the CI speed work; E2 (CodeQL incremental base database on
stagingpushes) depends on this landing because the base database needs cache room.Template check