Repository navigation
Lost rows fail the run, one paid solve per page, atomic formula-safe output - #4
Merged
Merged
Conversation
…output - A served page holding properties that parses to no rows is now a failed page (stop_reason parser_found_nothing): exit 5 with nothing gathered, exit 6 after earlier pages. It used to be exit 4, or a complete run. - Every landing for a page, and the city lookup before page 1, spends one page_flow.SolveBudget; a page could buy 3 solves and a run by city 5. - JSON, CSV and the sidecar are written atomically with the mode open() would give; formula-shaped CSV cells get a leading apostrophe and the sidecar records csv_cells_escaped. - MAKEMYTRIP_URL ships commented out, and a URL from .env gives way to typed query flags, so the README's `--city Goa` works after copying .env.example. - Negative --delay, --retry-delay and --proxy-block-retries are usage errors. - A CDP 401 no longer claims credentials last about a day. - The canary's Scraping Browser job runs on the schedule and fails when its secret is missing. - Comments and docs state their reasons without pointing at private notes; a suite check keeps it so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….env URL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jehrr
marked this pull request as ready for review
October 15, 2026 21:16
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.
Fixes from the 2026-10-14 audit of
mainat9f66b72.Problems, and the behaviour now
idrenamed: classifiedcontent, 4 properties stated, 0 rows.--pages 1/3gave exit 4; good p1 + broken p2 gave exit 0,completestop_reason: parser_found_nothing: exit 5 with no rows, exit 6partial,pages_failed: [2]after page 1. The response is saved as<out>_pageN_debug.html. "No Hotels Found" is still exit 4.env.exampleURL (high)cp .env.example .envthen--city Goagave exit 2 ("--url already carries the query")MAKEMYTRIP_URLships commented out. Each engine recordstyped_urlbeforeenv_config.apply, and an environment URL gives way to typed query flags. A typed--urlwith--cityis still exit 2json.dumpleftout.json/out.meta.jsonas 10-byte invalid fragments_atomic(): temp file in the target's dir, flush, fsync,os.replace, unlink on error. New file gets0o666 & ~umask, an existing file keeps its mode. Used by json, csv (newline="") and the sidecar= + - @ TAB CR LFget'after list joining. Numbers and JSON are untouched.csv_cells_escapedis in the sidecar, merged under the caller'sextraSOLVES_PER_PAGE = 1page_flow.SolveBudget, one per page, checked before each purchase and never reset by retry or relaunch. The city lookup spends page 1's allowance. Now 1 and 1check_no_private_citations_in_shipped_files(tokens assembled from pieces).env.example, bug template and canarydatacentrejob is documented as "datacentre refusal expected" and still treats exit 3 as a notice. Thescraping-browserjob now runs on the schedule, fails with::error::namingMAKEMYTRIP_CDP_ENDPOINTwhen the secret is absent, and fails on exit 3/4/5/6 or fewer than 60 rows--retriestextwhile attempt < args.retriesafter the landing).dockerignorebinance_rows.*makemytrip_hotels.*,.env.*,canary*.json,*.page[0-9]*--delay,--retry-delayand--proxy-block-retriestook negatives.envvalueEvidence
Offline suite results, no driver installed for the core run:
Each engine venv skipped only the other engines, and
pip checkwas clean in each.ci_checks.py --secret-check: 44 files, clean.Through
playwright_scraper.parse_argswithMAKEMYTRIP_URLset:--city Goabuilds a Goa query;--delay -1giveserror: argument --delay: --delay must be 0 or more;--urlplus--cityis refused.Planted-fault controls, run with
PYTHONDONTWRITEBYTECODE=1and__pycache__removed. Each one went RED on its named check, and the restored tree was green:0o644extrafloatfor--delaypage_flow.pyMAKEMYTRIP_URLuncommentedThe last control first crashed the env check instead of failing it by name. The check was fixed to report by name. A first version of the budget control looped forever, so the solver stub now raises after 20 calls.
No paid calls, no proxies, no credentials and no live requests.
Not changed
--proxy/--fingerprintwith--cdp-endpointinstead of warning): owner decision, because it changes behaviour for existing scripts.CHANGELOG.md[Unreleased]and oncanary.yml. Audit follow-ups: honest engines badge, dated live checks, canary env report #2 was not touched.captcha_solver.pythat record measurements on sibling sites. They are shared-solver provenance, not residue in this repo's behaviour.Owner action
The
MAKEMYTRIP_CDP_ENDPOINTsecret (set 2026-09-25) has to be valid, or the scheduled canary goes red. That is intended: red means nothing tested the site.🤖 Generated with Claude Code