-
Notifications
You must be signed in to change notification settings - Fork 140
Simplify runner connection detection #3646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Simplify runner connection detection #3646
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review - Simplify runner connection detectionSummaryThis PR simplifies the manual serverfull connection check by removing specific datacenter and runner name validation, instead treating any connected runner as a successful connection. AnalysisWhat ChangedBefore: const { watch } = useFormContext();
const datacenter: string = watch("datacenter");
const runnerName: string = watch("runnerName");
const success = !!queryData?.find(
(runner) =>
runner.datacenter === datacenter && runner.name === runnerName,
);After: const success = !!queryData?.length;This change removes the specific matching logic that verified the runner's datacenter and name match the form values. Concerns🔴 Critical: Behavior Change May Lead to False PositivesThe new implementation has a significant semantic change:
Impact: Users could see "Runner successfully connected" even if:
Example Scenario:
|
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Summary
Testing
Codex Task