Skip to content

Conversation

@k0s-bot
Copy link
Contributor

@k0s-bot k0s-bot commented Oct 31, 2025

Automated backport to release-1.34, triggered by a label in #6555.
See .

The Go cache has fixed trim settings. It updates mtimes hourly and trims
daily, deleting anything older than five days. This is too conservative
for CI caches. We only want to retain caches used in the current run.

We can achieve this by setting the mtime of all cache files to a time
between one hour and five days ago. After the build, all used cache
entries will have a newer mtime. Everything else can be trimmed.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 5d8587e)
It only provides an approximate 20-second speed boost, while eating up
a couple of 100MB per GitHub cache. We can add it back later on if we
think it's really worth it.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 87336f0)
Simplify the caching of the embedded executables. Makes the cache size
smaller, at the cost of some extra packaging time spent to build the
gzipped blob during build time. This requires some tricks to tell make
what needs to be built and what doesn't.

Only keep the most recent cache per branch. All caches ending in a hash
will be pruned so that only the newest cache is retained on a per-branch
and per-key-prefix basis.

Don't use leading slashes for URLs passed to the gh CLI. Leading slashes
would otherwise trigger file path normalization in bash on Windows,
which would render the URL fragment illegal.

Use a fixed source date epoch in unit tests to better leverage cache
usage.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 8eb3ccd)
@k0s-bot k0s-bot requested review from a team as code owners October 31, 2025 13:44
@k0s-bot k0s-bot requested review from kke and makhov October 31, 2025 13:44
@k0s-bot k0s-bot mentioned this pull request Oct 31, 2025
16 tasks
@twz123 twz123 merged commit ba7e771 into release-1.34 Nov 3, 2025
107 checks passed
@twz123 twz123 deleted the backport-6555-to-release-1.34 branch November 3, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants