Repository navigation
improvement(workflow-code): server hardening, flaky test root causes, and agent DX across the source loop - #10287
Merged
Merged
Conversation
…s that share the lock
…r, as edges already do A full replace wrote every block with one created_at, so the id tie-break shuffled their order against the unordered index scan before it. Ties now break on ctid, and a save stamps the rows it inserts together a microsecond apart in the state's order, so a later diff save that rewrites a row in place cannot move it either.
…m before new realtime pods
… runs in the source primer
… replying with a Response the caller never sees
…slot, on every source write route A workflow dry run spent the source-write budget, and every dry run took an apply slot, so a dry-run loop could 429 real applies. A create from source is charged and admitted the same way, and its route now takes a slot too.
…block's name or key, and an unknown one lists the blocks
The internal read ran the same load, canonicalize and print as the v2 get with no slot. It now shares the read lane and answers 429 with Retry-After when the server is full. Its ETag stays after the read: the printed keys are known only once the graph is canonicalized, so no earlier tag is sound.
… an env name instead of claiming the workspace lacks it
…yment only when it leaves the draft as it is The check started beside every plan and was discarded whenever the dry run would change the draft, which then compares what it would write instead.
… the builders its method starts
…, naming its replacement first (blocks get starter)
…lan saw, under the row lock The apply compared the revision and then deleted with no precondition, so a Files tab edit landing in between was deleted with the file. The delete use case now takes expectedRevision, as content updates do, and refuses with a conflict when the content moved.
… edge removal and rename rewrites, and its example wires source
…nds, and says a conflict refuses the apply
…inst the row limit The reshape checked capacity as if the declared rows replaced every stored row, but a keyed write keeps stored rows with no key value, so a table could end over its plan limit. The keyed write now checks the rows it leaves under the lock, once it has read them.
…orkflow finding shape
…plan and held the rest back exits 15, apart from nothing written
…tion's timeouts withLockedTable reset the 10s statement and 5s idle defaults each time a write joined a TableWriteTx, dropping a scaled timeout an earlier step set. Only a transaction it opens itself gets the defaults now.
…ith --output json, the starter's next step included
… a time The column-rename check loaded each using workflow's draft, source and live version one after another, and the allow-delete check read each undeclared table's rows version in turn. Both now run at a bounded concurrency of 4, with findings kept in the same order.
…hook the workflow serves, promotions included
…ions and a workspace apply writes its plan to the step summary
…le and line of the block that failed
…name too (sim tables rows list leads)
… is pointed at the third argument
…y under the lock, so an over-limit table can still be edited or shrunk
… before acting, so a table named twice is not reported missing after its delete
… runner sets, and a JSON check in a job still annotates on stderr
…n a GitHub Actions job, as a display one does
… row lock, reports an unreadable staged total as unavailable, and an apply consumes only the staged copy it read
…sumes the staged documents it uploaded
…st the quota again
…cords its redacted input
…at its fourth argument
…ck for a deployment-only write, strip escapes from a read failure, and a cancelled read fails the command
…newer version reads as that version
…by name; only a reference shaped like a minted id skips the name lookup
…elete guards, and the README lists exits 14 and 15
…nsumption for every write, one fallback completion shape, a shared cancellation check
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 145 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…e starter records
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
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.
Server
Retry-After, not 500.consumed_at), so they stop counting twice. A quota that can't be read answers 503, notSOURCE_STAGING_FULL. A batch the quota refuses still renews the blobs it re-sent.ctid, as edges already do, and a save stamps the rows it inserts a microsecond apart. Tied legacy rows still load in physical order.{tableId}route accepts a name, dispatches and exports included. Restore takes the id only. A name missing from a workspace and one the caller cannot reach now get the same 404 body. A bulk action acts once on a table named twice.DX (CLI and docs)
workspaces source statusmatches the dry run: it filters only compile and lint findings for folders sent by base, and keeps plan refusals.::errorannotations with paths relative to the repo root, and a workspace apply writes its plan to the step summary.run --dirmaps a failed block to its source file and line. It is refused with--followand--async.--stop-after/--from-blockaccept block names, failed runs record their input,blocks get starter, and quieter output by default.Flaky tests
ECONNRESET): the fixture closes its connections after each response. The extension e2e routes every API call through one fresh-connection helper.workspace-fileshook tests wait for the client to settle instead of sleeping. That exposed a real bug: the content read retried a superseded storage key, and now it doesn't.Docs
!cancelled()). The apply exit table lists 14 and the change to 15. The CLI reference keeps column-aligned help (the operations handle table) in a fence.Not done, deliberately
e2e (markdown-viewer)WebKit keyboard selection and the shared-file 409 are not addressed here.rate_limitederror code, so slot refusals need no per-policy wiring;--to, a webhook token in the CLI, workspace create, and the const-swap rule.