Repository navigation
chore(release): bump version to 0.1.15 and freeze migrations 1-12 - #1069
Merged
Merged
Conversation
The release that freezes catalog migrations 1 to 12 raises RELEASED_THROUGH from 0 to 12, and Runner::forget then refuses every id from 1 to 12. Ten tests and two devtools scripts forget one of those ids and expect success, and two extenddb-storage unit tests assume no id is released. Each now passes with the bound at 0 and at 12. Where forget only made a migration pending again, the test deletes the migration's ledger row with the backend's own client (the version row is left as it was; the next run rewrites it): - migration 6's backfill tests on SQLite, PostgreSQL and Cassandra; - the PostgreSQL re-registration on a changed status; - the Cassandra check that the status before the lock reads no policy; - the backup commands' exit 3 on a catalog behind the binary (tests/test_backup_store_config.py). Where the test is about forget, it keeps its purpose with a runner given a released bound of 0: PostgreSQL's forget-and-reapply test, MongoDB's, SQLite's in changed_ahead_and_forgotten_ledgers, SQLite's one-transaction test, and the "nothing to forget" case of forget_refuses_an_id_it_cannot_forget. Runner::with_released_through is exposed under the existing test-util feature for this, and SQLite's forget takes the runner through a new forget_with. Release builds do not enable test-util, and nothing a release binary reads can change the bound. each_refusal_names_its_command checks the Changed advice on both sides of the bound: --forget for RELEASED_THROUGH + 1, and "run the ExtendDB release that recorded it" for RELEASED_THROUGH. The PostgreSQL and Cassandra catalog lock scripts ran `migrate --forget <id>` and expected exit 0. They now check that `--forget` of an id the binary does not carry exits 1 and leaves the lock free, delete the migration's ledger row themselves, and check that `migrate --yes` applies it again, as before. Since every forget test sets its own bound, none checked the bound a release binary uses: Runner::new could set 0 and every test would pass. the_default_runner_refuses_every_id_this_binary_released checks that Runner::new refuses each id from 1 to RELEASED_THROUGH with "has been released" and forgets the first id above the bound, so it holds at any bound. devtools/check-postgres-catalog-lock reads the bound from registry.rs and, when it is above 0, checks that the binary's `migrate --forget 1` exits 1 with that message and leaves both ledgers unchanged. Signed-off-by: Scott Robinson <robinnsc@amazon.com>
The docs, the messages the binary prints and the comments beside them were written for the migration ledger arriving in 1.0. It arrives in 0.1.15, which is itself a 0.1.x release and a release before 1.0, so "a release before 1.0", "a 0.1.x release" and "the v1.0 schema" would include the release that brings the ledger. Statements about which releases predate the ledger, the frozen migrations or the 14-digit backup ids now name 0.1.14 and earlier, or 0.1.15 and later. Migration 1's schema is called that instead of the v1.0 schema. The printed messages that change: - "a release before 1.0" becomes "a release before 0.1.15" in the status, the migrate advice and preview, and --reconverge's help; - migrate-legacy's refusal and its --help name "the 13-digit shape that 0.1.14 and earlier releases issued"; - PostgreSQL's and Cassandra's check after migration 1 compare with migration 1's schema; - migration 1's description in migrate --list drops "v1.0". The tests and devtools scripts that match these messages change with them. The CI steps that run the 0.1.14 images are named for 0.1.14. README.md and docs/cassandra-setup.md say the Cassandra image is published from 0.1.15. docs/versioning.md stated its rules for every release: a patch release adds no configuration key and no breaking catalog migration, and rolls back with the earlier binary. 0.1.15 does both, and rolling it back needs the backup taken before the upgrade. The page now says the rules apply from 1.0 and what a 0.x release can change, and that the crates are published to crates.io from 0.1.15. The upgrade manual gains a 0.1.15 entry for #511: a Query whose partition key condition is not an equality now gets AccessDeniedException where a LeadingKeys fence does not cover its operand, where 0.1.14 answered ValidationException. The six 0.1.15 entries whose headings named no release (#515, #384, #471, #692, #581, note says one server per catalog "in this release", as README.md does. CONTRIBUTING step 7 lists Cassandra's checksum test, and differences-from-dynamodb.md no longer says "this branch". Statements about 1.0 as a milestone (scope, support policy) are unchanged. So are the migration bodies, whose checksums the release freezes, the ADRs, which are not edited after acceptance, the design document's revision log, and the RELEASED_THROUGH and RELEASED comments that the release commit rewrites. Signed-off-by: Scott Robinson <robinnsc@amazon.com>
The Cassandra image's Docker Hub overview said every image is signed with the KMS release key and showed `cosign verify --key`. release-image.yml signs every backend's image keyless through .github/actions/sign-image, and the first Cassandra image is published after the keyless migration, so no Cassandra image carries a key signature. The overview now gives the keyless verify command and signer identities that the PostgreSQL and MongoDB overviews give. devtools/release-dry-run's SHA-256 record step ran `cd target/package`, which fails when CARGO_TARGET_DIR (or a cargo config) moves the target directory, as `cargo package` then writes elsewhere. The step now reads target_directory from `cargo metadata`, as devtools/check-crate-packages does. release-crates.yml runs with the default target directory and is not affected. Signed-off-by: Scott Robinson <robinnsc@amazon.com>
Moves the workspace version from 0.1.14 to 0.1.15 on every surface that carries it: the root Cargo.toml version and its 13 exact pins in [workspace.dependencies], the 14 workspace entries in Cargo.lock (no third-party entry changes), packaging/npm/package.json (version and the five platform pins), the four licence-notice files (regenerated with the scripts and cargo-about 0.9.0; each lists the 11 workspace crates its binary links), and the example `extenddb version` and `serve` output in docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md. Raises RELEASED_THROUGH from 0 to 12, the last migration id, and fills the RELEASED tables of SQLite, PostgreSQL, MongoDB and Cassandra (12, 14, 13 and 13 entries) with the checksum, kind and convergent flag of each body or not-applicable reason of migrations 1 to 12, and a code body's fingerprint, as each backend's the_released_bodies_match_their_checksums test prints them. From this release on those bodies are frozen, `extenddb migrate --forget` refuses ids 1 to 12, and devtools/check-released-through, which the release workflows' gate jobs run, passes. The tests that depended on the bound changed in the commits before this one; this commit changes no test. Signed-off-by: Scott Robinson <robinnsc@amazon.com>
robinnsc
requested review from
LeeroyHannigan,
amrith,
c33howard,
eliseong,
hitesh96db,
jcshepherd,
navareamol and
pdf-amzn
as code owners
November 17, 2026 01:57
7 of 8 tasks
LeeroyHannigan
left a comment
Collaborator
There was a problem hiding this comment.
Nothing here blocks the release. The points are outside the diff:
- The description counts 117 PRs since v0.1.14.
git log --first-parent b5bffa380..381c8c78alists 123 merged PRs, each with its own number, and the release has 125 with #1068 and #1069. docker/README-mongodb.md:69and:80still runextenddb/extenddb-mongodb:0.1.8, as they have since #331.doc_version_literalsdoes not match image tags, so the bump did not flag them.- Besides #1000, the request-validation changes #619, #620 and #830 have no entry under Behavior Changes by Release, which
docs/versioning.md:17asks for. Each changes an answer the server gave before it merged. After #620 anNvalue such asabcin a key is refused, and after #830 a bad table name getsValidationExceptionwhere PostgreSQL answered 500. Onev0.1.15:entry for the four would cover them. #857 needs none. - From this release every
migrate --forgetis refused, but the command takes the migration lock beforeRunner::forgetchecks the bound (crates/app/src/cmd_migrate_runner.rs:362). On PostgreSQL it holds the migration key while it waits up to--lock-timeoutfor the running servers, then exits 6. A server that starts in that window exits 6 too. Checking the id and the bound before the lock fixes it, and a follow-up issue fits. - After this freeze, #1009 needs
reblessentries for SQLite migrations 1, 3, 4, 6 and 9, or it must keep its wasmuseblock out of those five files. With itsm0009change applied, the SQLite checksum test fails with "the body changed after release". #934 adds migration 10 and must move to 13.
This was referenced Nov 17, 2026
Collaborator
|
@robinnsc #1089 moves the dev image's runtime stage to distroless cc-debian13. On an amd64 image built from it, the release scan finds nothing and Could you review and merge it before you tag v0.1.15? With it on main, |
Collaborator
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
LeeroyHannigan
added a commit
that referenced
this pull request
Nov 17, 2026
crates/storage/src/migrations/registry.rs takes main's RELEASED_THROUGH of 12 and its comment, from the 0.1.15 release (#1069). Migration 13 of this branch is not released, so the bound stays at 12. docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md take version 0.1.15 from main and catalog migration 13 from this branch in the sample output.
LeeroyHannigan
added a commit
that referenced
this pull request
Nov 17, 2026
Cargo.toml takes the 0.1.15 version pins from main (#1069) and keeps this branch's extenddb-s3 pin at the same version. Cargo.lock moves extenddb-s3 to 0.1.15 through cargo update --workspace. The merge regenerates the four license notice files from the merged Cargo.lock. They list the ExtendDB crates at 0.1.15 and keep this branch's S3 dependencies. crates/storage/src/migrations/registry.rs takes main's RELEASED_THROUGH of 12 and its comment, because migration 13 of this branch is not released. docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md take version 0.1.15 from main and catalog migration 13 from this branch in the sample output.
LeeroyHannigan
added a commit
that referenced
this pull request
Nov 18, 2026
…historical Main is at 0.1.15 since #1069, and the doc_version_literals test now reads every "ExtendDB 0.1.14" in docs/ as stale. The Backup and Restore section of the differences page says that its numbers were measured on 0.1.14, which stays true. A version-literal-ok marker at the end of that sentence tells the test so.
LeeroyHannigan
added a commit
that referenced
this pull request
Nov 18, 2026
docs/getting-started.md keeps the pointer page of this branch. The base branch changed the version in two sample outputs of the old walkthrough. This branch moved that walkthrough to docs/install-from-source.md, where the two sample outputs now say 0.1.15, the version main is at since #1069. docs/manuals/04-quickstart-setup-guide.md stays deleted, as this branch deletes it. The base branch changed the version in its sample output, and docs/install-from-source.md carries that change.
LeeroyHannigan
added a commit
that referenced
this pull request
Nov 20, 2026
This merge brings in 98 commits of main through 2ef5613. They include the 0.1.15 and 1.0.0 releases, which freeze catalog migrations 1 to 12 (#1069), and the store-backed backup and restore jobs (#671, #700, #740). The stream_pending table (#819, migration 7) holds a stream record until its write commits. The PostgreSQL catalog stores attribute names through an escape (#833, migration 11). The escape migration of this branch becomes migration 13, escape_control_chars, the next free id after the released migrations. The change covers the registry entry, the module m0013_escape_control_chars and the fingerprint 0013_escape_control_chars/postgres/1. It also covers the golden file 0013_escape_control_chars.txt, the arms on SQLite, MongoDB and Cassandra, the transactional arm of runs_in() and the test names. The worked example in CONTRIBUTING.md moves to migration 14. Conflict resolutions: - registry.rs and the four migration() tables: main's ids and arms 6 to 12, then 13. - PostgreSQL migrations/mod.rs: main's modules, arms and target fields, and the other_sessions_allowed field of this branch. The store that a status read of the catalog alone opens does not check sessions. - gsi_queue.rs: the item images go through item_to_json and json_to_item. The index context goes through main's to_catalog_json and from_catalog_json. worker_partition() gives the partition. - tx_helpers.rs: the stream record goes to stream_pending as the text of its escaped form, and record_bytes is the length of that text. - stream_engine.rs: main's write_stream_record stub. Every write stores its stream record in its own transaction. - snapshot_engine.rs: main's page reader decodes each row with decode_row(). The tests of both sides stay. - backup_engine.rs, data/index.rs and data/vector_index.rs: the imports of both sides. - tests/backup_restore.rs: main's file. The restore test of this branch moves to tests/backup_restore/control_chars.rs and calls create() in place of create_backup(). - tests/migrations_golden.rs: main's shared golden() and notes(). The migration 13 tests migrate the fixture through migration 12 first. - The MongoDB and SQLite migration tests: main's side, with migration 13 in the counts. - CONTRIBUTING.md, the upgrade manual and the install guides: main's side, with migration 13 added. One writer and one reader of item documents on main now use the escape. The store-backed restore writes item_data through item_to_json, and the legacy backup reader decodes backup_items through json_to_item.
This was referenced Nov 20, 2026
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.
What
The v0.1.15 release commit. Stacked on #1068; merge that first.
Cargo.toml(version and 13 pins),Cargo.lock(workspace crates only),packaging/npm/package.json, and the docs' example version output.RELEASED_THROUGHgoes from 0 to 12, and each backend'sRELEASEDtable pins the checksums of those migrations.14 files. No test or other source change.
Why
v0.1.15 is a test run of the release path before 1.0, including the migration freeze that 1.0 would otherwise do for the first time.
Each catalog keeps a ledger of the migrations it has applied, with a checksum of the code that ran. A server refuses to start on a catalog whose recorded checksum differs from its own code. Freezing pins those checksums, so every later release, 1.0 included, accepts the ledger of a deployment that ran 0.1.15. From this release on, migrations 1 to 12 can only change through a
reblessentry, andmigrate --forgetrefuses them.Changes since v0.1.14
117 PRs. The main areas:
Catalog migrations: every backend's catalog is versioned with a migration ledger (feat(migrations): one list of catalog migrations with a ledger in every store, for SQLite and PostgreSQL #666, feat(migrations): catalog migrations with a ledger in every store, for Cassandra and MongoDB #681).
Backup and restore: backups to a filesystem or S3 store, asynchronous CreateBackup and RestoreTableFromBackup,
backup sync,backup migrate-legacy, and the Backup and Restore manual (feat(backup-store): store trait with filesystem and S3 implementations [backup/restore 2/4] #393, feat(core): backup format v1: streaming data files, sidecar manifest hash, typed backup ARN [backup/restore 3/4] #394, feat(storage): SnapshotEngine, a consistent table snapshot on every backend [backup/restore 4/4] #395, feat(backup): catalog index, BackupCatalog, JobClaim, legacy reader [backup/restore 6] #671, feat(backup): [backup.store], the store identity file, backup purge [backup/restore 7] #672, feat(backup): CreateBackup job, worker and reconciler duties [backup/restore 8] #700, feat(backup): RestoreTableFromBackup job and cross-backend matrix [backup/restore 9] #740, feat(backup): backup sync, --adopt-store and --prune-missing [backup/restore 10] #825, docs(backup): the backup and restore manual, the open measurements and the CI filters [backup/restore 11] #855, feat(backup): backup sync --move-store, --forget-store, --forget-backup [backup/restore 10b] #880, feat(backup): backup migrate-legacy [backup/restore 10c] #900).IAM: policy variables, Arn conditions, wildcard matching and tag condition keys now behave as in IAM (fix(auth): match IAM wildcards in ArnEquals and ArnNotEquals #471, fix(auth): resolve aws:TagKeys and aws:RequestTag for the tag operations #522, fix(auth): expand policy variables in Resource and NotResource #535, fix(auth): follow IAM's rules for policy variables in condition values #541, fix(auth): count policy wildcards in UTF-16 code units, as IAM does #581, fix(auth): match Arn condition values as IAM does and reject at write the values IAM rejects #692, fix(auth): follow IAM's policy variable reference syntax at write and evaluation #926).
Security:
(fix: create export files 0600 and the directories made for them 0700 #682, fix: limit failed logins per source address and bound bcrypt verification #718, fix(init): create the TLS private key with mode 0600 #766, fix(management): refuse access key import unless allow_credential_import is true #840)
Console: IAM users see only their own account and keys, and sessions expire after 8 hours (fix: serve the console account pages to an IAM user for its own account only #734, fix(console): serve an IAM user its own user page and access keys only #844, fix(console): end console sessions 8 hours after login #875).
Request validation: names, numbers, keys and expression depth are checked as DynamoDB checks them (fix(core): range check number exponents as DynamoDB does #619, fix(engine): validate numbers on every key and item path #620, fix(server): check table names, index names and ARNs before authorization #830, fix(core): bound the nesting depth of update expressions #1000).
New API: PartiQL statements (feat(partiql): implement ExecuteStatement, BatchExecuteStatement, ExecuteTransaction #411) and
WarmThroughput(feat: store and report WarmThroughput on tables and global secondary indexes #474).Streams, metrics and backends: fixes on PostgreSQL, MongoDB and Cassandra.
Build:
The user-facing changes are the 21
v0.1.15:entries under "Behavior Changes by Release" indocs/manuals/07-upgrade-manual.md; the release notes should link them. Two changes have no entry there and should be named in the release notes: #1000 (the expression depth limit) and #857 (the minimum Rust version).Testing done
On this commit's tree:
devtools/check-released-throughreportsRELEASED_THROUGH is 12, the last migration.--checks pass, and regenerating the notices changes nothing.cargo fmt --check, clippy 1.97,cargo test -p extenddb-storage --lib(265 passed) anddoc_version_literals: pass.extenddb 0.1.15andcatalog migration 12.devtools/check-postgres-catalog-lockpasses against it, including the step that checks the refusal to forget a frozen migration.devtools/release-dry-run --crateswith all four images (linux/amd64): every step passes except the dev image's vulnerability scan (see Before running the release workflows). The tag gate is skipped because no tag exists yet.Before running the release workflows
extenddb/extenddb-cassandrabefore runningrelease-imagefor it.libssl3CVE-2026-84782 in the pinned distroless base image. No distroless build has the fix yet, sorelease-dev-imagewill refuse this tag, andextenddb-dev:lateststays at 0.1.14 until the base image is fixed.devtools/publish-crates --new-cratesand a short-lived API token; see "Publishing new crates with an API token" inpackaging/README.md.Checklist
cargo test --workspace): not run in full; this commit changes no test, the checks above pass, and CI runs the workspacecargo fmt --check)cargo clippy -- -W clippy::pedantic): checked as CI runs it,cargo +1.97.0 clippy --workspace --all-targets -- -D warningsStoragetrait, auth model, on-diskformat, or public CLI surface, an RFC has been accepted or is linked
below. Otherwise, an ADR captures the decision (link below).
ADR / RFC: ADR-0023 (catalog migrations), ADR-0029 (crates.io packaging).
Breaking changes
extenddb migrate --forgetrefuses migrations 1 to 12.extenddb migrate --yesbefore a 0.1.15 server starts on it. Rolling back to 0.1.14 means restoring the backup taken before the upgrade. See "General Upgrade Procedure" and "Rollback Procedure" in the upgrade manual.v0.1.15:entries.By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.