-
Notifications
You must be signed in to change notification settings - Fork 134
chore: setup rivet-engine api tests #3540
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-10-fix_namespace_bring_namespace_list_api_calls_up_to_date
Are you sure you want to change the base?
chore: setup rivet-engine api tests #3540
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 Review: Test Cleanup & RefactoringThis PR successfully reorganizes the rivet-engine test suite, consolidating types and improving test organization. Overall, this is a well-executed refactoring with good improvements to code structure and maintainability. ✅ Strengths1. Type Consolidation (api-types package)
2. Test Organization
3. Code Reuse
4. Dependency Management
🐛 Potential Issues1. Critical: Cursor Pagination Logic Change in There's a significant change in how pagination works when listing by // Apply cursor filtering if provided
if let Some(cursor_str) = &query.cursor {
let cursor_ts: i64 = cursor_str.parse().context("invalid cursor format")?;
actors.retain(|actor| actor.create_ts < cursor_ts);
}
// Apply limit after cursor filtering
let limit = query.limit.unwrap_or(100);
actors.truncate(limit);Issues:
Recommendation: Consider whether this behavioral change is intentional. If so, document it. If not, pass 2. TypeScript Test Runner Changes (index.ts lines 110-139) The const res = await fetch(
`http://127.0.0.1:6420/runner-configs/${RIVET_RUNNER_NAME}?namespace=${RIVET_NAMESPACE}`,Issues:
Recommendation: Use 3. Missing Deserialize on DeletePath (api-types/actors/delete.rs line 12) #[derive(Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct DeletePath {
pub actor_id: Id,
}The path struct has Minor issue: Not a bug, but worth noting that path parameters don't typically need 📊 Code QualityPositive:
Suggestions:
🔒 Security Considerations
⚡ Performance ConsiderationsPositive:
Concern:
🧪 Test Coverage
📝 Additional Notes
Recommendation:
|
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: |

No description provided.