Skip to content

fix(test): resolve rate-limit failures when downloading datasets#9658

Open
shiva-istari wants to merge 2 commits intomainfrom
shiva/ci-downloads
Open

fix(test): resolve rate-limit failures when downloading datasets#9658
shiva-istari wants to merge 2 commits intomainfrom
shiva/ci-downloads

Conversation

@shiva-istari
Copy link
Contributor

CI workflows on forked PRs fail with HTTP 429 (Too Many Requests) when downloading benchmark datasets from GitHub, because shared-IP runners hit rate limits on unauthenticated requests. This fix replaces GitHub web URLs with direct CDN URLs, adds retry logic with exponential backoff, limits concurrent downloads to 5, and cleans up partial files on failure. It also adds GitHub Actions caching to avoid re-downloading data files on repeat runs. Together these changes make benchmark data downloads reliable for both forked and internal CI workflows.

@shiva-istari shiva-istari requested a review from a team as a code owner March 16, 2026 10:13
@github-actions github-actions bot added area/testing Testing related issues area/integrations Related to integrations with other projects. go Pull requests that update Go code labels Mar 16, 2026
@blacksmith-sh

This comment has been minimized.

Copy link
Contributor

@mlwelles mlwelles left a comment

Choose a reason for hiding this comment

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

Additional findings beyond the code duplication and cache key concerns already noted:

Note: t/t.go:1133 still has var suffix = "?raw=true" which gets appended to media.githubusercontent.com URLs via baseUrl + name + suffix. The ?raw=true parameter is a GitHub blob-URL convention and is unnecessary for direct CDN URLs. Not harmful, but misleading — should be removed for consistency with the other URL updates in this PR.

matthewmcneely pushed a commit that referenced this pull request Mar 19, 2026
## Summary

- Bumps Trivy from `0.65.0` to `0.69.3` in `.trunk/trunk.yaml`
- Trivy `v0.65.0` was never published — the version scheme jumped from
`v0.26.0` to `v0.69.2`, causing a 404 when trunk tries to download the
hermetic tool binary
- This fixes the "Trunk Code Quality / Check" CI failure seen on #9658
and all other PRs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/integrations Related to integrations with other projects. area/testing Testing related issues go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

3 participants