Repository navigation
test: probe dynamoxy itself on DynamoDB, MiniStack, LocalStack and the in-memory backend - #154
Merged
Merged
Conversation
This was referenced Oct 31, 2026
Merged
Contributor
Author
|
Stack of 8 pull requests, merged in this order with "Squash and merge":
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…e in-memory backend scripts/probe_backends.py runs about thirty scenarios through dynamoxy on a target and writes the facts (outcomes, exception classes, codes, messages, cancellation reasons, sizes) to JSON; compare lists what differs between two runs. The runs of the in-memory backend, MiniStack and LocalStack are kept in docs/parity. Co-authored-by: Carl Oscar Aaro <[email protected]>
…d cleanup keeps the facts Co-authored-by: Carl Oscar Aaro <[email protected]>
Co-authored-by: Carl Oscar Aaro <[email protected]>
…s, and ask about every condition form The run on AWS matches the in-memory backend in every fact it holds. It stopped two scenarios early (on-demand throttling of large writes, a backfill over the 300-second wait): the probe now retries longer on AWS and waits up to 25 minutes. The sizes scenario asks how the other condition forms count toward a transaction's payload. Co-authored-by: Carl Oscar Aaro <[email protected]>
…nts only facts both runs hold Co-authored-by: Carl Oscar Aaro <[email protected]>
Co-authored-by: Carl Oscar Aaro <[email protected]>
…s of one target Co-authored-by: Carl Oscar Aaro <[email protected]>
…s DynamoDB's second run Co-authored-by: Carl Oscar Aaro <[email protected]>
…rios, and the in-memory backend matches every fact Co-authored-by: Carl Oscar Aaro <[email protected]>
kalaspuff
force-pushed
the
parity-stack/8-probe
branch
from
October 31, 2026 18:36
5a7f190 to
ef3c2e8
Compare
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.
Summary
Adds
scripts/probe_backends.py, which checks dynamoxy itself against DynamoDB, as fanferro's probe does for its brokers. The AWS CLI probes compare the emulators with DynamoDB but never run the in-memory backend. This script runs about thirty scenarios through dynamoxy on a target (memory,ministack,localstackoraws): models and versions, unique values and conditions, transactions, index reads, expression limits, size limits and transaction payloads, table updates, PartiQL, Time to Live, item collection metrics and capacity. It writes the facts to JSON: outcomes, exception classes, error codes and messages, cancellation reasons, sizes and counts, without the run's table prefix, version tokens, account ids or request ids.comparelists every fact that differs between two runs,iam-policyprints what a run on AWS needs, andcleanupdeletes the tables an interrupted run left.The runs of DynamoDB (eu-north-1, Carl Oscar's test account, three runs), the in-memory backend, MiniStack 1.5.33 and LocalStack 2026.3.0 are kept in docs/parity. The first two runs stopped the
sizesandtablesscenarios early (on-demand throttling of large writes, an index backfill longer than the wait), so the probe now retries longer on AWS and waits up to 25 minutes, and the third run completed them. Together they hold every fact the probe asks, and the in-memory backend answers every one of them as DynamoDB does, after the fixes the runs led to in this stack (DescribeTimeToLiveof a table being created,ensure_tableswaiting before it, and conditions, deletes and checks in transaction payloads). MiniStack differs from DynamoDB in 57 of the facts and LocalStack in 53, each an emulator difference the CLI probes had found.Verified by running the probe on all three local targets and comparing them, with a unit test that runs two scenarios on the in-memory backend and compares the run with itself;
make checkpasses.fctl session
Note
Low risk. It adds a standalone probe script, its stored measurements, a unit test and doc lines, and changes no library code, so only the script's own users and the docs can be affected.
What it does. Adds
scripts/probe_backends.py, which runs nine scenarios through dynamoxy itself (models and versions, unique values, transactions, index reads, expression and size limits, table changes, PartiQL, Time to Live and capacity) onmemory,ministack,localstackoraws, and writes what happened as facts in JSON without table prefixes, tokens or ids. Itscomparecommand lists the facts that differ between two runs,iam-policyprints what a run on AWS needs, andcleanupdeletes tables an interrupted run left. The pull request stores one run for each local target indocs/parity, plus a second DynamoDB run next to the two already there, and the README counts how each differs from DynamoDB: 57 facts for MiniStack, 53 for LocalStack and none for the in-memory backend.Stored DynamoDB runs. The README's comparison takes DynamoDB's first run for most scenarios and its third run for
sizesandtables, because the first two stopped those early; recomputing the counts from the stored files gives the 57, 53 and 0 the README states.fctl review's first look at
ef3c2e8· 9 files, +2273 −2 · Review agent settings