test: recover live + unit coverage stranded on merged parity branch#5
Conversation
Verified against a real AWS account (us-east-1): every other live lifecycle (S3, SQS, SNS, Secrets, FIFO ordering/dedup, DLQ redrive, nack redelivery) passes, but getQueueDepth flaked. ApproximateNumber OfMessages is eventually consistent in both directions, so the single post-send read could still observe 0, and the global retry:2 reused the beforeAll queue so a retry started with the prior attempt's messages and failed the 'starts empty' assertion. Fix: poll getQueueDepth to convergence (pollQueueDepth helper) and set retry:0 on this test so a rerun cannot inherit a contaminated queue. The SDK itself was correct — on the failing retry getQueueDepth accurately returned 3 for the leftover messages.
Live-validated against a real AWS accountRan the live lane ( Passing live lifecycles:
Fix in 14ac8ea: |
Summary
Recovers the test additions from #3 that never reached
main. #3 was merged into the parity branchfeat/parity-catchup-py-v0.2.5, but #1 had already merged that branch to main before #3 landed — so the email/sql live tests and unit-rigor fixes ended up stranded on the parity branch.This is a clean cherry-pick of the #3 test commit (
e93169f) onto main — tests only, nosrc//package.jsonchanges.Restores:
tests/live/email.live.test.ts,tests/live/sql.live.test.tstests/live/env.tsgating (SES, RDS PG/MySQL +IAM, Redshift, FIFO/DLQ, Azure sessions)Validation
describe.skipIf-gated).