Skip to content

ci: include scripts/rate-limit.ts in demo redeploy gating (+ trigger redeploy of #316)#317

Merged
blove merged 1 commit into
mainfrom
claude/ci-include-rate-limit-trigger-deploy
May 14, 2026
Merged

ci: include scripts/rate-limit.ts in demo redeploy gating (+ trigger redeploy of #316)#317
blove merged 1 commit into
mainfrom
claude/ci-include-rate-limit-trigger-deploy

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 14, 2026

Summary

The Phase 3 hotfix in #316 fixed a SQL bug in `scripts/rate-limit.ts` but never reached production. The CI `Check if demo changed` step's regex only watched assemble-demo, demo-middleware, and langgraph-proxy. A rate-limit.ts change alone evaluated `demo_changed=false`, the deploy step was skipped, and `demo.cacheplane.ai` kept serving the original broken bundle.

Verified by querying the latest Vercel deployment: still `dpl_5ZCi...` from before #316.

Fix

  1. Extend the watched regex to include `scripts/rate-limit.ts`.
  2. Touch `scripts/demo-middleware.ts` with a documentation comment so THIS PR matches the existing watched paths and triggers the redeploy that picks up fix(rate-limit): SQL interval parameterization — Phase 3 hotfix #316's SQL fix.

The doc comment also calls out the implicit coupling so future splits of rate-limit into multiple files don't silently break the gating.

Test plan

  • After merge: new Vercel deployment ID appears (not `dpl_5ZCi...`)
  • After merge: 12-request rate-limit smoke against `demo.cacheplane.ai` returns 200 for 1–10 and 429 for 11–12

🤖 Generated with Claude Code

The Phase 3 hotfix in #316 fixed a SQL bug in scripts/rate-limit.ts
but never reached production: the CI Check if demo changed step's
regex only watched assemble-demo, demo-middleware, and langgraph-proxy.
A rate-limit.ts change alone evaluated demo_changed=false, the deploy
step was skipped, and demo.cacheplane.ai kept serving the original
broken bundle.

Two changes:

1. Extend the watched regex to include scripts/rate-limit.ts.
2. Touch scripts/demo-middleware.ts (a documentation comment) so
   THIS PR matches the existing watched paths and triggers the
   redeploy that picks up #316's SQL fix.

Also documents the gating contract in demo-middleware.ts itself so a
future engineer splitting rate-limit into multiple files knows to
update the regex.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 14, 2026 6:58am

Request Review

@blove blove merged commit e5bc0f2 into main May 14, 2026
16 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.

1 participant