fix(ci): harden flaky Cloudflare and queue integration tests#2704
Conversation
Same-SHA restarts were masking races: global cron queue counts, wrangler-local 503s under load, Cache API misses on same-channel rate limits, and concurrent app_versions upserts. Scope queue asserts by org, lower CF workers with one cheap retry, and retry the known racey helpers/scenarios. Also restore discord/github username fields wiped from generated types by the latest schema auto-sync so typecheck matches the merged social-usernames migration. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_06ee7a11-bcb5-47a8-a1cd-0b4a44889f0d) |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Confidence score: 5/5
- Safe to merge after the addressed issues were fixed.
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Keep lower worker concurrency and per-test mitigations, but do not mask unrelated assertion failures with a global retry. Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_0411a50b-7cdf-4cad-9148-0be35f7939de) |
Drop helper/scenario retry loops; keep org-scoped queue asserts and lower worker concurrency as the stability fixes. Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_a877f2a4-94a3-4b00-8657-564d5485b7b0) |
|





Summary (AI generated)
orgIdso parallel cron tests cannot inflate a global queue count (expected 7 to be 6).maxWorkers: 3,maxConcurrency: 6) and add one cheap testretryto absorb wrangler-local 503 / Cache API blips without full job restarts.createAppVersionsupserts that occasionally return no row.discord_username/github_usernameon generateduserstypes after schema auto-sync wiped them (unblocks typecheck on main).Motivation (AI generated)
CI history shows same SHA failing then passing after re-run (often 2–4 attempts), mostly on Cloudflare Workers shards. Full job restarts waste minutes of Supabase/worker boot; root races plus a single in-process retry keep the suite fast and stable.
Business Impact (AI generated)
Faster PR feedback and fewer false-red CI runs that block merges and burn engineer time.
Test Plan (AI generated)
queue_cron_stat_org_function,statscreateAppVersions path)bun run typecheckpassesGenerated with AI
Made with Cursor