Skip to content

Fix nightly upgrade workflow GitHub API rate limiting#543

Merged
svarlamov merged 1 commit intomainfrom
devin/1771341786-fix-nightly-upgrade-rate-limit
Feb 17, 2026
Merged

Fix nightly upgrade workflow GitHub API rate limiting#543
svarlamov merged 1 commit intomainfrom
devin/1771341786-fix-nightly-upgrade-rate-limit

Conversation

@svarlamov
Copy link
Member

@svarlamov svarlamov commented Feb 17, 2026

Avoid GitHub API rate limit failures in nightly upgrade workflow

Summary

The nightly upgrade validation workflow was intermittently failing with HTTP Error 403: rate limit exceeded when calling the GitHub Releases API unauthenticated (shared runner IPs can quickly exhaust the unauthenticated limit).

This PR:

  • Passes secrets.GITHUB_TOKEN into the “Select random older versions” steps (bash + Windows pwsh)
  • Uses Authorization: Bearer $GITHUB_TOKEN (when present) and adds an explicit User-Agent header for the GitHub API request

Review & Testing Checklist for Human

  • Confirm GITHUB_TOKEN is available for the scheduled workflow in this repo/org (permissions/policy) and that this doesn’t require any additional workflow permissions.
  • Sanity-check the Windows step: the Python snippet is embedded in a PowerShell here-string; verify the updated block is syntactically correct and still executes on windows-latest.
  • Optionally re-run the workflow (or a workflow_dispatch) and confirm the “Select random older versions” steps no longer fail with 403 rate limits.

Notes


Open with Devin

Co-Authored-By: Sasha Varlamov <sasha@sashavarlamov.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@git-ai-cloud-dev
Copy link

No AI authorship found for these commits. Please install git-ai to start tracking AI generated code in your commits.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@svarlamov svarlamov merged commit cd6b414 into main Feb 17, 2026
15 checks passed
@svarlamov svarlamov deleted the devin/1771341786-fix-nightly-upgrade-rate-limit branch February 17, 2026 16:24
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