Prevent CSS and component edits from rebuilding the ingestion worker. - #2442
Conversation
The worker image only bundles src/lib (plus src/data snapshots), so watching all of /src/** triggered unnecessary Railway rebuilds. Co-authored-by: Cursor <cursoragent@cursor.com>
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. 📝 WalkthroughWalkthroughThe Railway worker watch scope now separates library and data paths. Tests include DSM clinical content as a deployment trigger and verify that UI components and global stylesheets do not trigger worker rebuilds. ChangesRailway worker deployment scope
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk:⚪ Minimal · up to This localized deployment-config change narrows worker rebuild triggers without changing worker runtime behavior or clinical output, and no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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_2af6b8cb-ff35-4ad6-8cb7-b1cc36b68b91) |
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_a2e89655-254e-4ee3-bb9f-51b4151506ab) |
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_ff0f5692-f510-474c-9a30-6bd5090a3f91) |
Uh oh!
There was an error while loading. Please reload this page.
Summary
watchPatternsfrom/src/**to/src/lib/**and/src/data/**so CSS and component edits no longer rebuild the ingestion worker.src/libplussrc/datasnapshots, so watching all of/src/**triggered unnecessary Railway rebuilds.tests/railway-config.test.ts.Verification
npm run verify:pr-localDuring development, use
npm run verify:cheapas the faster iteration gate before the final PR-local preflight.npm run verify:uiwhen UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changednpm run verify:releasebefore release or handoff confidence claimsFor retrieval, ranking, selection, chunking, source/citation rendering, or answer-contract changes,
verify:pr-localrunseval:rag:offlineautomatically. Run the offline command directly during iteration before spending a live eval.npm run eval:retrieval:quality(must stay 36/36) when retrieval, ranking, selection, chunking, or scoring behavior changed — CI cannot run it (needs live keys), so run it locally and paste the summary. A metadata/governance-weighting change once buried correct docs (recall 1.0→0.76) and only this eval caught it.npm run eval:rag -- --limit 15+npm run eval:quality -- --rag-onlywhen answer generation, the synthesis prompt, or answer post-processing changed (grounded-supported must not drop; citation-failure 0)npm run check:production-readinesswhen clinical workflow, privacy, environment, Supabase, source governance, or deployment behavior changednpm run check:deployment-readinesswhen deployment startup, hosting, or rollout behavior changedVerification not run: bare "open PR" publication by request; local and hosted checks were not executed.
Risk and rollout
Complete this section for clinical, data, API, auth/privacy, workflow, dependency, build, or deployment changes.
/src/lib/**and/src/data/**instead of all of/src/**. Worker runtime, ingestion pipeline behaviour, and clinical output are unchanged. A missed path would delay a worker image rebuild until the next matching file change, not change serving behaviour.watchPatternsto/src/**inrailway.worker.json) and let the worker service redeploy frommain.main, Railway auto-deploys the worker from this repo. The change only narrows which path edits trigger a worker rebuild; it does not mutate live data or require a one-off operator action.Clinical Governance Preflight
Complete this section when the change touches ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output.
Clinical KB Database(sjrfecxgysukkwxsowpy)This PR does not touch clinical-risk paths (
clinicalRiskis false). It only changes Railway worker watchPatterns and the matching config test, so the preflight items above are not applicable and remain unchecked.Notes
railway.worker.jsonplustests/railway-config.test.ts. No RAG ranking surfaces, no ingestion worker source, and no clinical output change.Note
Low Risk
Deployment watch-pattern only; worker runtime and ingestion behaviour are unchanged. A wrong pattern could delay worker image rebuilds until a matching path changes.
Overview
Narrows Railway worker deploy triggers so edits under
src/components,src/app(e.g. CSS), and other UI paths no longer rebuild the ingestion worker image.railway.worker.jsonreplaces the broad/src/**watch pattern with/src/lib/**and/src/data/**, matching what the worker build actually ships. Tests addsrc/data/dsm-clinical-content.jsonas a positive worker trigger and assertsrc/components/ui/button.tsxandsrc/app/globals.cssdo not trigger a worker deploy.Reviewed by Cursor Bugbot for commit 10c7db0. Configure here.
Summary by CodeRabbit