Skip to content

test(rivetkit-core): cover nested wait_until and keep_awake-during-grace#4835

Draft
NathanFlurry wants to merge 1 commit intodriver-tests-fixes/reject-non-request-actor-pathsfrom
driver-tests-fixes/sleep-cleanup-tests
Draft

test(rivetkit-core): cover nested wait_until and keep_awake-during-grace#4835
NathanFlurry wants to merge 1 commit intodriver-tests-fixes/reject-non-request-actor-pathsfrom
driver-tests-fixes/sleep-cleanup-tests

Conversation

@NathanFlurry
Copy link
Copy Markdown
Member

@NathanFlurry NathanFlurry commented Apr 28, 2026

Stack Context

This stack fixes two actor sleep driver-test failures around shutdown-grace work and the deprecated setPreventSleep fixture path.

Why?

Nested waitUntil work can currently be refused while shutdown cleanup drains tracked tasks, which drops user work registered during the sleep grace window. This PR adds focused rivetkit-core coverage for nested wait_until during teardown drain and for keep-awake work held by the on-sleep cleanup callback.

Validation

  • cargo test -p rivetkit-core nested_wait_until_during_grace_is_drained fails before the core fix, proving the teardown-drain bug.
  • cargo test -p rivetkit-core keep_awake_in_on_sleep_blocks_finalize_until_released passes and locks the keep-awake grace gate.

@railway-app
Copy link
Copy Markdown

railway-app Bot commented Apr 28, 2026

🚅 Deployed to the rivet-pr-4835 environment in rivet-frontend

Service Status Web Updated (UTC)
website 😴 Sleeping (View Logs) Web Apr 28, 2026 at 6:18 am
frontend-cloud 😴 Sleeping (View Logs) Web Apr 28, 2026 at 6:12 am
ladle ✅ Success (View Logs) Web Apr 28, 2026 at 6:06 am
frontend-inspector ❌ Build Failed (View Logs) Web Apr 28, 2026 at 6:06 am
mcp-hub ✅ Success (View Logs) Web Apr 28, 2026 at 6:05 am
kitchen-sink ❌ Build Failed (View Logs) Web Apr 28, 2026 at 6:05 am

Copy link
Copy Markdown
Member Author

NathanFlurry commented Apr 28, 2026

@github-actions
Copy link
Copy Markdown
Contributor

Preview packages published to npm

Install with:

npm install rivetkit@pr-4835

All packages published as 0.0.0-pr.4835.1d9e1a8 with tag pr-4835.

Engine binary is shipped via @rivetkit/engine-cli on linux-x64-musl, linux-arm64-musl, darwin-x64, and darwin-arm64. Windows users should use the release installer or set RIVET_ENGINE_BINARY.

Docker images:

docker pull rivetdev/engine:slim-1d9e1a8
docker pull rivetdev/engine:full-1d9e1a8
Individual packages
npm install rivetkit@pr-4835
npm install @rivetkit/react@pr-4835
npm install @rivetkit/rivetkit-napi@pr-4835
npm install @rivetkit/workflow-engine@pr-4835

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.

1 participant