Skip to content

docs(parity): keep DynamoDB's measured answers and the probes that ask them - #147

Merged
kalaspuff merged 9 commits into
mainfrom
fctl/154-what-do-you-need-me-to-test-to-be-able-t
Oct 31, 2026
Merged

kalaspuff merged 9 commits into
mainfrom
fctl/154-what-do-you-need-me-to-test-to-be-able-t

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds docs/parity/, which keeps what DynamoDB answered when asked directly, next to what MiniStack and LocalStack answer, for the questions that issues #87, #93, #97 and #106 left open: filters and projections of attributes an index does not hold, placeholder and attribute name limits, attribute_type with a path, read-only ExecuteTransaction on a missing table, the 400 KB limit with local index entries, the 4 MB limits of transactions, billing switches and calls while a table or index is being created. The fixes that follow model these answers in the in-memory backend.

scripts/probe_dynamodb.sh asks the questions with the AWS CLI (round 1 and round 2), creating dynamoxy-probe-* tables, logging every answer with account ids masked, and deleting the tables at the end; DYNAMODB_PROBE_ENDPOINT sends it to an emulator. The DynamoDB log is from Carl Oscar's test account (eu-north-1, 2026-10-31); the MiniStack 1.5.33 and LocalStack 2026.3.0 (DynamoDB Local 3.3.2) logs were taken in the sandbox, and the README shows how to run LocalStack without Docker. AGENTS.md, the e2e testing skill and the docs index point to it.

MiniStack accepts most of what DynamoDB refuses here; LocalStack is much closer but differs too (an InternalFailure for long attribute names and some table updates, top-level errors where DynamoDB cancels a transaction, scans filtering the table items).

Refs #87, #93, #97, #106

fctl session


Note

Low risk. It adds documentation, recorded probe logs and a manual shell script, and touches no library code; the script writes to a real AWS account only when a maintainer runs it by hand.

What it does. Adds docs/parity/, which records what real DynamoDB answered (eu-north-1, 2026-10-31) next to what MiniStack and LocalStack answer, for the open questions in issues #87, #93, #97 and #106. scripts/probe_dynamodb.sh asks them with the AWS CLI in three rounds, masks account ids in its logs and deletes the dynamoxy-probe-* tables it creates. AGENTS.md, the e2e testing skill and the docs index point to the new directory.

Basis for the stacked fixes. The pull requests that follow in the stack model the README rows in the in-memory backend, so the rows are what they will copy; the latest commit narrowed the rows that said more than the logs show.

fctl review's first look at dbe9825 · 14 files, +2855 −2 · Review agent settings

fctl-sh Bot and others added 4 commits October 31, 2026 13:38
Creates throwaway tables, asks the questions #87, #93, #97 and #106 leave
open, logs every answer (with account ids masked) and deletes the tables.

Co-authored-by: Carl Oscar Aaro <[email protected]>
@fctl-review

This comment has been minimized.

Comment thread scripts/probe_dynamodb.sh Resolved
fctl-sh Bot and others added 2 commits October 31, 2026 14:31
…be round

AWS CLI v1 base64-encodes the B values of JSON input itself, so the
base64 text written for v2 became 400 KB items; the generators now write
what the version in use sends as the intended bytes. Round 3 asks where
LocalStack and the tests disagree.

Co-authored-by: Carl Oscar Aaro <[email protected]>
@fctl-review

This comment has been minimized.

Comment thread scripts/probe_dynamodb.sh Resolved
@fctl-sh

fctl-sh Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Stack of 8 pull requests, merged in this order with "Squash and merge":

  1. docs(parity): keep DynamoDB's measured answers and the probes that ask them #147 docs(parity): keep DynamoDB's measured answers and the probes that ask them ← this pull request
  2. fix(indexes): reads refuse filters and projections of attributes an index does not hold #148 fix(indexes): reads refuse filters and projections of attributes an index does not hold
  3. fix(tables): the in-memory backend refuses table changes DynamoDB refuses #149 fix(tables): the in-memory backend refuses table changes DynamoDB refuses
  4. fix(versions)!: version() fields hold a random token, so a stale instance never matches again #150 fix(versions)!: version() fields hold a random token, so a stale instance never matches again
  5. fix(expressions): the in-memory backend refuses placeholders, names and operands DynamoDB refuses #151 fix(expressions): the in-memory backend refuses placeholders, names and operands DynamoDB refuses
  6. fix(limits): local index entries count toward the 400 KB of an item, and transactions keep to 4 MB #152 fix(limits): local index entries count toward the 400 KB of an item, and transactions keep to 4 MB
  7. fix(errors): LocalStack's DuplicateItem code raises DuplicateItemError, and the e2e tests pass on LocalStack #153 fix(errors): LocalStack's DuplicateItem code raises DuplicateItemError, and the e2e tests pass on LocalStack
  8. test: probe dynamoxy itself on DynamoDB, MiniStack, LocalStack and the in-memory backend #154 test: probe dynamoxy itself on DynamoDB, MiniStack, LocalStack and the in-memory backend

@fctl-review

This comment has been minimized.

Comment thread docs/parity/README.md Resolved
Comment thread docs/parity/README.md Resolved
Comment thread docs/parity/README.md Resolved
Comment thread docs/parity/README.md Resolved
Comment thread scripts/probe_dynamodb.sh Resolved
…ors' answers they gave

Co-authored-by: Carl Oscar Aaro <[email protected]>
@kalaspuff
kalaspuff added this pull request to stack #155 October 31, 2026 18:18
@kalaspuff
kalaspuff merged commit dc4770c into main Oct 31, 2026
22 checks passed
@kalaspuff
kalaspuff deleted the fctl/154-what-do-you-need-me-to-test-to-be-able-t branch October 31, 2026 18:21
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.

1 participant