Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
2640670
feat(core): add the bulk operation types, ARNs and limits
LeeroyHannigan Nov 5, 2026
d0fd782
feat(s3,config): add the S3 client crate and the [bulk] configuration
LeeroyHannigan Nov 5, 2026
dca4c96
feat(storage): add the bulk operation store and the batched put
LeeroyHannigan Nov 5, 2026
a9ff0d7
feat(engine,server): add StartBulkPutItems and the bulk operation APIs
LeeroyHannigan Nov 5, 2026
a0e589e
test: add the bulk put suite and the S3 bulk store job
LeeroyHannigan Nov 5, 2026
7db3525
docs: document bulk put items
LeeroyHannigan Nov 5, 2026
4a825f6
Merge main d35d8601 into bulk put items
LeeroyHannigan Nov 6, 2026
110bc1c
ci(bulk-put): name the backup store in the S3 bulk suite job
LeeroyHannigan Nov 6, 2026
a5bea62
docs(bulk-put): list each parse-level cause with its report message
LeeroyHannigan Nov 6, 2026
bd5e28b
Merge main 3033e090 into bulk put items
LeeroyHannigan Nov 6, 2026
c913cfa
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 16, 2026
9ac711b
fix(engine,server): join the bulk put code to the traits and contexts…
LeeroyHannigan Nov 16, 2026
bf5adee
docs(storage): write 13 for the bulk operations migration in comments…
LeeroyHannigan Nov 16, 2026
56e9bd5
build(s3): give extenddb-s3 the crates.io package metadata
LeeroyHannigan Nov 16, 2026
fadad15
build(licenses): regenerate the four notice files for the merged tree
LeeroyHannigan Nov 16, 2026
daf0fd0
fix(server): leave a StartBulkPutItems arn: TableName to the bulk checks
LeeroyHannigan Nov 16, 2026
5a12f15
docs(upgrade): add the blank line before the daemonized serve section
LeeroyHannigan Nov 16, 2026
7526710
build: optimize blowfish in dev and test builds
LeeroyHannigan Nov 16, 2026
e78692f
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 16, 2026
5997dce
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 17, 2026
17527bc
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 17, 2026
bf7fb94
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 17, 2026
577cc2d
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 18, 2026
103bedd
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 18, 2026
e2654c4
docs(upgrade): give the entries release v1.0.0 and count migration 13
LeeroyHannigan Nov 18, 2026
c6f1901
Merge origin/main into feat/bulk-put-items
LeeroyHannigan Nov 19, 2026
af4f030
docs(upgrade): leave the 1.0.0 upgrade notes as released and move the…
LeeroyHannigan Nov 19, 2026
4068582
fix(bulk): fence an earlier claim's batch before a terminal transition
LeeroyHannigan Nov 19, 2026
8870e0d
fix(bulk): keep the lease while a write batch waits on the pacers
LeeroyHannigan Nov 19, 2026
568c544
fix(bulk): count index writes against MaxWriteRequestUnits
LeeroyHannigan Nov 19, 2026
72b6952
test(bulk): hold the ending claim right after its terminal transition
LeeroyHannigan Nov 20, 2026
6a5353a
test(bulk): pin the cursor that a renewal leaves during the pacer wait
LeeroyHannigan Nov 20, 2026
9d510a3
docs(bulk): say that MaxWriteRequestUnits counts index writes
LeeroyHannigan Nov 20, 2026
c1e3b50
refactor(bulk): remove three copies in the write pacer path
LeeroyHannigan Nov 20, 2026
fa7e5e8
docs(bulk): cover the pacer wait in the in-place renewal docs
LeeroyHannigan Nov 20, 2026
2559a09
test(bulk): move the backup impls of FaultingStorage to faults_backup.rs
LeeroyHannigan Nov 20, 2026
e1d82ca
test(bulk): check that the crashed runner was inside its pacer wait
LeeroyHannigan Nov 20, 2026
058f4d1
fix(bulk): fail a U+0000 row only where the backend cannot store it
LeeroyHannigan Nov 20, 2026
415cccf
docs: say which backend fails a bulk put row that holds U+0000
LeeroyHannigan Nov 20, 2026
2398235
docs(bulk): give the meaning of each manifest status
LeeroyHannigan Nov 20, 2026
5cb7849
fix(storage): remove a table's index build entry when nothing holds it
LeeroyHannigan Nov 20, 2026
35673b9
test(bulk): check that the resume bound ends the stalled operation
LeeroyHannigan Nov 20, 2026
ec5b25b
test(bulk): give the pins crash helper a lease of one second
LeeroyHannigan Nov 20, 2026
e33cabf
test(bulk): check the cursor while an output wait renews the lease
LeeroyHannigan Nov 20, 2026
0877471
test(bulk): drop the scratch database of a failed PostgreSQL case
LeeroyHannigan Nov 20, 2026
a24fb2a
fix(serve): keep / as the working directory of the daemon
LeeroyHannigan Nov 20, 2026
4a57a38
test(bulk): run the store contract on case-folding disks and on macOS
LeeroyHannigan Nov 20, 2026
f93ac86
test(serve): move the cmd_serve tests to cmd_serve_tests.rs
LeeroyHannigan Nov 20, 2026
ae6d416
fix(bulk): refuse an inconsistent output encryption pair at Start
LeeroyHannigan Nov 20, 2026
d859dd9
test(storage): check the build number while another Start holds the e…
LeeroyHannigan Nov 20, 2026
1e5e9a5
fix(bulk): list the input on the first claim instead of at Start
LeeroyHannigan Nov 20, 2026
a922434
test(bulk): read input failures and byte members after the run
LeeroyHannigan Nov 20, 2026
5efcb40
docs(bulk): split the long sentences on the first claim's input checks
LeeroyHannigan Nov 20, 2026
05f7434
fix(bulk): box the listed record and drop an unused import
LeeroyHannigan Nov 20, 2026
cc8a69d
test(bulk): expect the run to fail a missing bucket in the lifecycle …
LeeroyHannigan Nov 20, 2026
f1e1e45
fix(bulk): run the first claim's S3 input calls under the runner's bound
LeeroyHannigan Nov 20, 2026
898c798
docs(bulk): say that the first claim checks the input
LeeroyHannigan Nov 20, 2026
01169c3
test(bulk): check the first claim's manifest, a cancel during the lis…
LeeroyHannigan Nov 20, 2026
536574f
fix(bulk): name the operation's limit in the size limit message
LeeroyHannigan Nov 20, 2026
a7f7b79
docs(bulk): say that the first claim checks the input, in the remaini…
LeeroyHannigan Nov 20, 2026
8ebc268
test(bulk): check the size limit message
LeeroyHannigan Nov 20, 2026
104bc49
test(bulk): move the backup impls of BulkUnsupportedStorage to backup.rs
LeeroyHannigan Nov 20, 2026
1c0a643
fix(bulk): count the concurrency limit in each PerformanceTier
LeeroyHannigan Nov 20, 2026
198ab27
fix(bulk): count the ClientToken length in characters and accept U+0000
LeeroyHannigan Nov 20, 2026
85ebd1f
test(bulk): name the ClientToken length cases of the wire test
LeeroyHannigan Nov 20, 2026
4e0839f
test(bulk): give each ClientToken length case a token of its own
LeeroyHannigan Nov 20, 2026
451da94
fix(sqlite): roll back a transaction left open on a released connection
LeeroyHannigan Nov 20, 2026
538cec4
test(bulk): keep the runner's lease long in the cases that stop a run
LeeroyHannigan Nov 20, 2026
1ba6bf3
test(bulk): assert the pacer's decisions instead of wall-clock bounds
LeeroyHannigan Nov 20, 2026
697d7fd
refactor(put): set the key value fault by the check that fails
LeeroyHannigan Nov 20, 2026
1b01e7e
refactor(app): move the bulk config templates to init_helpers_bulk.rs
LeeroyHannigan Nov 20, 2026
80ead06
test(bulk): run the tier limit wire test in an account of its own
LeeroyHannigan Nov 20, 2026
26ac14e
test(bulk): remove the Start test for the input walk
LeeroyHannigan Nov 20, 2026
c3fa647
fix(bulk): run each lease renewal to its end
LeeroyHannigan Nov 20, 2026
278cd96
test(bulk): give the lease cases a 1-second lease
LeeroyHannigan Nov 20, 2026
97be93d
test(sqlite): check the release hook on the catalog pool too
LeeroyHannigan Nov 20, 2026
2b906c7
test(bulk): say what the bucket bound of the ledger case shows
LeeroyHannigan Nov 20, 2026
961b490
test(bulk): check the deadline that a late renewal moves
LeeroyHannigan Nov 20, 2026
1b32c9d
test(sqlite): bound the writer wait of the finish stall case at 1 s
LeeroyHannigan Nov 20, 2026
e70d3af
refactor(storage): remove the marker parameter of DataEngine::put_item
LeeroyHannigan Nov 20, 2026
99c791e
test(bulk): check that each report is complete before the manifest
LeeroyHannigan Nov 20, 2026
d6baf88
fix(bulk): count the report records dropped past the caps
LeeroyHannigan Nov 20, 2026
6112051
docs(bulk): say which records the report byte cap drops
LeeroyHannigan Nov 20, 2026
0ae5c4f
docs(bulk): say where a report record of an unrequested kind goes
LeeroyHannigan Nov 20, 2026
89af77b
docs(bulk): correct the processed bytes, ION and quota rows
LeeroyHannigan Nov 20, 2026
a94d7a6
docs(bulk): say which bulk limit defaults are DynamoDB's quotas
LeeroyHannigan Nov 20, 2026
27bcbbc
docs(bulk): correct four comments in the bulk code
LeeroyHannigan Nov 20, 2026
bd0ce36
Merge main at 8c643330c into feat/bulk-put-items
LeeroyHannigan Nov 23, 2026
6610468
fix(bulk): answer a missing table before the Invalid Request checks
LeeroyHannigan Nov 23, 2026
0079bd9
ci: run the engine's PostgreSQL bulk put cases in the storage job
LeeroyHannigan Nov 23, 2026
4e5331c
fix(bulk): name a quota under 0.1 GiB in bytes in the size failure
LeeroyHannigan Nov 23, 2026
2881059
docs(bulk): drop the owner sentence from the configuration size check
LeeroyHannigan Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
147 changes: 147 additions & 0 deletions .github/workflows/integration-s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# The bulk store on an S3-compatible service. integration.yml calls this
# workflow, so its integration gate job requires the result.
name: Integration (S3 bulk store)

