-
Notifications
You must be signed in to change notification settings - Fork 134
chore: rename retry -> hibernate in runner protocol #3473
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: 11-13-fix_udb_update_backoff_algo
Are you sure you want to change the base?
chore: rename retry -> hibernate in runner protocol #3473
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code ReviewSummaryThis PR performs a straightforward renaming of the Positive Aspects ✅
Issues Found 🔍1. Unrelated Import Reordering (Minor)File: The import order change appears unrelated to the PR's purpose: -use base64::prelude::BASE64_STANDARD;
use base64::Engine;
+use base64::prelude::BASE64_STANDARD;Recommendation: This formatting change should either be:
2. Unrelated Formatting Changes (Minor)File: The multiline formatting of the -"/actors/{}/kv/keys/{}", path.actor_id, urlencoding::encode(&path.key)
+&format!(
+ "/actors/{}/kv/keys/{}",
+ path.actor_id,
+ urlencoding::encode(&path.key)
+)Recommendation: Consider reverting this change to keep the PR focused on the 3. Assert Function and Whitespace Changes (Minor)File: Multiple unrelated changes:
Recommendation: While these are generally good cleanups:
Per CLAUDE.md: "Do not run ./scripts/cargo/fix.sh. Do not format the code yourself." These formatting changes may have been unintentional. Recommendations 📝
Security & Performance ✅
Overall AssessmentThis is a clean refactoring PR that improves code clarity. The core change (rename) is well-executed and comprehensive. The only concerns are minor unrelated formatting changes that could be cleaned up to keep the PR focused. Recommendation: Approve with minor cleanup suggestions. |
9b619f4 to
267ddc0
Compare
7ec4550 to
bbe84e7
Compare
Code ReviewThank you for this PR! The rename from ✅ Strengths
🐛 Issues FoundCritical: Missing update in stringify.ts The file // Line 61-64
const { code, reason, retry } = kind.val;
const codeStr = code === null ? "null" : code.toString();
const reasonStr = reason === null ? "null" : `"${reason}"`;
return `ToServerWebSocketClose{code: ${codeStr}, reason: ${reasonStr}, retry: ${retry}}`;This should be updated to: const { code, reason, hibernate } = kind.val;
// ...
return `ToServerWebSocketClose{code: ${codeStr}, reason: ${reasonStr}, hibernate: ${hibernate}}`;Location: 📝 Minor Observations
✅ Security & Performance
🧪 Testing RecommendationGiven that this is a protocol-level change:
SummaryThis is a solid refactoring that improves code clarity. The main action item is to fix the missing rename in |
Code ReviewThis PR renames the Positives
Issues Found
SecurityNo security concerns identified. This is a straightforward rename that doesn't change the protocol's security properties. PerformanceNo performance impact - this is a pure rename. Recommendations
SummaryThis is a good refactoring that improves code clarity. However, there's at least one file (stringify.ts) that was missed and will cause a compilation error. The PR should not be merged until that's fixed. |
bbe84e7 to
e83ac9b
Compare
PR Review: Rename retry -> hibernate in runner protocolSummaryThis PR renames the retry field to hibernate in the WebSocket close message of the runner protocol. This is a good semantic improvement as hibernate more accurately describes the intent of persisting WebSocket state for later resumption. Code Quality - Strengths
Issues Found1. Bug: Incomplete rename in stringify.ts (line 61, 64) 2. Type inconsistency in websocket-tunnel-adapter.ts (line 20, 35) 3. Outdated comment in tunnel.ts (line 80) 4. Unrelated formatting changes Security and Performance
Test Coverage
Action ItemsMust Fix: Update stringify.ts and websocket-tunnel-adapter.ts to use hibernate VerdictGood refactoring that improves code clarity! Just needs completion of the rename in a couple of TypeScript files to maintain consistency. |
267ddc0 to
650a53e
Compare
e83ac9b to
00cd5f2
Compare
PR Review: Rename
|
Code ReviewSummaryThis PR performs a semantic renaming from Changes Overview
Code Quality ✅Strengths:
Minor Observations:
Potential Issues ❌ None FoundNo bugs, security issues, or performance concerns identified. Test Coverage 🔍Recommendation: Consider verifying that existing WebSocket tests still pass, particularly:
The renaming is purely semantic, so existing tests should continue to work without modification, but it's worth confirming the behavior is unchanged. Performance Considerations ✅No performance impact - this is a pure rename with no logic changes. Security Concerns ✅No security implications. Verdict: ✅ ApprovedThis is a clean refactoring that improves code readability without introducing any functional changes. The semantic meaning of "hibernate" is clearer than "retry" for this use case, where the connection may be resumed later. Recommendations:
|

No description provided.