Skip to content

Canary: proxy budget 15 MB, summary reads each run's own budget - #9

Merged
jehrr merged 1 commit into
mainfrom
ci/canary-proxy-budget-15mb
Oct 21, 2026
Merged

jehrr merged 1 commit into
mainfrom
ci/canary-proxy-budget-15mb

Conversation

@jehrr

@jehrr jehrr commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

Both canary runs passed --proxy-budget-mb 10, the scraper's default. Measured 2026-10-21 through AUTOTRADER_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 exceeded comes from the sidecar's proxy_budget_bytes (null = no cap). The argument, default 10, is only the fallback for a sidecar without that field.
  • The scraper's own default stays 10 MB (proxy_meter.DEFAULT_BUDGET_MB, --proxy-budget-mb default).
  • 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 a null budget (no cap). The existing "defaults to 10" check is unchanged.
  • README canary paragraph and CHANGELOG [Unreleased] / Changed (CI only).

Evidence

  • Core-only venv (requirements.txt): python smoke_test.py 558 passed, 0 failed, 8 engine groups skipped (no engine installed); python3 .github/ci_checks.py --all ok.
  • Planted-fault controls, each red on the named check, then 558/0 after restoring:
    1. vehicle run back to --proxy-budget-mb 10: "every scraper run passes --proxy-budget-mb 15" fails;
    2. summary script ignoring 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;
    3. vehicle summary step passing a fixed 10: "a summary step reads canary_vehicle's sidecar, with no fixed budget" fails;
    4. DEFAULT_BUDGET_MB = 15.0: "budget: --proxy-budget-mb defaults to 10" fails;
    5. null budget read as 10: "a null proxy_budget_bytes reads as no cap" fails.
  • No canary was dispatched. No paid calls.

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

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
@jehrr
jehrr merged commit f18fc88 into main Oct 21, 2026
7 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