-
Notifications
You must be signed in to change notification settings - Fork 41
fix(inspector): bring back the actor inspector #1174
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
fix(inspector): bring back the actor inspector #1174
Conversation
Claude finished @jog1t's task —— View job PR Review: Bring Back the Actor InspectorSummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage and implementing missing inspector features. The changes include a new extensive test suite and enhancements to the file system driver's inspector capabilities. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Proper Integration (
Enhanced Inspector Token Management (
Improved Actor Iteration (
|
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 either label to this PR to merge it via 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. |
More templates
@rivetkit/actor
@rivetkit/core
@rivetkit/db
rivetkit
@rivetkit/cloudflare-workers
@rivetkit/redis
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
commit: |
// expect.objectContaining({ | ||
// id: expect.any(String), | ||
// key: expect.arrayContaining(actorKey2), | ||
// }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commented-out expectation for actorKey2
should either be uncommented to properly test both actors or removed if not needed. Having commented test assertions can be confusing for future maintainers as it's unclear whether this represents an intentional exclusion or incomplete implementation. If both actors should be verified, consider uncommenting and fixing any issues that might have caused it to be commented out initially.
// expect.objectContaining({ | |
// id: expect.any(String), | |
// key: expect.arrayContaining(actorKey2), | |
// }), | |
expect.objectContaining({ | |
id: expect.any(String), | |
key: expect.arrayContaining(actorKey2), | |
}), |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
11be3f3
to
0ac4009
Compare
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI've analyzed all the changed files and will provide comprehensive feedback on code quality, potential issues, and recommendations. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver and enhancements to URL path handling. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
0ac4009
to
8d154f5
Compare
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationReview Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver and enhancements to URL path handling. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI'll provide a comprehensive code review of this PR that restores actor inspector functionality. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver and enhancements to URL path handling. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
8d154f5
to
fcb2b72
Compare
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI'll conduct a comprehensive code review of this PR that restores actor inspector functionality. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver, enhanced URL path handling, and validation improvements. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI'll conduct a comprehensive review of this PR focusing on code quality, potential bugs, performance, security, and test coverage. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver and enhancements to URL path handling. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
7a8d1a9
to
2709811
Compare
fcb2b72
to
997035c
Compare
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI'll conduct a comprehensive review of this PR focusing on code quality, potential bugs, performance, security, and test coverage. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver and enhancements to URL path handling. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
Claude finished @jog1t's task —— View job PR Review: Actor Inspector RestorationI'll conduct a comprehensive code review of this PR that restores actor inspector functionality. Review Checklist
SummaryThis PR successfully restores actor inspector functionality by adding comprehensive test coverage (570 lines) and implementing missing inspector features. The changes include bug fixes in the file system driver, enhanced URL path handling, and validation improvements. Code Quality Assessment✅ StrengthsComprehensive Test Coverage (
Clean Integration (
Enhanced File System Driver (
Security Best Practices
|
Merge activity
|
Closes FRONT-763 ### TL;DR Added actor inspector tests to the driver test suite to ensure inspector functionality works correctly across different drivers. ### What changed? - Added `runActorInspectorTests` to the driver test suite - Created a new test file `actor-inspector.ts` with comprehensive tests for both manager and actor inspectors - Enabled studio in the test runtime configuration to support inspector tests - Fixed a bug in the file system driver's `getActorsIterator` to check if the state directory exists - Fixed a validation issue in the manager inspector router to properly handle invalid limit parameters - Fixed URL path handling in the universal actor proxy to correctly handle leading slashes ### How to test? Run the driver test suite with: ``` pnpm test ``` The new tests verify: - Manager inspector functionality (ping, actor listing, actor creation, etc.) - Actor inspector functionality (state management, connections, events, RPCs) - Error handling for both inspectors ### Why make this change? The inspector functionality is a critical part of the developer experience, allowing users to debug and inspect actors. These tests ensure that inspector functionality works consistently across all drivers, improving reliability and preventing regressions.
Closes FRONT-763
TL;DR
Added actor inspector tests to the driver test suite to ensure inspector functionality works correctly across different drivers.
What changed?
runActorInspectorTests
to the driver test suiteactor-inspector.ts
with comprehensive tests for both manager and actor inspectorsgetActorsIterator
to check if the state directory existsHow to test?
Run the driver test suite with:
The new tests verify:
Why make this change?
The inspector functionality is a critical part of the developer experience, allowing users to debug and inspect actors. These tests ensure that inspector functionality works consistently across all drivers, improving reliability and preventing regressions.