Skip to content

Fetch a Helm index again when it lacks the downloaded chart - #800

Open
simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:fix/helm-cooldown-refetch
Open

simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:fix/helm-cooldown-refetch

Conversation

@simonchrz

Copy link
Copy Markdown
Contributor

Fixes #766.

A chart download is checked against cooldown by the repository's index.yaml. An index cached within metadata_ttl, or served stale, can predate the chart: a download of it was let through cooldown when the chart was already cached, and refused with 404 when it wasn't, even past its cooldown. Such an index is now fetched again and the download decided on what upstream lists now, as #760 does for the other ecosystems.

Conda's refetch flow moves into listingPublishIndex, which Helm now shares; conda's behaviour is unchanged. The Helm cases of the #760 refetch tests are no longer skipped.

A chart download is checked against cooldown by the repository's
index.yaml. An index cached within metadata_ttl, or served stale, can
predate the chart, and a download of it was let through cooldown when
the chart was already cached, or refused with 404 when it was not.
Such an index is now fetched again and the download decided on what
upstream lists now, as git-pkgs#760 does for the other ecosystems.

Conda's refetch flow moves into listingPublishIndex, which Helm shares.
@simonchrz simonchrz added the bug Something isn't working label Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6becd967-9430-4fbd-b3ea-7216eaaec626
Commits

Reviewing files that changed from the base of the PR and between 784ba61 and fb91c01.

Files selected for processing: 5

  • docs/configuration.md
  • internal/handler/conda.go
  • internal/handler/download_cooldown.go
  • internal/handler/download_cooldown_missing_test.go
  • internal/handler/helm.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm: cooldown lets a chart through when the cached index predates it

1 participant