diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 2f1776a..33600c9 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -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: @@ -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 \ @@ -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 \ diff --git a/CHANGELOG.md b/CHANGELOG.md index 6725a70..487395b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 29ad24e..3c0fdd1 100644 --- a/README.md +++ b/README.md @@ -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