Skip to content

Commit ef0f4f4

Browse files
Programcodeclaude
andcommitted
Run the production canary after debate-navigator deploys
Since 2026-10-16, Vercel has named its GitHub deployment environments after the project ("Production – debate-navigator"). The canary only matched "Production", so every post-deploy run since then was skipped. That's 37 skipped runs, and no production deploy has been canaried since. Match the live site's environment and keep the old name. The debatelab-staging project's production deploys still don't start it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 588b132 commit ef0f4f4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/prod-canary.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ concurrency:
1818

1919
jobs:
2020
canary:
21+
# Vercel names the deployment environment after the project. The live site
22+
# is debate-navigator; debatelab-staging's "production" is staging, so it
23+
# must not start the canary. Plain 'Production' is the pre-2026-10 name.
2124
if: >-
2225
github.event_name != 'deployment_status' ||
23-
(github.event.deployment_status.state == 'success' && github.event.deployment.environment == 'Production')
26+
(github.event.deployment_status.state == 'success' &&
27+
(github.event.deployment.environment == 'Production – debate-navigator' ||
28+
github.event.deployment.environment == 'Production'))
2429
runs-on: ubuntu-latest
2530
timeout-minutes: 15
2631
steps:

‎docs/testing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ npx playwright test --config=playwright.production.config.ts
293293

294294
The last two checks are the only production writes, and they touch only the canary account: its `ai_requests` usage rows and whatever the Generate page saves for it. The dedicated canary account has Pro promo access capped at 10 requests a day. Captures are disabled because they could retain its session.
295295

296-
`.github/workflows/prod-canary.yml` runs after every successful Vercel `Production` deployment, daily at 06:41 UTC, and on demand. Main can deploy more than 10 times a day, so deployment runs set `CANARY_AI_REQUESTS=false` and skip the two AI checks. The signed-in session check still runs on every deployment. Only the daily and manual runs make real AI requests: two per run, plus at most two retries. It reads the password and email from secrets and the public anon key from the `PROD_SUPABASE_ANON_KEY` repository variable.
296+
`.github/workflows/prod-canary.yml` runs after every successful Vercel production deployment of the `debate-navigator` project (GitHub environment `Production – debate-navigator`; the `debatelab-staging` project's production deployments do not start it), daily at 06:41 UTC, and on demand. Main can deploy more than 10 times a day, so deployment runs set `CANARY_AI_REQUESTS=false` and skip the two AI checks. The signed-in session check still runs on every deployment. Only the daily and manual runs make real AI requests: two per run, plus at most two retries. It reads the password and email from secrets and the public anon key from the `PROD_SUPABASE_ANON_KEY` repository variable.
297297

298298
The local stack begins at port `54321` and is not parallel-safe across worktrees. The task that starts it must stop it before finishing or abandoning the run. Use `supabase stop --no-backup` unless another active task explicitly owns the same stack.
299299

0 commit comments

Comments
 (0)