Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Nov 3, 2025

Problem: Our caches (all of them) are over 10GB allowed cache space. Due this, GH is dropping caches and our jobs end up exposed to HTTP 500 that since migration Central happens quite often. We used the plain actions/cache to store Mimir caches for each node (200-400 MB depending on which node we talk about), and we have 3 active branches (3.9, 4.0 and master), that simply totals out the 10 GB limit.

This PR makes we have one "cache blob" per OS, so each OS has one cache blob (times three, for 3.9, 4.0 and master).

Changes:

  • implement "always save" pattern (see cache doco)
  • we keep cache "per lane" (per OS)
  • 3 kind of builds (initial, full and integration-tests) all use same (per OS) cache at start and at end uploads cache as artifact (1 day retention)
  • at end there is a matrix job "consolidate caches" (runs on all 3 OSes) that downloads caches and consolidate them and save cache
  • hence, we will have 3 OS specific caches

Backport of 304791e

Problem: Our caches (all of them) are over 10GB allowed cache space.
Due this, GH is dropping caches and our jobs end up exposed to
HTTP 500 that since migration Central happens quite often. We used
the plain `actions/cache` to store Mimir caches for each node
(200-400 MB depending on which node we talk about), and we have 3
active branches (3.9, 4.0 and master), that simply totals out the
10 GB limit.

This PR makes we have one "cache blob" per OS, so each OS has
one cache blob (times three, for 3.9, 4.0 and master).

Changes:
* implement "always save" pattern (see cache doco)
* we keep cache "per lane" (per OS)
* 3 kind of builds (initial, full and integration-tests) all use same (per OS) cache at start and at end uploads cache as artifact (1 day retention)
* at end there is a matrix job "consolidate caches" (runs on all 3 OSes) that downloads caches and consolidate them and save cache
* hence, we will have 3 OS specific caches

Backport of 304791e
@cstamas cstamas added this to the 4.0.0 milestone Nov 3, 2025
@cstamas cstamas requested a review from gnodet November 3, 2025 11:43
@cstamas cstamas self-assigned this Nov 3, 2025
@cstamas cstamas marked this pull request as ready for review November 3, 2025 12:55
@cstamas cstamas merged commit c40a2c9 into apache:maven-4.0.x Nov 3, 2025
41 of 42 checks passed
@cstamas cstamas deleted the maven-4.0.x-consolidate-caches branch November 3, 2025 12:55
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.

1 participant