Fix cache miss in Matt Pocock Skills Reviewer: remove cache-memory#31337
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Hey One thing worth addressing before this is merged:
If you'd like a hand, you can assign this prompt to your coding agent:
|
|
@copilot remove the use of cache memory in this agentic workflow |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Added |
|
@copilot remove cache memory from pr-code-review-config.md as well |
…ted workflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Removed |
There was a problem hiding this comment.
Pull request overview
Removes the unused cache-memory mechanism from the shared PR review workflow configuration and regenerates affected workflow lock files to eliminate cache restore/save steps that always resulted in cold-start misses.
Changes:
- Removed
cache-memoryfrom.github/workflows/shared/pr-code-review-config.md(tooling + documentation). - Regenerated 7 dependent workflow lock files to remove cache-memory prompts, env vars, artifact upload/download, and
actions/cacheusage. - Simplified agent invocation in the regenerated lock files by dropping the extra
--add-dir /tmp/gh-aw/cache-memory/mount.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/shared/pr-code-review-config.md | Drops cache-memory tool configuration and related guidance from the shared PR review config. |
| .github/workflows/security-review.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/refiner.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/pr-triage-agent.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/pr-nitpick-reviewer.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/pr-code-quality-reviewer.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/mattpocock-skills-reviewer.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
| .github/workflows/grumpy-reviewer.lock.yml | Regenerated to remove cache-memory restore/save/artifact steps and related env/prompt usage. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 8/8 changed files
- Comments generated: 0
Bug Fix
What was the bug?
The workflow configured
cache-memory(inherited fromshared/pr-code-review-config.md) but the agent never wrote anything back to the cache directory. Every run left/tmp/gh-aw/cache-memoryempty → the upload step found no files → 100% cold-start miss rate across all observed runs.How did you fix it?
Rather than teaching the agent to write back to a cache it doesn't meaningfully use, cache-memory is removed from this workflow and its shared base config entirely.
shared/pr-code-review-config.mdcache-memory: truefrom thetools:sectionmattpocock-skills-reviewer.mdAll 7 workflows that import
shared/pr-code-review-config.md(directly or viashared/pr-review-base.md) were recompiled:mattpocock-skills-reviewer,grumpy-reviewer,pr-code-quality-reviewer,pr-nitpick-reviewer,pr-triage-agent,refiner, andsecurity-review.Testing