Repository navigation
Canary: proxy budget 15 MB, summary reads each run's own budget - #9
Merged
Merged
Conversation
Both canary runs pass --proxy-budget-mb 15 instead of 10: measured 2026-10-21 through AUTOTRADER_PROXY, the listing run used 9.4 MB and the vehicle run 8.3 MB, each near the 10 MB cap. proxy_traffic_summary.py now reads the budget from the sidecar's proxy_budget_bytes (10 MB fallback, null = no cap) instead of a fixed argument. The scraper's default budget stays 10 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8
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.
Problem
Both canary runs passed
--proxy-budget-mb 10, the scraper's default. Measured 2026-10-21 throughAUTOTRADER_PROXY, the 3-page listing run used 9.4 MB and the 3-vehicle run 8.3 MB, each close to that cap, so a slightly heavier page would stop a healthy canary and turn it red for the bill, not the site. The summary steps also printed a fixed "of 10 MB" whatever budget the run had.Change
.github/workflows/canary.yml: both canary runs pass--proxy-budget-mb 15; the two "Proxy traffic" steps no longer pass a budget argument..github/proxy_traffic_summary.py: the budget in the summary line and in::error::stopped: proxy budget N MB exceededcomes from the sidecar'sproxy_budget_bytes(null= no cap). The argument, default 10, is only the fallback for a sidecar without that field.proxy_meter.DEFAULT_BUDGET_MB,--proxy-budget-mbdefault).smoke_test.py: the canary checks require 15 MB on every canary scrape and summary steps with no fixed budget, and run the script for a 15 MB run (under and over), a 10 MB run, a sidecar with no budget field (fallback 10) and anullbudget (no cap). The existing "defaults to 10" check is unchanged.[Unreleased]/ Changed (CI only).Evidence
requirements.txt):python smoke_test.py558 passed, 0 failed, 8 engine groups skipped (no engine installed);python3 .github/ci_checks.py --allok.--proxy-budget-mb 10: "every scraper run passes --proxy-budget-mb 15" fails;proxy_budget_bytes: "the summary line", "a run stopped at the budget is red" and "a null proxy_budget_bytes reads as no cap" fail;10: "a summary step reads canary_vehicle's sidecar, with no fixed budget" fails;DEFAULT_BUDGET_MB = 15.0: "budget: --proxy-budget-mb defaults to 10" fails;nullbudget read as 10: "a null proxy_budget_bytes reads as no cap" fails.Not changed
The scraper's default budget, any engine code, the canary schedule, and the release/version.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8