[cache-strategy] Daily Cache Strategy Analysis - 2026-08-17 #53466
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-18T18:46:40.760Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Overview
Analyzed the last 24 hours of agentic workflow runs that declared
cache-memory. Two runs matched:Copilot Opt(§32051980416) andCopilot Agent PR Analysis(§32054193614).Both workflows restore
cache-memorywith arun_id-scoped key plus a restore-prefix fallback, which is valid. The actual cache reuse logic then checks only for files named with$(date +%Y-%m-%d), so restored content from previous days is ignored on normal scheduled runs.Warning
Both workflows currently behave like same-day rerun caches, not cross-run daily or weekly caches.
Findings
Copilot Opt: scheduled weekly, but only reusescopilot-sessions-${TODAY}.json,session-logs-${TODAY}/, andcopilot-prs-${TODAY}.json. Because the normal cadence is weekly, prior restored cache content cannot satisfy those exact-date lookups.Copilot Agent PR Analysis: scheduled daily, but only reusescopilot-prs-${TODAY}.json. Restored prior-day cache entries are skipped, so the workflow re-fetches PR data on normal runs.Copilot Agent PR Analysisalso had a failedFetch Copilot PR datastep in run32054193614, which increases the likelihood of partial or inconsistent cache refreshes on miss days.Evidence
Copilot Opt
memory-none-nopolicy-copilot-session-data-${{ github.run_id }}with restore prefixmemory-none-nopolicy-copilot-session-data-copilot-sessions-${TODAY}.json,session-logs-${TODAY}/, andcopilot-prs-${TODAY}.jsonCopilot Agent PR Analysis
memory-none-nopolicy-copilot-pr-data-${{ github.run_id }}with restore prefixmemory-none-nopolicy-copilot-pr-data-copilot-prs-${TODAY}.jsonFetch Copilot PR dataconcludedfailurein run32054193614Actions Taken
cache-strategystate under/tmp/gh-aw/cache-memory/cache-strategy/runs.jsonmiss_streak: 1andmiss_rate_14d: 1.0inindex.jsonRecommended Fixes
Copilot Agent PR Analysis, investigate whyFetch Copilot PR datacan fail while the workflow still exits successfullyContext
2026-08-17All reactions