Skip to content

Add maximum size to uploaded cache

Adrien Kohlbecker requested to merge ak/cache-size into main

What does this MR do?

Adds a MaximumSize entry to the runner cache settings. When the helper is packaging the cache for upload, it checks the final compressed file against this maximum and skips uploading the file if it went over.

Why was this MR needed?

This is done so our cloud storage is not abused with big files

What's the best way to test this MR?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab/-/issues/353463

Edited by Adrien Kohlbecker

Merge request reports