-
Notifications
You must be signed in to change notification settings - Fork 41
feat(engine): add engine driver #1173
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
Conversation
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. |
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver ImplementationI've completed my review of this PR that adds an engine driver to RivetKit. Here's my comprehensive feedback: Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service. The implementation includes both actor and manager drivers, along with proper configuration and testing setup. 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Incomplete Implementation -
|
348d4b3
to
6a4ec8b
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service. The implementation includes both actor and manager drivers, along with proper configuration and testing setup. 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Typo in Method Name -
|
fetch: this.#runnerFetch.bind(this), | ||
onActorStart: this.#runnerOnActorStart.bind(this), | ||
onActorStop: this.#runnerOnActorStop.bind(this), | ||
onActorSleep: this.#runerOnActorSleep.bind(this), |
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.
There appears to be a typo in the method name: #runerOnActorSleep
is missing an 'n' and should be #runnerOnActorSleep
to maintain naming consistency with the other runner callback methods (#runnerFetch
, #runnerOnActorStart
, #runnerOnActorStop
).
onActorSleep: this.#runerOnActorSleep.bind(this), | |
onActorSleep: this.#runnerOnActorSleep.bind(this), |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
6a4ec8b
to
c2e7636
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service via the 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Missing Error Context -
|
More templates
@rivetkit/actor
@rivetkit/core
@rivetkit/db
rivetkit
@rivetkit/cloudflare-workers
@rivetkit/redis
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
commit: |
cleanup: async () => { | ||
// TODO: Cleanup actor driver | ||
}, |
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 cleanup function should properly release resources by stopping the actor driver and deleting the test namespace. Consider implementing:
cleanup: async () => {
// Stop the actor driver to release connections
await actorDriver.stop();
// Delete the test namespace
const deleteResponse = await fetch(`${endpoint}/namespaces/${namespace}`, {
method: "DELETE"
});
if (!deleteResponse.ok) {
logger().warn("Failed to delete test namespace", {
namespace,
status: deleteResponse.status
});
}
}
This ensures test resources are properly cleaned up between test runs.
cleanup: async () => { | |
// TODO: Cleanup actor driver | |
}, | |
cleanup: async () => { | |
// Stop the actor driver to release connections | |
await actorDriver.stop(); | |
// Delete the test namespace | |
const deleteResponse = await fetch(`${endpoint}/namespaces/${namespace}`, { | |
method: "DELETE" | |
}); | |
if (!deleteResponse.ok) { | |
logger().warn("Failed to delete test namespace", { | |
namespace, | |
status: deleteResponse.status | |
}); | |
} | |
}, |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
c2e7636
to
4513f33
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service via the 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Missing Error Context -
|
cleanup: async () => { | ||
// TODO: Cleanup actor driver | ||
}, |
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 cleanup function is missing implementation for stopping the actor driver. This could lead to resource leaks since the engine runner instance created earlier will continue running. Consider adding await actorDriver.stop()
to properly clean up resources during test teardown.
cleanup: async () => { | |
// TODO: Cleanup actor driver | |
}, | |
cleanup: async () => { | |
await actorDriver.stop(); | |
}, |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
4513f33
to
c6ffb2b
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service via the 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Missing Error Context -
|
c6ffb2b
to
f04a99a
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service via the 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Missing Error Context -
|
f04a99a
to
5a74e24
Compare
Claude finished @NathanFlurry's task —— View job Reviewing Pull Request: Engine Driver Implementation Review Tasks:
SummaryThis PR adds a new "engine" driver implementation for RivetKit that integrates with an external engine service via the 🟢 Positive AspectsCode Quality & Architecture
Implementation Details
🟡 Areas for Improvement1. Missing Error Context -
|
Merge activity
|
No description provided.