Skip to content

Canary: report the listing run's verdict even after a budget failure - #10

Merged
jehrr merged 1 commit into
mainfrom
ci/canary-listing-verdict-after-budget
Oct 21, 2026
Merged

jehrr merged 1 commit into
mainfrom
ci/canary-listing-verdict-after-budget

Conversation

@jehrr

@jehrr jehrr commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

"Interpret the listing run" had only if: env.AUTOTRADER_PROXY != '', so it carried GitHub's implicit success(). When "Proxy traffic (listing)" before it failed (the run exceeded its proxy budget), GitHub skipped it. The log then showed only the budget error and never the listing run's own verdict (exit 6 partial, 5 pages never arrived, parser_found_nothing and so on).

Change

  • .github/workflows/canary.yml: "Interpret the listing run" now has if: ${{ !cancelled() && env.AUTOTRADER_PROXY != '' && steps.listing.outcome != 'skipped' }}. The job's result is unchanged: a failed proxy-traffic step still fails the job, and the interpret step still exits 1 on any nonzero exit.
  • The vehicle half has no separate verdict step: its exit and row checks run inside "Vehicle mode, the first three results", before "Proxy traffic (vehicle)". Nothing there is skipped by a budget failure, so it is unchanged.
  • smoke_test.py: a check that every step judging a run's .outputs.exit_code carries !cancelled() or always(), and that "Interpret the listing run" is one of them.
  • CHANGELOG [Unreleased] / Changed (CI only).

Evidence

  • Core-only venv (requirements.txt): python smoke_test.py 560 passed, 0 failed, 8 engine groups skipped. python3 .github/ci_checks.py --all ok. The workflow parses as YAML, and its triggers are still only schedule and workflow_dispatch.
  • Planted-fault control: with the guard reverted to if: env.AUTOTRADER_PROXY != '', both new checks fail ("unguarded: ['Interpret the listing run']") with 558 passed and 2 failed. After restoring, 560 passed and 0 failed.
  • No canary was dispatched. No paid calls.

Not changed

"Assert the listing run" (it reads the rows only after exit 0, and a run over its budget never exits 0), the 15 MB canary budget, the scraper's 10 MB default, and the release/version.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8

"Interpret the listing run" carried only the proxy-secret condition, so
when "Proxy traffic (listing)" before it failed (budget exceeded) GitHub
skipped it and the run's own exit-code verdict never appeared. It now runs
unless the job was cancelled or the listing step itself was skipped; the
job stays red either way. A smoke check requires every step that judges a
run's exit code to carry !cancelled() or always().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8
@jehrr
jehrr merged commit 8d8624c 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