Skip to content

docs(ci): persist in-container tool caches + verify conditional trigger paths#118

Merged
CybotTM merged 2 commits into
mainfrom
docs/ci-optimization
Jul 15, 2026
Merged

docs(ci): persist in-container tool caches + verify conditional trigger paths#118
CybotTM merged 2 commits into
mainfrom
docs/ci-optimization

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 15, 2026

Copy link
Copy Markdown
Member

Two additions to ci-runner-capacity.md (P1 — single-run measurement noise — is already covered there, so not duplicated):

  1. Persist tool caches from docker compose run --rm — caches written to the container's /tmp are discarded; point tmpDir/cacheDirectory at a host-mounted path + actions/cache keyed on run_id with prefix restore-keys (save-fresh + restore-latest; tools self-invalidate so a stale restore is safe; container-root writes 0644 so the runner reads on save). Measured: Lint ~145s→72s warm.
  2. Verify every trigger path after a conditional change — a green PR run doesn't prove the schedule/workflow_dispatch path; and workflow_dispatch only fires on the default branch, so that path is often only verifiable after merge.

From a real CI-speed session (PHPStan/Rector caching + moving coverage to a nightly conditional).

…er paths

Two additions to ci-runner-capacity.md: (1) persisting a tool cache written
inside 'docker compose run --rm' by pointing tmpDir/cacheDirectory at a
host-mounted path + actions/cache keyed on run_id with prefix restore-keys
(save-fresh + restore-latest; tools self-invalidate so a stale restore is safe);
(2) a green run of one conditional path (PR) does not prove the schedule/dispatch
path — exercise every trigger path (workflow_dispatch only fires on the default
branch, so verify after merge).

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings July 15, 2026 12:23
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds two new sections to the CI runner capacity documentation: one on persisting tool caches when running linters/analyzers inside docker compose run --rm, and another on verifying all trigger paths after making conditional workflow changes. The review feedback suggests correcting the Rector configuration method name to cacheDirectory(), clarifying the explanation of the restore-keys parameter in GitHub Actions, and correcting a misconception regarding how workflow_dispatch handles non-default branches.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread skills/github-project/references/ci-runner-capacity.md
Comment thread skills/github-project/references/ci-runner-capacity.md Outdated
Comment thread skills/github-project/references/ci-runner-capacity.md Outdated
…view)

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
@sonarqubecloud

Copy link
Copy Markdown

@CybotTM
CybotTM merged commit df1ed1a into main Jul 15, 2026
18 checks passed
@CybotTM
CybotTM deleted the docs/ci-optimization branch July 15, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants