Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ on:
schedule:
# 06:20 UTC. Off the hour, because everything else in the world runs on
# it and a queued runner adds nothing but latency.
- cron: "20 6 * * *"
# Mondays: the same jobs, WITH the paid secrets (proxy, Scraping Browser,
# captcha key). On the daily run above those secrets read as empty, so
# it takes the free no-secret route and bills nothing.
- cron: "20 6 * * 1"
workflow_dispatch:

Expand All @@ -76,7 +72,7 @@ jobs:
env:
# `secrets` is not available in a job-level `if`, so presence is tested
# through the job env and read in each step's condition.
HAVE_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY != '' }}
HAVE_PROXY: ${{ secrets.QUORA_PROXY != '' }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -107,7 +103,7 @@ jobs:
# stops the step from failing the job; it does not touch errexit.
continue-on-error: true
env:
QUORA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY || '' }}
QUORA_PROXY: ${{ secrets.QUORA_PROXY }}
run: |
set +e
xvfb-run -a python3 playwright_scraper.py \
Expand Down Expand Up @@ -351,7 +347,7 @@ jobs:
if: ${{ !cancelled() }}
continue-on-error: true
env:
QUORA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY || '' }}
QUORA_PROXY: ${{ secrets.QUORA_PROXY }}
run: |
set +e
xvfb-run -a python3 playwright_scraper.py \
Expand Down
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ bad default or violating the promise quietly.

### Changed

- CI only: the canary's optional paid secret `QUORA_PROXY` now reaches it only on a new weekly
run (Mondays 06:20 UTC) and on a manual dispatch. The daily run keeps its
schedule and takes the free route without them, so it bills nothing.
- CI only: the canary now runs weekly (Mondays 06:20 UTC) and on a manual dispatch, with its optional secret `QUORA_PROXY` passed on every run; the daily schedule is removed.

## [0.2.0] — 2026-10-16

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Author names, profile slugs, credentials, answer bodies and cited links are
replaced with placeholders first; question titles, ids, counts, timestamps and
Quora's own markup stay verbatim.

`canary.yml` runs two real runs daily — a question URL for the inline-payload
`canary.yml` runs two real runs weekly (Mondays) — a question URL for the inline-payload
path and a topic URL for the DOM-only one — and asserts that each behaves the
way this README says it does. A run that did not parse real rows (blocked,
never got its content, partial, or empty) turns the badge red rather than
Expand Down
Loading