Repository navigation
fix(durable-objects): match close codes, SQL refusals, and abort retries - #78
Merged
Merged
Conversation
…t generation starts
…s, ATTACH, and writable_schema - Reading a `_cf_` or `_rivet_` table fails with workerd's `access to <table>.<column> is prohibited`. Other uses still fail with `not authorized`. - `ATTACH`, `DETACH`, and `PRAGMA writable_schema` fail with `not authorized`, as in workerd. This applies to D1 too. - The synthetic `authorizerDefaultExpressions` test no longer asserts that `sqlite_version()` is refused. That is workerd's function allow-list, which Orange does not copy. - Document the deviations that are left: internal functions in DEFAULT expressions, and DELETE/UPDATE ... LIMIT.
|
Preview removed; R2 assets deleted. |
…lose route - The Engine reports `1001 "gateway disconnected"` to the actor for every client close, so the stub now sends each close's code and reason over the private disconnect route. - The actor reports that code when the raw transport closes, so frames the client sent first still arrive before `webSocketClose`. - The stub waits for its raw transport to open before it sends the notice, so a close right after connect is not lost. - Drop the close-code deviation from the Durable Objects page and the compat matrix. Proof: `synthetic--do-websocket-hibernation-test` 3/3 (was 2/3), `synthetic--do-websocket-test` 11/11, and the accepted-websockets e2e now asserts the client's code.
…s passing - Re-run the `lifecycle` probe on f96bfc1, on `orange dev` and `wrangler dev`. - `open socket: webSocketClose gets the client's close code` now passes on Orange. No other step changed. - Drop the `1001 "gateway disconnected"` drawback from the WebSocket hibernation claim and rebuild the truth table. Proof: `pnpm real-projects --probes --filter '^lifecycle$' --jobs 1`, then `pnpm truth-table`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Durable Object differences that the
workerd parityjob reports, makes that job able to fail, and removes two causes of flaky e2e runs.What changes
webSocketClosegets1001 "gateway disconnected"for every client close, awake or hibernatedwasClean: true, as on workerd. A close with no code arrives as1005._cf_table fails withnot authorized.ATTACHandPRAGMA writable_schemarun._cf_table fails with workerd'saccess to _cf_KV.key is prohibited.ATTACH,DETACHandwritable_schemafail, also in D1.ctx.abort()503 guard.actor_stopped_while_waitingpnpm upstream --baselinebin.tsoverwrites its exit code, so the CI gate always passesdeploy-image.tsstarts its own Engine and drops its outputDecisions
sqlite_version()in a default expression, so the synthetic test no longer checks workerd's refusal. Refusals that protect Orange's own tables stay.DELETE ... LIMIT, row counters (workerd patch0001), and the internal-function guard (patch0005).Proof:
workerd paritygoes from 79/88 to 81/88 on CI with the SQL fixes. The hibernation file passes 3/3 locally. The gate exits 0 withresults/latest.jsonand 1 with a baseline that leaves out the known SQL failures.