Skip to content

Comments

fix: upgrade to actions/cache@v5 (legacy cache service sunset)#8

Merged
lucasgrvarela merged 1 commit intodevelopfrom
fix/upgrade-cache-to-v5
Feb 20, 2026
Merged

fix: upgrade to actions/cache@v5 (legacy cache service sunset)#8
lucasgrvarela merged 1 commit intodevelopfrom
fix/upgrade-cache-to-v5

Conversation

@technusm1
Copy link
Contributor

Summary

  • Replace hgdata/cache/restore@v3 and hgdata/cache/save@v3 with actions/cache/restore@v5 and actions/cache/save@v5

Problem

The hgdata/cache fork is at v3.3.x, which uses the legacy GitHub Actions cache service that was sunset on February 1, 2025. Every cache save/restore has been silently failing across all repos that use this action:

##[warning]Failed to save: <h2>Our services aren't available right now</h2>

This means no Elixir CI job has had working dependency or build caching for over a year. Every run does a full cold build (~5 min setup instead of ~1 min).

Root Cause

GitHub deprecated the legacy cache service and requires actions/cache v3.4.0+ or v4.2.0+ for the new cache service v2 APIs. The hgdata/cache fork only has up to v4.1.2, which is also before the cutoff (v4.2.0 is required). See: https://github.com/actions/cache#readme

Fix

This PR uses actions/cache@v5 directly (upstream) since no hgdata/cache version has a working backend.

Follow-up: sync the hgdata/cache fork

The hgdata/cache fork should be synced with upstream actions/cache so that other repos using hgdata/cache@v3 or hgdata/cache@v4 also get the fix. The fork needs to be updated to at least:

  • v3 tag → upstream v3.4.0+
  • v4 tag → upstream v4.2.0+

Once that's done, this action can switch back from actions/cache@v5 to hgdata/cache@v4 (or @v5 once forked).

Verification

Tested on HGData/vulcan PR #2183 — deps cache restores successfully across jobs, build cache saves and restores correctly.

hgdata/cache@v3 (v3.3.x) uses the legacy cache service which was
sunset on Feb 1 2025. Every cache save has been silently failing
with 'Our services aren't available right now' for over a year.

actions/cache@v5 uses the current cache service v2 APIs.
Copy link

@ogabriel ogabriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@lucasgrvarela lucasgrvarela merged commit 063bef4 into develop Feb 20, 2026
1 check passed
@lucasgrvarela lucasgrvarela deleted the fix/upgrade-cache-to-v5 branch February 20, 2026 14:02
@hg-service-ci-readwrite

🎉 This PR is included in version 1.0.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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