Repository navigation
test(website): the live GitHub site is ready when github.com answers, not its rate-limited API - #915
Merged
Merged
Conversation
…ed as its base model The live GitHub test site's ready check loads github.com rather than its API, whose 60 unauthenticated calls an hour CI's shared addresses spend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…me to find its price The lookup dropped only the first "/" segment, so a route of several segments stayed unpriced though its model is in the map: the Gemini agent's documented vertex_ai/global/<model>, LiteLLM's openrouter/<org>/<model> and bedrock/converse/<model>. The nearest route with an entry wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keep one test for the route rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main already prices a [1m] entry from its per-model rows, or from Claude Code's own figure when the rows are tagged, so the tag rule helped only a turn with no rows and no cost, and the route rule guessed which segments name the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The live GitHub site that
browser_clock_testandwebsite_browser_testdeploy (tst/data/live_github_website/server.py) checked it was ready by reading a repository fromapi.github.com. That API allows an unauthenticated caller 60 calls an hour, and CI's shared runner addresses use them up. Every poll of a failing check called the API again, so a slow-tier shard failed withHTTP Error 403: rate limit exceededafter waiting 300 s.Change
site_answers) sends aHEADtohttps://github.com/and is ready on a 200.website_browser_testdoes once.Testing
https://github.com/answersHEADwith 200, checked from outside CI.browser_clock_test: 4 tests;website_browser_test: 8 tests.Scope
This pull request first also changed the price lookup to price a model named with a trailing tag such as Claude Code's
[1m], and one behind a route of several/segments. Both changes were taken out.[1m]entry from its per-model rows. When the rows are tagged, main keeps Claude Code's own figure instead. That leaves only a turn with neither rows nor a cost, which main leaves unpriced.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
The live GitHub fixture checks readiness with a
HEADrequest tohttps://github.com/, rather than reading the rate-limited API.Reviews (8) · Last reviewed commit: "chore(pricing): take the price lookup ch..." · Reviewed by Greptile