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 @@ -34,12 +34,8 @@ name: canary
# and there is no commented-out line for someone to forget to uncomment.
on:
schedule:
# Once a day, off the hour, so it is not competing with everyone else's
# Once a week (Mondays), off the hour, so it is not competing with everyone else's
# on-the-hour cron jobs for runner availability.
- cron: "23 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: "23 6 * * 1"
workflow_dispatch:

Expand Down Expand Up @@ -88,7 +84,7 @@ jobs:
# Empty when the secret is not set, which env_config.py treats as
# unset — so this line is correct in both cases and needs no edit
# when the secret arrives. See the header.
AMAZON_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '23 6 * * 1') && secrets.AMAZON_PROXY || '' }}
AMAZON_PROXY: ${{ secrets.AMAZON_PROXY }}
run: |
set +e
python3 playwright_scraper.py \
Expand Down Expand Up @@ -271,7 +267,7 @@ jobs:
# interpretation step.
continue-on-error: true
env:
AMAZON_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '23 6 * * 1') && secrets.AMAZON_PROXY || '' }}
AMAZON_PROXY: ${{ secrets.AMAZON_PROXY }}
run: |
set +e
python3 playwright_scraper.py --mode product \
Expand Down
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ one, and when it does the release notes say so first.

### Changed

- CI only: the canary's optional paid secret `AMAZON_PROXY` now reaches it only on a new weekly
run (Mondays 06:23 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:23 UTC) and on a manual dispatch, with its optional secret `AMAZON_PROXY` passed on every run; the daily schedule is removed.

## [0.2.0] — 2026-10-15

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ before they are committed. Two exceptions, both stated in the file itself:
a real account id ever arrives with a future capture.

Two workflows: `tests.yml` is offline only and never touches amazon.com or a
credential; `canary.yml` runs one real 3-page listing daily and asserts
credential; `canary.yml` runs one real 3-page listing weekly (Mondays) and asserts
`pages_completed`, `status == "complete"`, a product floor and a price-coverage
floor. Three pages, not one, because with one page pagination is never
exercised at all. Its first manual run, from a GitHub runner with no proxy at
Expand Down
Loading