-
Notifications
You must be signed in to change notification settings - Fork 130
chore(runner): improve runner connection logs #3365
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(runner): improve runner connection logs #3365
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Pull Request Review: chore(runner): improve runner connection logsSummaryThis PR improves observability in the TypeScript runner SDK by adding detailed connection logging and refactoring the endpoint getter. Positive Aspects ✅
Security Consideration
|
45f6aba to
504772d
Compare
14309e8 to
3ed0d9f
Compare
Code ReviewSummaryThis PR improves the logging for runner connections by adding more detailed connection information and extracting the endpoint logic into a reusable getter. Overall, this is a good quality-of-life improvement for debugging connection issues. Positive Changes ✅
Security Concern 🔒Issue: The PR logs runnerKey: this.#config.runnerKey,Risk: The Recommendation: Either:
Note that Minor Suggestions
Code Quality: Good ✨
Verdict: Approve pending security fix for |
Code Review for PR #3365: chore(runner): improve runner connection logsSummaryThis PR improves the runner connection logs by:
Overall AssessmentThis is a solid improvement to observability. The changes are focused, well-structured, and follow good logging practices. ✅ Detailed FeedbackCode Quality & Best Practices ✅1. Good refactoring of get pegboardEndpoint() {
return this.#config.pegboardEndpoint || this.#config.endpoint;
}
2. Structured logging with Pino ✅ logger()?.info({
msg: "connecting",
endpoint: this.pegboardEndpoint,
namespace: this.#config.namespace,
runnerKey: this.#config.runnerKey,
hasToken: !!this.config.token,
});This is good practice for log aggregation and searching. 3. Log message consistency ✅ Potential Issues & Concerns🔴 SECURITY CONCERN:
|
504772d to
ff28677
Compare
3ed0d9f to
61bc452
Compare
Code ReviewSummaryThis PR improves logging for the runner's connection process by adding structured diagnostic information before the WebSocket connection attempt and standardizing log message casing. Positive Aspects ✅
Suggestions for Improvement 💡Security ConsiderationThe PR logs logger()?.info({
msg: "connecting",
endpoint: this.pegboardEndpoint,
namespace: this.#config.namespace,
runnerKey: this.#config.runnerKey.substring(0, 8) + '...', // Log prefix only
hasToken: !!this.config.token,
});Question: Is it safe to log the full Minor: Property Access InconsistencyLine 482 uses hasToken: !!this.#config.token, // Use private field like other propertiesOr use the public getter for all: hasToken: !!this.config.token,Test Coverage 📋No tests were found for this module. While logging changes are low-risk, consider:
VerdictApprove with minor suggestions ✓ The changes improve observability and follow good logging practices. The security consideration around logging |
ff28677 to
691501d
Compare
61bc452 to
5d31632
Compare
PR Review: chore(runner): improve runner connection logsSummaryThis PR improves connection logging by adding more detailed information when the runner connects to pegboard, and extracts a getter method for the pegboard endpoint. The changes are focused and align with the stated goal of improving observability. Code Quality ✅Positive aspects:
Best Practices ✅Logging conventions:
Potential Issues 🔍Minor considerations:
Test Coverage
|
691501d to
e9b6bde
Compare
5d31632 to
422a612
Compare
e9b6bde to
1915f31
Compare
PR Review: chore(runner): improve runner connection logsSummaryThis PR improves logging during the runner WebSocket connection process by adding more detailed structured logging before the connection attempt and adjusting log message casing for consistency. Code Quality ✅Positive aspects:
Structured Logging Pattern: logger()?.info({
msg: "connecting",
endpoint: this.pegboardEndpoint,
namespace: this.#config.namespace,
runnerKey: this.#config.runnerKey,
hasToken: !!this.config.token,
});This follows best practices by:
Observations & Suggestions1. Information Disclosure Consideration
|
PR Review: chore(runner): improve runner connection logsSummaryThis PR improves logging for runner connection lifecycle by:
Code Quality & Best Practices ✅Strengths:
Suggested Improvements:
Potential Bugs 🔍No bugs detected. The refactoring is straightforward and maintains existing behavior. Performance Considerations ⚡
Security Concerns 🔒
Test Coverage 📋
Minor Observations
RecommendationApprove with minor suggestions:
The logging improvements will make connection debugging much easier. Nice work! 🎉 |
Merge activity
|

No description provided.