chore: fix remaining issues with rivetkit-core#4701
chore: fix remaining issues with rivetkit-core#4701NathanFlurry wants to merge 3 commits into04-12-feat_import_export_actorsfrom
Conversation
|
🚅 Deployed to the rivet-pr-4701 environment in rivet-frontend
|
f102f4d to
8264cd3
Compare
PR #4701 Review:
|
| Convention | Status |
|---|---|
rivet.dev, no rivet.gg |
Pass |
| Tracing macros, structured fields | Pass |
#[derive(RivetError)] pattern |
Pass |
No Mutex<HashMap> / RwLock<HashMap> |
Mostly pass (see item 1; connections: RwLock<BTreeMap> is pre-existing/ordered) |
scc::HashMap for concurrent maps |
Mostly pass (actor_instances, starting_instances, pending_stops correct) |
No vi.mock / jest.mock |
Pass |
Summary
This is a well-structured, high-quality refactor. Key items before merge:
- Medium: Track the spawned task in
on_actor_stop_with_completion(use aJoinSet) so in-flight stops drain on graceful shutdown. - Convention: Replace
sleep(10ms)polling loops in test helpers withAsyncCounter/Notifyevent-driven waits. - Convention:
factories: HashMapinRegistryDispatchershould bescc::HashMap. - Informational:
handle_inspector_http_in_runtimeauth bypass — ensure TS-side inspector routes always apply auth when this flag is set. - Informational: Add unit tests for
EngineProcessManagerandwait_for_pending_writesbefore merge.
Preview packages published to npmInstall with: npm install rivetkit@pr-4701All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-d2c139c
docker pull rivetdev/engine:full-d2c139cIndividual packagesnpm install rivetkit@pr-4701
npm install @rivetkit/react@pr-4701
npm install @rivetkit/rivetkit-napi@pr-4701
npm install @rivetkit/workflow-engine@pr-4701 |
a639b2e to
d7cd40d
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: