Skip to content

test(updater): treat GitHub 429 secondary rate limits as skip, not failure - #36

Merged
TeoSlayer merged 1 commit into
mainfrom
hotfix/updater-429-ratelimit-skip
Jul 27, 2026
Merged

TeoSlayer merged 1 commit into
mainfrom
hotfix/updater-429-ratelimit-skip

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Problem

TestRealVerify_EndToEnd_v1_12_5 failed on main:

live v1.12.5 attestation should verify gh-free, got: GitHub attestations API returned 429:
  "message": "You have triggered an abuse detection mechanism..."

The test calls the live GitHub attestations API unauthenticated and already intends to skip when throttled. But isRateLimited() matched only "returned 403" and "rate limit". GitHub answers secondary throttling with 429, and that body says "abuse detection mechanism" — spelling the phrase hyphenated (abuse-rate-limits) only in the docs URL. Neither pattern matched, so throttling hard-failed the build.

Re-running got a 403 instead and correctly skipped, confirming the failure is environmental, not a verification regression.

Fix

Widen the match to returned 429, rate-limit, and abuse detection. Test-only.

Verification

go test -count=1 ./... — passes (test skips when throttled, as designed).

🤖 Generated with Claude Code

…ilure

TestRealVerify_EndToEnd_v1_12_5 calls the live GitHub attestations API
unauthenticated. isRateLimited() only matched "returned 403" and
"rate limit", but GitHub answers secondary/abuse throttling with 429 and
a body that says "abuse detection mechanism" — and spells the phrase
hyphenated ("abuse-rate-limits") in the docs URL. Neither pattern
matched, so throttling hard-failed the suite instead of skipping.

Widen the match to cover 429, the hyphenated spelling, and the abuse
detection wording. Test-only change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer
TeoSlayer merged commit 58de4d6 into main Jul 27, 2026
10 checks passed
@TeoSlayer
TeoSlayer deleted the hotfix/updater-429-ratelimit-skip branch July 27, 2026 12:59
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