on:
workflow_call:

permissions:
contents: read

jobs:
# The bulk store on an S3-compatible service: the engine's store contract
# tests, then the Python bulk suite against a server whose [bulk] store is
# s3. The service is versitygw, which selects its backend by command
# (posix, on the container's /tmp); a services: container takes no
# command, so a step starts it. PostgreSQL is the backend, as in
# run-integration.
run-integration-s3:
runs-on: extenddb_ubuntu-2404_4-core
timeout-minutes: 40
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_PASSWORD: devpass
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 5
ports:
- 127.0.0.1:5432:5432
env:
# The container's root keys. They exist only inside this job's
# container and grant nothing anywhere else.
S3_ACCESS_KEY: extenddb-ci
S3_SECRET_KEY: extenddb-ci-secret

steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable

- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Start the S3-compatible service
run: |
# versity/versitygw v1.0.18, pinned by digest.
docker run -d --name s3 -p 127.0.0.1:7070:7070 \
-e ROOT_ACCESS_KEY="$S3_ACCESS_KEY" -e ROOT_SECRET_KEY="$S3_SECRET_KEY" \
versity/versitygw@sha256:90f8280610a889d705ae93ae4b4064d74ffa9f3b565aacf2e3372b0614d7a796 \
posix /tmp
for i in $(seq 1 30); do
# Any HTTP answer means it is serving: an unsigned request is
# answered 403.
if curl -s -o /dev/null http://127.0.0.1:7070/; then
echo "S3-compatible service ready"
exit 0
fi
sleep 1
done
docker logs s3
echo "S3-compatible service failed to start"
exit 1

- name: Build release
run: cargo build --release

# Every contract case runs once per store; EXTENDDB_TEST_S3_REQUIRED
# makes a missing endpoint a failure rather than a skip. The smoke
# test reads, writes a multipart report and checks a dropped writer
# against the same service. The keys reach the store through the
# standard AWS credential variables, as they reach the server.
- name: Run the bulk store tests against the S3-compatible service
env:
EXTENDDB_TEST_S3_ENDPOINT: http://127.0.0.1:7070
EXTENDDB_TEST_S3_REQUIRED: "1"
EXTENDDB_TEST_S3_SMOKE_ENDPOINT: http://127.0.0.1:7070
AWS_ACCESS_KEY_ID: ${{ env.S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ env.S3_SECRET_KEY }}
AWS_REGION: us-east-1
AWS_EC2_METADATA_DISABLED: "true"
run: >-
cargo test --release -p extenddb-engine --lib --
bulk_put::source::contract bulk_put::s3::tests::smoke

- name: Initialize ExtendDB
id: init
run: |
output=$(./target/release/extenddb init --config extenddb.toml \
--pg-host 127.0.0.1 --pg-port 5432 --pg-user postgres --pg-pass devpass 2>&1)
echo "$output"
password=$(echo "$output" | grep -oP 'Password: \K\S+')
echo "admin_password=$password" >> "$GITHUB_OUTPUT"

- name: Start ExtendDB
run: |
# --write-pid-file so devtools/run-tests can restart the server
# with the S3 store configured and the S3 keys in its environment.
./target/release/extenddb serve --config extenddb.toml --foreground --write-pid-file &
for i in $(seq 1 30); do
if curl -sk https://127.0.0.1:18443/health | grep -q healthy; then
echo "Server ready"
exit 0
fi
sleep 1
done
echo "Server failed to start"
exit 1

- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"

- name: Install Python dependencies
run: pip install -r requirements.txt

# run-tests writes the [bulk] s3 store into extenddb.toml and restarts
# the server with the S3 keys as its AWS credentials; the suite reaches
# the same service with the same keys to create its buckets and read
# the reports.
- name: Run the bulk suite on the S3 store
env:
EXTENDDB_TEST_ENDPOINT: https://127.0.0.1:18443
EXTENDDB_ADMIN_USER: admin
EXTENDDB_ADMIN_PASSWORD: ${{ steps.init.outputs.admin_password }}
EXTENDDB_TEST_S3_ENDPOINT: http://127.0.0.1:7070
EXTENDDB_TEST_S3_ACCESS_KEY_ID: ${{ env.S3_ACCESS_KEY }}
EXTENDDB_TEST_S3_SECRET_ACCESS_KEY: ${{ env.S3_SECRET_KEY }}
# The PostgreSQL server has no [backup.store], and the bulk suite
# runs no backup test.
EXTENDDB_TEST_BACKUP_STORE: none
run: devtools/run-tests --extenddb --pytest --bulk-store s3 --parallel --filter bulk_put

- name: Dump server syslog on failure
if: failure()
run: sudo journalctl -t extenddb --no-pager -n 500 || true

- name: Dump the S3-compatible service's log on failure
if: failure()
run: docker logs s3 || true
36 changes: 30 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: read

# Supersede an in-flight run of the SAME pull request when a new push arrives,
# so two pushes do not each hold six slots on a capped pool. Everything that is
# so two pushes do not each hold slots on a capped pool. Everything that is
# not a pull request gets a group unique to the run (run_id): merge-group runs
# can share a ref (gh-readonly-queue/main/pr-N-<sha> is reused across
# re-queues of the same PR), and GitHub concurrency replaces a PENDING run in
Expand Down Expand Up @@ -274,9 +274,9 @@ jobs:
run: cat moto.log || true

# run-tests restarts the server daemonized to apply the import/export
# config, and a daemonized server logs to syslog, not the job log. Without
# this dump, the storage error behind a client-visible 500 leaves no
# evidence anywhere in CI.
# and bulk store config, and a daemonized server logs to syslog, not the
# job log. Without this dump, the storage error behind a client-visible
# 500 leaves no evidence anywhere in CI.
- name: Dump server syslog on failure
if: failure()
run: sudo journalctl -t extenddb --no-pager -n 500 || true
Expand Down Expand Up @@ -728,7 +728,10 @@ jobs:
# run-rust-integration instead of after it.
run-postgres-storage-tests:
runs-on: extenddb_ubuntu-2404_4-core
timeout-minutes: 40
# The storage step alone took 22 min 37 s on the 20 Nov 2026 run at
# 27bcbbcb4. The engine step builds the engine's release test binary on
# top of that build and runs about 900 cases, 15 of them on PostgreSQL.
timeout-minutes: 60
services:
postgres:
image: pgvector/pgvector:pg16
Expand Down Expand Up @@ -781,6 +784,21 @@ jobs:
EXTENDDB_TEST_PG_REQUIRED: "1"
run: cargo test --release -p extenddb-storage-postgres --tests

# The bulk put runner cases that hold on both backends (the
# `on_both_backends` macro in the engine's bulk_put tests: takeover,
# pacing under the lease, exactly-once resumes, U+0000 rows) run their
# PostgreSQL leg only with a connection string; without one each leg
# prints a skip and passes, and test.yml's `cargo test --workspace`
# sets none. They build their own throwaway databases on this job's
# server, one case at a time. EXTENDDB_TEST_PG_REQUIRED turns the skip
# into a failure here too.
- name: Run the engine's bulk put tests with their PostgreSQL cases
env:
EXTENDDB_TEST_PG_CONNECTION_STRING: postgresql://postgres:devpass@127.0.0.1:5432
EXTENDDB_TEST_PG_REQUIRED: "1"
# Quoted: a plain scalar may not end in a colon.
run: "cargo test --release -p extenddb-engine --lib bulk_put::"

# The runtime-detection proof: the same binary, against a PostgreSQL with no
# pgvector, must refuse vector indexes over the wire. Today the job above runs
# on a plain image too, so this looks like a duplicate of it; it is not, because
Expand Down Expand Up @@ -967,6 +985,10 @@ jobs:
if: failure()
run: sudo journalctl -t extenddb --no-pager -n 500 || true

# The bulk store on an S3-compatible service (integration-s3.yml).
run-integration-s3:
uses: ./.github/workflows/integration-s3.yml

integration:
runs-on: extenddb_ubuntu-2404_4-core
timeout-minutes: 40
Expand All @@ -980,6 +1002,7 @@ jobs:
run-postgres-storage-tests,
run-rust-integration-postgres-novector,
run-rust-integration-sqlite,
run-integration-s3,
]
if: always()
steps:
Expand All @@ -991,7 +1014,8 @@ jobs:
[ "${{ needs.run-rust-integration.result }}" != "success" ] || \
[ "${{ needs.run-postgres-storage-tests.result }}" != "success" ] || \
[ "${{ needs.run-rust-integration-postgres-novector.result }}" != "success" ] || \
[ "${{ needs.run-rust-integration-sqlite.result }}" != "success" ]; then
[ "${{ needs.run-rust-integration-sqlite.result }}" != "success" ] || \
[ "${{ needs.run-integration-s3.result }}" != "success" ]; then
exit 1
fi

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,28 @@ jobs:
- run: cargo package --workspace --no-verify --locked
- run: devtools/check-crate-packages

# The bulk store contract and the SQLite backend's tests on macOS. A
# default macOS volume folds letter case, where the Linux runners do not,
# so the filesystem store's cases meet a case-insensitive disk here. No
# server or service runs: the S3 store's cases print a SKIP line. The
# `test` job does not wait for this job, which has not run on main yet.
macos:
runs-on: macos-15
timeout-minutes: 45
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo test --locked -p extenddb-engine --lib bulk_put::source
- run: cargo test --locked -p extenddb-storage-sqlite

test:
runs-on: extenddb_ubuntu-2404_4-core
timeout-minutes: 15
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ Activate when the user asks about installing, configuring, running, or debugging
| `crates/storage/src/lib.rs` | Storage trait definitions |
| `crates/core/src/types.rs` | DynamoDB type definitions |
| `crates/engine/src/` | Operation handlers |
| `crates/s3/src/lib.rs` | S3 client building and the startup checks of the server's AWS credentials, for every S3 store |
| `crates/bin/src/main.rs` | CLI entry point |

## Environment Variables
Expand Down
Loading
Loading