Skip to content

chore(release): bump version to 0.1.15 and freeze migrations 1-12 - #1069

Merged
LeeroyHannigan merged 4 commits into
mainfrom
chore/release-0.1.15
Nov 17, 2026
Merged

LeeroyHannigan merged 4 commits into
mainfrom
chore/release-0.1.15

Conversation

@robinnsc

@robinnsc robinnsc commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

What

The v0.1.15 release commit. Stacked on #1068; merge that first.

  • Workspace version 0.1.14 → 0.1.15: Cargo.toml (version and 13 pins), Cargo.lock (workspace crates only), packaging/npm/package.json, and the docs' example version output.
  • The four licence-notice files, regenerated with cargo-about 0.9.0.
  • Freezes catalog migrations 1 to 12: RELEASED_THROUGH goes from 0 to 12, and each backend's RELEASED table 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 rebless entry, and migrate --forget refuses them.

Changes since v0.1.14

117 PRs. The main areas:

The user-facing changes are the 21 v0.1.15: entries under "Behavior Changes by Release" in docs/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:

  • The checksum tests pass on all four backends, and devtools/check-released-through reports RELEASED_THROUGH is 12, the last migration.
  • The four licence-notice --checks pass, and regenerating the notices changes nothing.
  • cargo fmt --check, clippy 1.97, cargo test -p extenddb-storage --lib (265 passed) and doc_version_literals: pass.
  • A PostgreSQL build reports extenddb 0.1.15 and catalog migration 12. devtools/check-postgres-catalog-lock passes against it, including the step that checks the refusal to forget a frozen migration.
  • devtools/release-dry-run --crates with 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

  • Cassandra image, first release:
    • Create the ECR Public repository extenddb/extenddb-cassandra before running release-image for it.
    • After the first push to GHCR, link the package to the repository and make it public.
  • Dev image: its vulnerability scan fails on libssl3 CVE-2026-84782 in the pinned distroless base image. No distroless build has the fix yet, so release-dev-image will refuse this tag, and extenddb-dev:latest stays at 0.1.14 until the base image is fixed.
  • crates.io: all 14 crates are new, and trusted publishing cannot create a crate.
    • A maintainer publishes them once with devtools/publish-crates --new-crates and a short-lived API token; see "Publishing new crates with an API token" in packaging/README.md.
    • The maintainer then adds the trusted publisher to each crate.
    • The first publish takes about 90 minutes because of crates.io's rate limit on new crates.
  • Release notes: name 0.1.15 as the first release signed keyless. The Docker Hub pages point readers to the release notes for this.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace): not run in full; this commit changes no test, the checks above pass, and CI runs the workspace
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic): checked as CI runs it, cargo +1.97.0 clippy --workspace --all-targets -- -D warnings
  • I have added or updated tests for new functionality: no new functionality; the existing checksum tests and test(migrations): prepare for freezing migrations 1-12 in v0.1.15 #1068's checks cover the freeze
  • I have updated documentation if behavior changed: the example version output
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, 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 --forget refuses migrations 1 to 12.
  • Every deployment on 0.1.14 or earlier must run extenddb migrate --yes before 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.
  • The behavior changes are the upgrade manual's 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.

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>

@LeeroyHannigan LeeroyHannigan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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..381c8c78a lists 123 merged PRs, each with its own number, and the release has 125 with #1068 and #1069.
  • docker/README-mongodb.md:69 and :80 still run extenddb/extenddb-mongodb:0.1.8, as they have since #331. doc_version_literals does 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:17 asks for. Each changes an answer the server gave before it merged. After #620 an N value such as abc in a key is refused, and after #830 a bad table name gets ValidationException where PostgreSQL answered 500. One v0.1.15: entry for the four would cover them. #857 needs none.
  • From this release every migrate --forget is refused, but the command takes the migration lock before Runner::forget checks the bound (crates/app/src/cmd_migrate_runner.rs:362). On PostgreSQL it holds the migration key while it waits up to --lock-timeout for 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 rebless entries for SQLite migrations 1, 3, 4, 6 and 9, or it must keep its wasm use block out of those five files. With its m0009 change applied, the SQLite checksum test fails with "the body changed after release". #934 adds migration 10 and must move to 13.

@LeeroyHannigan

Copy link
Copy Markdown
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 ci/smoke-test-dev-container.sh passes.

Could you review and merge it before you tag v0.1.15? With it on main, release-dev-image passes the vulnerability gate, and you can remove the dev image item under "Before running the release workflows" from the description.

@LeeroyHannigan

Copy link
Copy Markdown
Collaborator

@robinnsc #1089 is merged (d6a24c0), so you do not need to review it, and the v0.1.15 tag will include the new dev image base. You can remove the dev image item under "Before running the release workflows" from the description.

Base automatically changed from test/migrations-ready-for-release to main November 17, 2026 18:34

@LeeroyHannigan LeeroyHannigan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit db81369 Nov 17, 2026
59 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the chore/release-0.1.15 branch November 17, 2026 20:26
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants