Skip to content

chore(release): sync develop into main for v0.2.0 - #35

Merged
marcinobel merged 3 commits into
mainfrom
develop
Nov 20, 2026
Merged

marcinobel merged 3 commits into
mainfrom
develop

Conversation

@marcinobel

Copy link
Copy Markdown
Member

Sync develop into main for the v0.2.0 release.

CI is green on develop at c7eb9c5. Merge as a merge commit (develop → main convention).

marcinobel and others added 3 commits November 17, 2026 21:09
Scrapes crashed after the first ~10 reviews, long reviews stayed cut
off, and a dead Google session was reported as signed in.

- scroll: pass the scroll step into the page instead of reading a
  Node-side constant inside page.evaluate (ReferenceError on the
  second scroll)
- expand: click each "More" button by a mark on the element and
  confirm the result; Google now removes the button on click, which
  made the positional loop skip every second review. Warn with the
  number of reviews that stay cut off
- session: one check for "Google accepts this session"
  (getSessionState) used by auth, auth status and the sign-in wait;
  an expired session is no longer reported as signed in
- limited view: typed AUTH_REQUIRED error, never retried, one message
  that says to run `revcli auth`, for every sort order; headed mode
  asks for sign-in and continues
- non-place links fail once with NOT_A_PLACE
- short links: wait for the in-page redirect before forcing hl=en, so
  signed-out and non-English profiles get an English page
- errors: one top-level handler, no stack trace without --verbose,
  Playwright call logs removed from messages
- tests: browser tests run the scroll, expand, session and navigation
  code in headless Chromium against local fixtures; CI installs
  Chromium
- docs: README, AGENTS.md, selector maintenance guide, CHANGELOG

Refs #31

Claude-Session: https://claude.ai/code/session_01PuLVjZfdZVDn9e5QnCEtCH
…st (#34)

Issue #33: `revcli batch` could not finish long lists unattended.

- A location timeout now really stops the scrape: runWithTimeout() aborts
  a signal that withRetry and scrapeLocation honour, closes the browser,
  and waits until it is closed before the next place starts. A late result
  is never saved. If a stopped browser does not close within 15 s, the
  batch stops with exit 1 (resume with --resume).
- revcli owns SIGHUP/SIGINT/SIGTERM: Playwright's own handlers (whose
  SIGTERM handler closed browsers without exiting) are turned off; a signal
  aborts running work, closes every browser and exits 129/130/143.
- Collected review cards are marked with their review id and skipped, so a
  collect cycle reads only new cards (last/first 10 cycles at 2,000 reviews:
  970/177 ms before, ~140/85 ms after). A reused card is read again.
- Output and state files are written atomically (temp file + rename).

Also includes `revcli scrape --time-limit <minutes>`: stop collecting after
the given time and save the reviews collected so far, with a warning.

Closes #33
@marcinobel
marcinobel merged commit 27284e4 into main Nov 20, 2026
2 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.

batch: timed-out place leaves its browser running, SIGTERM is ignored, and large places slow down

1 participant