Skip to content

Fix cache warmer: add Windows runner, timestamp-based cache keys#1395

Merged
gopalldb merged 2 commits intomainfrom
fix/warm-cache-add-clean
Apr 9, 2026
Merged

Fix cache warmer: add Windows runner, timestamp-based cache keys#1395
gopalldb merged 2 commits intomainfrom
fix/warm-cache-add-clean

Conversation

@gopalldb
Copy link
Copy Markdown
Collaborator

@gopalldb gopalldb commented Apr 9, 2026

Summary

Two fixes for the forked PR dependency cache:

  1. Add Windows runner to warmer matrix. GitHub Actions cache is OS-scoped — a cache saved on Linux cannot be restored on Windows. The warmer must run on both OS.

  2. Timestamp-based cache keys. GitHub caches are immutable (can't overwrite). Previously required manual deletion before re-running warmer. Now uses key format maven-deps-{timestamp}-{hash}, so each run creates a new entry. The restore step uses prefix maven-deps- to match the latest. Old entries auto-expire after 7 days.

Also runs exact same Maven commands as PR CI workflows (8 steps) to ensure all plugins are cached.

Test plan

NO_CHANGELOG=true

This pull request was AI-assisted by Isaac.

1. Add Windows runner back to warmer matrix. GitHub Actions cache is
   OS-scoped — Linux caches can't be restored on Windows.

2. Run exact same Maven commands as PR CI workflows to ensure all
   plugins are cached.

3. Use timestamp in cache key (maven-deps-{timestamp}-{hash}) so each
   warmer run creates a new entry without needing manual deletion.
   GitHub caches are immutable. The restore step uses prefix
   'maven-deps-' to match the latest entry. Old entries auto-expire
   after 7 days.

Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
Co-authored-by: Isaac
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
@gopalldb gopalldb requested a review from a team as a code owner April 9, 2026 03:09
1. Add Windows runner to warmer matrix (OS-scoped cache).
2. Timestamp-based cache keys (no manual deletion needed).
3. Run exact CI commands to cache all plugins.
4. Enable long paths on Windows before checkout (repo has files
   exceeding 260-char Windows path limit).

Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
Co-authored-by: Isaac
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
@gopalldb gopalldb force-pushed the fix/warm-cache-add-clean branch from 068c275 to 8fed9df Compare April 9, 2026 03:23
@gopalldb gopalldb merged commit 6cc0042 into main Apr 9, 2026
18 checks passed
@gopalldb gopalldb deleted the fix/warm-cache-add-clean branch April 9, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants