Skip to content

fix(images): force per-product refresh on every build#726

Merged
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-nvidia-beta-refresh
Apr 6, 2026
Merged

fix(images): force per-product refresh on every build#726
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-nvidia-beta-refresh

Conversation

@castrojo
Copy link
Copy Markdown
Contributor

@castrojo castrojo commented Apr 6, 2026

IMAGES_CACHE_HOURS: "0" bypasses the outer file-age check in fetch-github-images.js, but the inner per-product shouldRefresh check uses REFRESH_HOURS (default 336h). When actions/cache restores images.json, its mtime is "now" (~0h old), so shouldRefresh evaluates to false and cached product data is returned without re-fetching nvidia tags from GHCR.

The nvidia beta tag (bluefin-nvidia-open:beta) was published 2026-04-03 but every build since has returned the stale cache entry with nvidiaCommand: null because per-product data was never re-fetched.

Setting IMAGES_REFRESH_HOURS: "0" ensures ageHours (≈0) >= 0 is always true, so every product is re-fetched on every build.

IMAGES_CACHE_HOURS: "0" bypasses the outer file-age check in
fetch-github-images.js, but the inner per-product shouldRefresh check
uses REFRESH_HOURS (default 336h). When actions/cache restores
images.json, its mtime is "now" (~0h old), so shouldRefresh evaluates
to false and cached product data is returned without re-fetching nvidia
tags from GHCR.

The nvidia beta tag (bluefin-nvidia-open:beta) was published 2026-04-03
but every build since has returned the stale cache entry with
nvidiaCommand: null because per-product data was never re-fetched.

Setting IMAGES_REFRESH_HOURS: "0" ensures ageHours (≈0) >= 0 is always
true, so every product is re-fetched on every build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@castrojo castrojo merged commit fba800a into projectbluefin:main Apr 6, 2026
1 check passed
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.

1 participant