Repository navigation
Conversation
|
Gate: success · CI run Engine counters: success Performance hotspotsPR-base gates: 1.25× per workload and 1.15× per section/suite, with a 10 ms minimum regression and confirmation across three attempts. Stock ratios expose standing gaps and are reported separately. Retained workloads report fixed batches; xN in a workload name is the number of repetitions. A workload marked ×N times N repetitions as one batch, each after the same untimed warm-up, so small workloads clear the 10 ms floor; its ms are the batch total. Add Column With Default#3233: deferred to the storage-format upgrade.
Wide Row Trade-offsWide values are read from disk whenever they are fetched until they move out of band: #3325. 8,192 rows per table, 4 MiB cache (768 KiB for
Uncached Reads65,536 rows with 1024 B payloads, about 68 MB, under a 4 MiB cache: every chunk read is verified against its BLAKE3 content address, while SQLite reads the same pages from the OS cache (#3408). Stock is SQLite.
Primary Key Index RewritesSecondary index entries carry the primary key, so changing a non-integer key rewrites every index entry of the row, while SQLite's indexes point at an unchanged rowid; the no-index and integer-key cases are the controls (#3419). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.
Text Key Index FetchesRows are clustered by their primary key and there is no rowid, so a non-covering index fetch searches the table by the key the index entry carries; a text key costs a byte-wise search where SQLite seeks an integer rowid. The integer-key case is the control (#3492). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.
Pending Edit MapUncommitted edits live in a sorted pending map: writes pay to fill it, and reads in the transaction merge it with the tree and skip its deletes. The file-backed update and live-row probes are the controls (#3418). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.
In Transaction with MutationsEach timed statement follows an untimed mutation in the same transaction; rollback is untimed.
|
DoltLite performance vs PR baseFAILED: unable to generate the benchmark comparison. |
Commit records get a four-byte header so a chunk is classified by its magic, millisecond timestamps so same-second commits keep their order, and a tagged extension section so later fields do not need another format bump. Version 12 files are refused. Tests, the corpus and migration follow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Refs record v8 adds an upstreams section: local configuration, like remotes,
that a push never carries. Deleting a branch or a remote drops its upstreams;
renaming a branch moves it.
- dolt_push('-u' / '--set-upstream', remote, branch) records the upstream.
- dolt_push() and dolt_pull() with no branch use the current branch's upstream.
- dolt_checkout('--track' / '-t', 'remote/branch'), with or without -b.
- dolt_branch('--track', ...), '-u' / '--set-upstream-to', '--unset-upstream'.
- Clone and a checkout that creates a branch from a tracking ref set it.
- dolt_branches.remote and .branch report it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A tagged extension field holds a detached signature over the record with the field left out; doltliteCommitSignedPayload returns those bytes. An unknown extension a reader may not skip, or one out of order, is corrupt. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
doltlite_commit_signer registers the function that signs a commit; the library never runs a signing program itself, so embedded and sandboxed builds stay usable. The shell registers one that runs gpg (or DOLTLITE_GPG_PROGRAM) on Unix. A failed or missing signer fails the commit and leaves HEAD, working and staged data alone. user.signingkey selects the key; dolt_signature(ref) returns what was stored. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The manifest grows to 192 bytes and carries a 16-byte store id, minted when the file is created and written by every later manifest, including gc's. The moved-file check accepts a branch tip as proof only from a file with our id: two stores can hold byte-identical commits, so content alone cannot tell a stranger at a vacated path from our own file. pager4-1.4 no longer needs its gate. The identical-commit case needs two seed commits in the same millisecond and has no deterministic test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An integer no double holds is stored as its 9-byte base, a marker, and the exact value. The marker was 0x80, below a complemented DESC tag, so such a key sorted before shorter keys with the same base when the next column was DESC. It is now 0xFE, above every field tag. Version 12 kept the old bytes and worked around them: one such key marked the whole index unordered, and every lookup on it became a scan. That machinery (the wide-numeric memo, its planner flag and the seek guards) is removed. doltlite_numeric_desc_compat.test read a version 12 file with the old keys and goes with them; the migrator will cover those files. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The contract test, its evidence table and the C format test now describe version 13: commit record v3, refs record v8, and refusal of versions 12 and 14. test/format-corpus/v13 is generated by the same recipe and will be regenerated as the remaining format work lands. The version 12 corpus stays as input for the migrator. The frozen version 12 file showed a dolt_rebase table on main; the current writer does not produce one, on master either, so that expectation is 0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tool/doltlite-migrate.py rebuilds a database in the current format using two binaries: one that reads the old file exports each commit as a row-level patch against its first parent, and the current one replays it. No version 12 reader lives in this engine. dolt_migrate_commit stores a commit of the working catalog with explicit parents, author and time, so merges and the root keep their shape and the result is a pure function of the old history: two runs give the same commit hashes. Branches, the default branch, tags, remotes and staged and working changes carry over; an in-progress merge or rebase, constraint violations and remote-tracking branches are reported as not migrated. Each commit can be verified against the original by table content, and a commit map is written beside the new file. test/doltlite_migrate_test.sh migrates the frozen version 12 corpus; it needs a version 12 binary and is not yet wired into CI. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
dolt_push with no branch looked up an upstream through a chunk store a stock SQLite file does not have. A pushed refs record that differs from the receiver's upstreams is now rejected, forced or not. Tests that build refs records and manifests by hand follow the new layouts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The chunk analyzers and the Rust smoke test hardcoded 168 bytes. Six inherited cases depend on where fixed byte offsets and 1024-byte page boundaries fall in the file, and the 24 extra manifest bytes moved them: corrupt-4.2, index5-1.3, quota-3.2.7 to 3.2.9 and quota-5.3.prep. They are gated as intentional beside their siblings and the ratchet counts them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Three tests copied hand-made version 12 database files that this engine cannot open and that had no recipe. - doltlite_missing_chunk_errors.sh now makes its two states itself: test/lib/drop_chunk.py renames one chunk where the store names it. - doltlite_empty_table_update.test builds its fixture from the SQL recipe that was already beside it. - doltlite_unborn_branch.test is removed with its fixture. It covered a branch with an all-zero head, which only databases written before the push-default fix contain; no version 13 file can be in that state. The migrator reports such a branch as not migrated. remote_test.sh: a clone now records its upstream, so a bare pull with two remotes follows it; the old expectation holds once the upstream is unset. quota-3.2.2 passes with the new layout and loses its gate. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
DoltLite source coverage
Merged 134 pooled raw profiles from the distributed Linux correctness jobs. Per-file coverage (108 files)
|
dolt_branch calls it, and the amalgamation built with external remotes leaves the remote SQL file out, so that build did not link. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fallback sat in the branch of the chunk-source file that is still a prolly build, so an amalgamation with chunk sources disabled defined it twice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Draft, not for merge. A long-lived branch that collects everything deferred to the next storage format (#3057) so the cost of the switch can be judged against a working build. Version 12 stays the shipping format on master.
CI: 53 jobs pass. Three cannot go green while this is an unreleased format change, and the CI Gate fails with them:
compat: "format signature changed inside minor series 0.51 — bump the minor version". The series comes fromgit describe, so this clears when the change ships under a 0.52 tag.benchmark / version-controland the relative performance gate: the baseline (master) and the candidate share fixture files, and neither build reads the other's format.What CI found on the way there, all fixed:
dolt_push()with no branch crashed on a stock SQLite file.doltlite_commit_signerstub was defined twice when chunk sources are disabled.test/lib/drop_chunk.py, and the SQL recipe for the empty-name table).doltlite_unborn_branch.testis removed: it covered a branch with an all-zero head, which only pre-fix v12 files contain.corrupt-4.2,index5-1.3,quota-3.2.7to3.2.9,quota-5.3.prep;quota-3.2.2now passes). They are gated asintentionalbeside their siblings; the ratchet is five higher than master's.Seen and not changed: a garbage-collected file whose working-set chunk is missing fails to open with
SQLITE_NOTFOUND, not a corruption error. Master does the same.Done
CHUNK_STORE_VERSION13; v12 files are refused.Commit record v3: four-byte magic, so chunk classification no longer depends on how lengths add up; tagged extension section for later fields.
Millisecond commit timestamps, used by the rebase walk and virtual-base ordering (dolt_rebase plan order differs from Dolt when commits share a timestamp second #3158).
Branch upstreams in refs record v8:
dolt_push('-u'), argument-lessdolt_push()/dolt_pull(),dolt_checkout('--track'),dolt_branch('--track' / '-u' / '--unset-upstream'),dolt_branches.remote/.branch; clone and tracking-branch checkout set them (dolt_push('-u'/'--set-upstream') is refused as an unknown option #3022, Add checkout -t and branch -t/-u using persisted upstream settings #4455, Honor persisted upstreams in argument-less dolt_pull and dolt_push #4456).test/doltlite_upstream.sh.Commit signature storage (Add optional commit-signature storage after the v13 format baseline #4458) and
dolt_commit -S(Implement dolt_commit -S / --gpg-sign with real GPG signatures #4459). Signing goes through a newdoltlite_commit_signer()callback so the library never spawns a process; the shell registers a gpg signer on Unix.user.signingkey,dolt_signature(ref).test/doltlite_commit_sign.shuses a stand-in signer.Durable store identity: manifest grows to 192 bytes with a 16-byte store id; the moved-file check uses it (pager4-1.4: a same-second stranger at a vacated path passes the tip proof (seed commits are byte-identical) #1884).
pager4-1.4gate removed.Wide integer keys order correctly before a DESC column (Integers beyond 2^53 mis-sort in the tree and range scans skip rows when the key column is followed by a DESC column #3012): the extension marker moves above every field tag, and the v12 workaround that turned such an index into a full scan is deleted (about 220 lines). Matches stock SQLite on the issue's cases.
Format contract, C format test and corpus moved to version 13 (
test/format-corpus/v13); the v12 corpus stays as migrator input.tool/doltlite-migrate.py: migrates a version 12 file by driving a v12 binary and the current one, so no old reader lives in the engine. Deterministic (two runs give the same commit hashes), verifies table content per commit, writes an old-to-new commit map. Carries commits, branches, default branch, tags, remotes, staged and working changes; reports in-progress merge/rebase, constraint violations and remote-tracking branches as not migrated.test/doltlite_migrate_test.shpasses on the frozen v12 corpus (15 checks) but needs a v12 binary and is not in CI yet.To do
ADD COLUMN ... DEFAULT(Performance hotspot: ADD COLUMN with a NOT NULL default rewrites every row #3233).Decisions made here that want a second opinion
-Sis a flag only; the key comes fromuser.signingkey. Dolt also accepts-S<keyid>.dolt_signature(ref)is a DoltLite-only name. Dolt shows signatures throughdolt_log('--show-signature').Not format work but labelled deferred, to pick up here if wanted: #5165, #5065.
🤖 Generated with Claude Code