-
Notifications
You must be signed in to change notification settings - Fork 83
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: fix system test #2121
fix: fix system test #2121
Conversation
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. |
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.
PR Summary
This PR fixes system tests by updating script paths and adding timeout safeguards to prevent server spam in both container and isolate environments.
- Changed
ws-isolate
script path fromsrc/isolate/ws.ts
tosrc/isolate/main.ts
inexamples/misc/system-test/rivet.jsonc
- Added 1-minute auto-exit timeout in
examples/misc/system-test/src/container/main.ts
to prevent accidental server spam - Added comprehensive KV API validation tests in
examples/misc/system-test/src/isolate/main.ts
including put/get/delete and batch operations - Added consistent newline endings across multiple SDK package.json files for better maintainability
8 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
if ((await ctx.kv.get(["batch", "a"])) !== null) { | ||
throw new Error("kv deleteBatch failed - key still exists"); | ||
} |
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.
style: Consider checking both keys a and b to ensure complete deletion
if ((await ctx.kv.get(["batch", "a"])) !== null) { | |
throw new Error("kv deleteBatch failed - key still exists"); | |
} | |
if ((await ctx.kv.get(["batch", "a"])) !== null || (await ctx.kv.get(["batch", "b"])) !== null) { | |
throw new Error("kv deleteBatch failed - one or more keys still exist"); | |
} |
92c2d83
to
ffa323a
Compare
653f5b7
to
3e07944
Compare
Deploying rivet-hub with
|
Latest commit: |
f5b02de
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2351c8e8.rivet-hub-7jb.pages.dev |
Branch Preview URL: | https://03-05-fix-fix-system-test.rivet-hub-7jb.pages.dev |
ffa323a
to
a746d0a
Compare
a746d0a
to
f5b02de
Compare
6446ccd
to
77bccb4
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes