Skip to content
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

Closed
wants to merge 1 commit into from
Closed

fix: fix system test #2121

wants to merge 1 commit into from

Conversation

MasterPtato
Copy link
Contributor

Changes

@MasterPtato MasterPtato requested a review from NathanFlurry March 5, 2025 22:12
Copy link

cloudflare-workers-and-pages bot commented Mar 5, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: f5b02de
Status:🚫  Build failed.

View logs

Copy link
Contributor Author

MasterPtato commented Mar 5, 2025

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.
Learn more


How to use the Graphite Merge Queue

Add 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.

Copy link

@greptile-apps greptile-apps bot left a 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 from src/isolate/ws.ts to src/isolate/main.ts in examples/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

Comment on lines 67 to 70
if ((await ctx.kv.get(["batch", "a"])) !== null) {
throw new Error("kv deleteBatch failed - key still exists");
}
Copy link

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

Suggested change
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");
}

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

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

View logs

@MasterPtato MasterPtato changed the base branch from graphite-base/2121 to main March 6, 2025 21:15
@MasterPtato MasterPtato changed the base branch from main to graphite-base/2121 March 6, 2025 23:23
@MasterPtato MasterPtato force-pushed the 03-05-fix_fix_system_test branch from ffa323a to a746d0a Compare March 6, 2025 23:24
@NathanFlurry NathanFlurry changed the base branch from 03-06-fix_system-test_fix_exiting_after_timeout_in_isolates to graphite-base/2121 March 7, 2025 01:35
@MasterPtato MasterPtato force-pushed the 03-05-fix_fix_system_test branch from a746d0a to f5b02de Compare March 7, 2025 01:40
@MasterPtato MasterPtato changed the base branch from graphite-base/2121 to main March 7, 2025 01:40
@MasterPtato MasterPtato requested a review from NathanFlurry March 7, 2025 01:40
Copy link
Contributor

graphite-app bot commented Mar 7, 2025

Merge activity

  • Mar 6, 8:43 PM EST: A user added this pull request to the Graphite merge queue.
  • Mar 6, 8:44 PM EST: CI is running for this PR on a draft PR: #2147
  • Mar 6, 8:45 PM EST: A user merged this pull request with the Graphite merge queue via draft PR: #2147.

graphite-app bot pushed a commit that referenced this pull request Mar 7, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Mar 7, 2025
@graphite-app graphite-app bot deleted the 03-05-fix_fix_system_test branch March 7, 2025 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants