fix(serverless): split metadata protocol errors#4789
Conversation
PR Review: fix(serverless): split metadata protocol errorsOverviewThis PR improves debuggability of serverless metadata protocol errors by:
The change is focused and the intent is clear. A few items worth discussing: IssuesBreaking change for
Flaky potential in tokio::time::timeout(Duration::from_millis(100), async {
// assert cache was invalidated
})This assumes cache invalidation completes within 100 ms. In a CI environment under load this could race. Since the operation is a direct cache read (not a poll), Hand-rolled HTTP server buffer in let mut buf = [0; 1024];
let _ = socket.read(&mut buf).await;The 1024-byte buffer can be exceeded on some platforms/reqwest versions when headers like user-agent, accept, and keep-alive accumulate. Consider a ObservationsNo test for protocol version 0 or exactly The guard is
Both new integration test files copy-paste an identical
The struct name implies an error state, but it is also used for the valid-JSON-with-invalid-version case. A name like Positive notes
|
Preview packages published to npmInstall with: npm install rivetkit@pr-4789All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-1e19894
docker pull rivetdev/engine:full-1e19894Individual packagesnpm install rivetkit@pr-4789
npm install @rivetkit/react@pr-4789
npm install @rivetkit/rivetkit-napi@pr-4789
npm install @rivetkit/workflow-engine@pr-4789 |
2d2a58c to
cccd897
Compare
f59dc09 to
57aec7d
Compare
cccd897 to
603deec
Compare
0121259 to
65d08ca
Compare
65d08ca to
581f2f1
Compare
d60686a to
a6dc766
Compare
603deec to
40afd97
Compare
a6dc766 to
a3da1d9
Compare
4c2f41a to
fc09194
Compare
a3da1d9 to
b69ce64
Compare
fc09194 to
53de8fb
Compare
14c2718 to
383f617
Compare
383f617 to
4e0624f
Compare
53de8fb to
376b5c9
Compare
|
Landed in main via stack-merge fast-forward push. Commits are in main; closing to match. |

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: