Skip to content

test(#4553): skip Gemini live smoke test on geo-block, not just rate limit#221

Merged
Skobeltsyn merged 1 commit into
mainfrom
fix/4553-gemini-geoblock-skip
Jun 16, 2026
Merged

test(#4553): skip Gemini live smoke test on geo-block, not just rate limit#221
Skobeltsyn merged 1 commit into
mainfrom
fix/4553-gemini-geoblock-skip

Conversation

@Skobeltsyn

Copy link
Copy Markdown
Contributor

Summary

A live GeminiClientIntegrationTest run reddened a local build with LlmProviderException: FAILED_PRECONDITION: User location is not supported for the API use — a Gemini API geo-block keyed on the runner's IP region, not a code defect. The skip helper only caught RESOURCE_EXHAUSTED/429, so geo-blocked environments failed instead of skipping.

(CI is unaffected — no Gemini key there, so the test already self-skips; this only bit local builds with a key present in a blocked region.)

Change

Renamed skipIfRateLimitedskipIfEnvironmental and broadened it to also abort (skip) on FAILED_PRECONDITION + "location is not supported", matching the existing rate-limit posture. Test-only.

Full ./gradlew build green.

CodeQL java-kotlin expected-red on Kotlin 2.4 (codeql#21938); build is the gate.

🤖 Generated with Claude Code

…limit

GeminiClientIntegrationTest reddened local builds with
"FAILED_PRECONDITION: User location is not supported for the API use" — a Gemini
API geo-block keyed on the runner's IP region, not a code defect. The skip helper
only caught RESOURCE_EXHAUSTED / 429, so geo-blocked environments failed instead of
skipping (CI is unaffected — no key there, so the test already self-skips).

Renamed skipIfRateLimited -> skipIfEnvironmental and broadened it to also abort/skip
on FAILED_PRECONDITION + "location is not supported", matching the rate-limit posture.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Skobeltsyn Skobeltsyn merged commit 3e0abf9 into main Jun 16, 2026
3 of 4 checks 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