-
Notifications
You must be signed in to change notification settings - Fork 129
chore: misc bug fixes, add logs for outbound req #3332
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
chore: misc bug fixes, add logs for outbound req #3332
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review: Miscellaneous Bug Fixes and Logging ImprovementsThanks for the PR! I've reviewed the changes and found several important bug fixes. Here's my detailed feedback: Critical Bug Fixes1. standalone.rs:100 - Variable Name Fix (Critical) The function was incorrectly returning ctx instead of new_ctx, which would have caused the from_workflow flag modification on line 98 to be lost. This bug would have resulted in incorrect workflow context tracking. Excellent catch! 2. keys.rs:254 - Underscore Prefix Removal Good fix! Variables prefixed with underscore in Rust indicate intentionally unused variables. Since actor_id is being accessed, the underscore was incorrect and could trigger warnings. 3. mod.rs:700 - Serde Default Attribute This is a backward compatibility improvement. Adding serde(default) ensures that deserialization won't fail if reset_rescheduling is missing from older stored data. This is a defensive programming best practice for evolving data structures. Improvements4. Logging Enhancement in pegboard-serverless/src/lib.rs The new error handling for InvalidStatusCode is a great debugging improvement. This provides much better visibility into HTTP failures. The 512-byte limit is a good safeguard against logging extremely large responses. 5. File Rename: actor_keys.rs to keys.rs Cleaner, more concise naming that better follows Rust conventions. 6. Database Query Order Removal in runner.rs Removing the reverse: true option. Could you clarify the reasoning here? Was the reverse order causing issues, or is the comment outdated? It would be helpful to understand if this changes allocation behavior. Questions & Considerations
Performance & Security
Recommendations
SummaryOverall, this is a solid set of bug fixes that address real issues:
The changes follow the project's conventions (proper use of structured logging per CLAUDE.md, workspace-based imports, etc.). Great work catching these issues! Recommendation: Approve with minor suggestions for documentation/testing |
Code ReviewI've reviewed this PR and found several important fixes. Here's my detailed feedback: Critical Bug Fixes1. Visibility Fix in operation.rs (Line 32) 2. Critical Variable Name Bug in standalone.rs (Line 100) 3. Unused Variable Fix in keys.rs 4. Range Optimization Removal in runner.rs Improvements5. Enhanced Error Logging in pegboard-serverless (Lines 390-399) Minor suggestion: Consider using structured logging per CLAUDE.md conventions. 6. Serde Default Addition (Line 699) 7. File Rename: actor_keys.rs to keys.rs Recommendations
SummaryStrengths: Fixes critical variable shadowing bug, improves error visibility, good backward compatibility Overall Assessment: Approve with minor suggestions. The critical bug fixes outweigh the minor suggestions. Review generated by Claude Code |
58f931d to
867707c
Compare
PR Review: Misc Bug Fixes and Logging ImprovementsThanks for cleaning up these issues! Overall the changes look good and address several important bugs. Here's my detailed feedback: Critical Bug Fixes1. gasoline/src/ctx/standalone.rs:100 - Fixed return value 2. pegboard/src/workflows/actor/keys.rs:254 - Fixed unused variable warning 3. pegboard/src/workflows/actor/keys.rs:248 - Simplified range usage Improvements4. pegboard-serverless/src/lib.rs:390-399 - Enhanced error logging 5. pegboard/src/workflows/actor/mod.rs:699 - Added serde default Code Organization6. File rename: actor_keys.rs to keys.rs Minor Cleanups7. Removed unnecessary blank line (pegboard-gateway/src/lib.rs:367) 8. Removed obsolete comment (pegboard/src/workflows/runner.rs:1026-1027) 9. Visibility change (gasoline/src/ctx/operation.rs:32) Recommendations
SummaryApproved - These are solid bug fixes with good improvements to error visibility. The critical bugs (returning wrong variable, unused variable fix) are important catches that could have caused production issues. The PR follows the repository conventions from CLAUDE.md and maintains code quality. Nice work! |
867707c to
f73435d
Compare
Merge activity
|
No description provided.