Skip to content

Commit ef9af8d

Browse files
committed
Overlay: Increase size limit for cached overlay base database
1 parent 31d3ae8 commit ef9af8d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/overlay-database-utils.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@ export const CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
2222

2323
/**
2424
* The maximum (uncompressed) size of the overlay base database that we will
25-
* upload. Actions Cache has an overall capacity of 10 GB, and the Actions Cache
26-
* client library uses zstd compression.
25+
* upload. By default, the Actions Cache has an overall capacity of 10 GB, and
26+
* the Actions Cache client library uses zstd compression.
2727
*
2828
* Ideally we would apply a size limit to the compressed overlay-base database,
2929
* but we cannot do so because compression is handled transparently by the
3030
* Actions Cache client library. Instead we place a limit on the uncompressed
3131
* size of the overlay-base database.
3232
*
33-
* Assuming 2.5:1 compression ratio, the 6 GB limit on uncompressed data would
34-
* translate to a limit of around 2.4 GB after compression.
33+
* Assuming 2.5:1 compression ratio, the 15 GB limit on uncompressed data would
34+
* translate to a limit of around 6 GB after compression. This is a high limit
35+
* compared to the default 10GB Actions Cache capacity, but enforcement of Actions
36+
* Cache quotas is not immediate.
3537
*/
36-
const OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6000;
38+
const OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15000;
3739
const OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES =
3840
OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1_000_000;
3941

0 commit comments

Comments
 (0)