[PR #8955] [MERGED] ci(container): stop PRs writing the Docker build cache #8911

Closed
opened 2026-11-08 00:50:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8955
Author: @Promansis
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @Promansis

Base: staging ← Head: chore(ci)/pr-docker-cache-readonly


📝 Commits (1)

  • bab7ac6 ci(container): stop PRs writing the Docker build cache (#8950)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -1)

📄 Description

Linked issue

Closes #8950

Why this change

container-build-test ran docker/build-push-action with cache-to: type=gha,mode=max on every pull request, so each PR merge ref wrote a full set of Docker layer blobs into the repository's 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, while staging held 0.08 GB. The cache sits at its 10 GB limit, so GitHub evicts the pnpm, Playwright and CodeQL entries that other jobs depend on. The CodeQL incremental-database follow-up needs this room first.

What changed

  • Pull request Docker builds no longer write to the Actions cache. They still read it with cache-from: type=gha, which build-container.yml fills on pushes to staging and main.
  • Expected effect for a PR author: nothing changes about what the job checks. Re-pushes to the same PR will not reuse layers that the PR's own earlier run used to write, so a PR's later Docker builds can be somewhat slower.
  • The Dockerfile declares ARG BUILD_COMMIT / ARG BUILD_BRANCH before the builder stage's RUN steps, and the PR build does not set them. Builder-stage layers therefore probably miss the staging cache in PR builds today, so the first run on this PR may show few CACHED layers. That is expected and not hidden here. Moving those ARG lines is a possible follow-up, not part of this PR.

Cache usage before (2026-11-07): gh api repos/Pasta-Devs/Marinara-Engine/actions/cache/usage reported 10,337,046,476 bytes across 84 entries. The "after" number will be recorded a few days after merge.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run locally: node scripts/validate-pr-triage.mjs (exit 0) and prettier --check on the workflow file (pass). pnpm check was not run: no source files changed.

Manual verification notes

  • Check this PR's own container-build-test log for importing cache manifest from gha and note how many layers are CACHED.
  • Check the Actions cache usage a few days after merge against the 10.34 GB before-number.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8955 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(ci)/pr-docker-cache-readonly` --- ### 📝 Commits (1) - [`bab7ac6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bab7ac6fdf3b649ef72583987fd34d859139254f) ci(container): stop PRs writing the Docker build cache (#8950) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #8950 ## Why this change `container-build-test` ran `docker/build-push-action` with `cache-to: type=gha,mode=max` on every pull request, so each PR merge ref wrote a full set of Docker layer blobs into the repository's 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, while `staging` held 0.08 GB. The cache sits at its 10 GB limit, so GitHub evicts the pnpm, Playwright and CodeQL entries that other jobs depend on. The CodeQL incremental-database follow-up needs this room first. ## What changed - Pull request Docker builds no longer write to the Actions cache. They still read it with `cache-from: type=gha`, which `build-container.yml` fills on pushes to `staging` and `main`. - Expected effect for a PR author: nothing changes about what the job checks. Re-pushes to the same PR will not reuse layers that the PR's own earlier run used to write, so a PR's later Docker builds can be somewhat slower. - The Dockerfile declares `ARG BUILD_COMMIT` / `ARG BUILD_BRANCH` before the builder stage's `RUN` steps, and the PR build does not set them. Builder-stage layers therefore probably miss the staging cache in PR builds today, so the first run on this PR may show few `CACHED` layers. That is expected and not hidden here. Moving those `ARG` lines is a possible follow-up, not part of this PR. Cache usage before (2026-11-07): `gh api repos/Pasta-Devs/Marinara-Engine/actions/cache/usage` reported 10,337,046,476 bytes across 84 entries. The "after" number will be recorded a few days after merge. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run locally: `node scripts/validate-pr-triage.mjs` (exit 0) and `prettier --check` on the workflow file (pass). `pnpm check` was not run: no source files changed. ### Manual verification notes - Check this PR's own `container-build-test` log for `importing cache manifest from gha` and note how many layers are `CACHED`. - Check the Actions cache usage a few days after merge against the 10.34 GB before-number. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-08 00:50:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8911
No description provided.