René's URL Explorer Experiment


Title: Overlay-base cache restore misses on cache backends that only prefix-match restoreKeys · Issue #4202 · github/codeql-action · GitHub

Open Graph Title: Overlay-base cache restore misses on cache backends that only prefix-match restoreKeys · Issue #4202 · github/codeql-action

X Title: Overlay-base cache restore misses on cache backends that only prefix-match restoreKeys · Issue #4202 · github/codeql-action

Description: Summary downloadOverlayBaseDatabaseFromCache restores the overlay-base database by passing the key prefix as the primary key, with no restoreKeys: codeql-action/src/overlay/caching.ts Lines 290 to 302 in d208ec7 actionsCache.restoreCache...

Open Graph Description: Summary downloadOverlayBaseDatabaseFromCache restores the overlay-base database by passing the key prefix as the primary key, with no restoreKeys: codeql-action/src/overlay/caching.ts Lines 290 to ...

X Description: Summary downloadOverlayBaseDatabaseFromCache restores the overlay-base database by passing the key prefix as the primary key, with no restoreKeys: codeql-action/src/overlay/caching.ts Lines 290 to ...

Opengraph URL: https://github.com/github/codeql-action/issues/4202

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overlay-base cache restore misses on cache backends that only prefix-match restoreKeys","articleBody":"### Summary\n\n`downloadOverlayBaseDatabaseFromCache` restores the overlay-base database by passing the key **prefix** as the primary key, with no `restoreKeys`:\n\nhttps://github.com/github/codeql-action/blob/d208ec71e39ae46397cbf6569bef8439b9aab974/src/overlay/caching.ts#L290-L302\n\n```ts\nactionsCache.restoreCache(\n  [dbLocation],\n  cacheRestoreKeyPrefix,\n  undefined,\n  { segmentTimeoutInMs: 3000 },\n)\n```\n\nThis depends on the primary key matching by prefix. GitHub's cache service does that, but some Actions-cache-compatible backends only prefix-match `restoreKeys`. One example is the transparent cache on Blacksmith runners. On those backends, PR runs can never restore the overlay-base database, even though default-branch runs upload it successfully. Every PR run then falls back to a full analysis.\n\n### What we see\n\nDefault-branch run, on the same runner type:\n\n```\nSetting overlay database mode to overlay-base with caching because we are analyzing the default branch.\nUploading overlay-base database to Actions cache with key codeql-overlay-base-database-1-\u003chash>-python-2.27.1-\u003csha>-\u003crun_id>-1\nSuccessfully uploaded overlay-base database from /home/runner/_work/_temp/codeql_databases\n```\n\nPull request run:\n\n```\nSetting overlay database mode to overlay with caching because we are analyzing a pull request.\nLooking in Actions cache for overlay-base database with restore key codeql-overlay-base-database-1-\u003chash>-python-2.27.1-\nNo overlay-base database found in Actions cache\nNo overlay-base database found in cache, reverting overlay database mode to none.\n```\n\n### Minimal reproduction of the backend difference\n\nA cache entry saved as `probe-\u003crun_id>-full`, then restored in a later job on the same branch with `actions/cache/restore@v4`:\n\n| Restore | GitHub-hosted runner | Blacksmith runner |\n|---|---|---|\n| `key: probe-\u003crun_id>-` (prefix as the primary key, like this action) | hit | **miss** |\n| `key: probe-\u003crun_id>-nomatch`, `restore-keys: probe-\u003crun_id>-` | hit | hit |\n\n### Suggested fix\n\nAlso pass the prefix as a restore key:\n\n```ts\nactionsCache.restoreCache(\n  [dbLocation],\n  cacheRestoreKeyPrefix,\n  [cacheRestoreKeyPrefix],\n  { segmentTimeoutInMs: 3000 },\n)\n```\n\nOn GitHub's cache this matches exactly the same entries as today, since the prefix is tried first either way. On backends that only prefix-match restore keys, overlay analysis starts working.\n\n### Environment\n\n- `github/codeql-action/init` and `analyze` `@v4`, CodeQL bundle 2.27.1\n- `build-mode: none`, languages `python` and `javascript-typescript`\n- Third-party hosted runners (Blacksmith) whose `actions/cache` calls go to their own cache backend\n","author":{"url":"https://github.com/Yuppyboy","@type":"Person","name":"Yuppyboy"},"datePublished":"2026-10-07T05:43:31Z","url":"https://github.com/github/codeql-action/issues/4202"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a8798e03-0438-a322-285c-65d250e2db43
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE618:3FCC52:553ACE:73CB76:6AED1FA4
html-safe-nonce22002745c0f5dcca1a765c4d435fc729fee7469635749102887a021de7858f50
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjE4OjNGQ0M1Mjo1NTNBQ0U6NzNDQjc2OjZBRUQxRkE0IiwidmlzaXRvcl9pZCI6IjcxMTYwMTMwNzg5MzQ1Mjc5MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac067a51bfabba40f353cb79da20b195be4cc9ec3f0de7a96f38432135ca6f2230
hovercard-subject-tagissue:5740032997
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/4202/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d82e85215b6da0690ae5f86130901584b334ba0477e2c087287f0ec5836651b1/github/codeql-action/issues/4202
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d82e85215b6da0690ae5f86130901584b334ba0477e2c087287f0ec5836651b1/github/codeql-action/issues/4202
og:image:altSummary downloadOverlayBaseDatabaseFromCache restores the overlay-base database by passing the key prefix as the primary key, with no restoreKeys: codeql-action/src/overlay/caching.ts Lines 290 to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYuppyboy
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
turbo-cache-controlno-preview
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/codeql-action/issues/4202#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F4202
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F4202
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/issues/4202
Reloadhttps://github.com/github/codeql-action/issues/4202
Reloadhttps://github.com/github/codeql-action/issues/4202
githubhttps://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Codehttps://github.com/github/codeql-action
Issues164 (164)https://github.com/github/codeql-action/issues
Pull requests41 (41)https://github.com/github/codeql-action/pulls
Actionshttps://github.com/github/codeql-action/actions
Security and quality2 (2)https://github.com/github/codeql-action/security
Insightshttps://github.com/github/codeql-action/pulse
https://github.com/github/codeql-action
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-action/issues/4202
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-action/issues/4202
Overlay-base cache restore misses on cache backends that only prefix-match restoreKeyshttps://github.com/github/codeql-action/issues/4202#top
https://github.com/Yuppyboy
Yuppyboyhttps://github.com/Yuppyboy
on Oct 7, 2026https://github.com/github/codeql-action/issues/4202#issue-5740032997
codeql-action/src/overlay/caching.tshttps://github.com/github/codeql-action/blob/d208ec71e39ae46397cbf6569bef8439b9aab974/src/overlay/caching.ts#L290-L302
d208ec7https://github.com/github/codeql-action/commit/d208ec71e39ae46397cbf6569bef8439b9aab974
https://github.com/mbg
mbghttps://github.com/mbg
on Oct 7, 2026https://github.com/github/codeql-action/issues/4202#issuecomment-6036106998
@Yuppyboyhttps://github.com/Yuppyboy
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/codeql-action/issues/4202
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/codeql-action/issues/4202
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.