GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Overlay: Increase size limit for cached overlay base database by kaspersv · Pull Request #3098 · github/codeql-action

Conversation

@kaspersv

@kaspersv kaspersv commented Sep 10, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR increases the size limit imposed on (uncompressed) overlay base databases for uploading to the Actions Cache from 6GB to 15GB. With an expected compression ratio of 2.5:1 the 15GB uncompressed limit translates into an effective 6GB limit.

Overlay analysis is currently limited to the github and dsp-testing orgs and controlled by feature flags (codeql_action_overlay_analysis_*). This size limit will be revisited before removing the restriction to the github and dsp-testing org.

Risk assessment

Low risk: Overlay analysis is under feature flags and restricted to the github and dsp-testing orgs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kaspersv
kaspersv force-pushed the kaspersv/increase-overlay-base-size-limit branch from ef9af8d to c02e46b Compare September 10, 2025 10:18
@kaspersv
Overlay: Increase size limit for cached overlay base database
8a84a62
@kaspersv
kaspersv force-pushed the kaspersv/increase-overlay-base-size-limit branch from c02e46b to 8a84a62 Compare September 10, 2025 10:31
@kaspersv
kaspersv marked this pull request as ready for review September 10, 2025 10:49
@kaspersv
kaspersv requested a review from a team as a code owner September 10, 2025 10:49
@kaspersv
kaspersv requested review from cklin, Copilot and mbg September 10, 2025 10:49
Copilot AI reviewed Sep 10, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR increases the size limit for cached overlay base databases from 6GB to 15GB to enable Ruby overlay analysis for the github/github repository, which produces an 11GB uncompressed overlay base database.

  • Increased OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB from 6000 to 15000 MB
  • Updated comments to reflect the new size limit and its implications
  • Added TODO comment noting the limit should be revisited before broader rollout

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mbg
mbg approved these changes Sep 10, 2025
View reviewed changes
Comment thread src/overlay-database-utils.ts
Comment on lines +35 to +36
* compared to the default 10GB Actions Cache capacity, but enforcement of Actions
* Cache quotas is not immediate.

@mbg mbg Sep 10, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I like the addition of a comment acknowledging that this is a large limit, but I don't think that justifying it based on the speed of the enforcement makes sense.

Suggested change
* compared to the default 10GB Actions Cache capacity, but enforcement of Actions
* Cache quotas is not immediate.
* compared to the default 10GB Actions Cache capacity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kaspersv kaspersv Sep 10, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I do think the speed of enforcement makes quite a big difference in practice with a limit that is over 50% of the Actions Cache quota. If each compressed overlay base database was +5GB and existing cache entries were immediately evicted from the cache to make room before a new cache entry could be uploaded, then the cache wouldn't be able to fit two overlay base databases and other concurrent CodeQL action runs on PRs would effectively fall back to normal analysis while a new overlay base databases was being uploaded. That will not happen because enforcement of quotas is not immediate.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mbg mbg Sep 10, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Note that the cache quota is not specific to CodeQL and is shared among all Actions caches for a repo. It may be that the speed of enforcement makes a difference for the overlay databases if those are the only caches for a repo and they are this large, but it would still hurt customers if we rapidly take up most of their quota and the rate of cache churn resulting from overlay caches competing with customer caches within the standard 10GB quota would plausibly also evict overlay databases before they can be useful.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
cklin
cklin approved these changes Sep 10, 2025
View reviewed changes
@kaspersv
kaspersv merged commit f374a62 into main Sep 10, 2025
@kaspersv
kaspersv deleted the kaspersv/increase-overlay-base-size-limit branch September 10, 2025 13:01
This was referenced Sep 10, 2025
Merge main into releases/v3 #3102
Closed
Merge main into releases/v3 #3104
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mbg mbg mbg approved these changes
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@cklin cklin cklin approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@kaspersv @mbg @cklin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.