Isolate LocalStack fixtures and keep default tests service-free - #33
Open
jeregrine wants to merge 1 commit into
Open
Isolate LocalStack fixtures and keep default tests service-free#33jeregrine wants to merge 1 commit into
jeregrine wants to merge 1 commit into
Conversation
This was referenced Sep 9, 2026
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.
Problem
Every test invocation connects to LocalStack and clears a shared bucket, including UUID-only runs. Concurrent worktrees can erase each other's state. Backend-independent tests and credential-free EKV integration cases are not separated from service-dependent fixtures.
Fix
Allocate a unique bucket per run without contacting storage. An opt-in LocalStack case template creates it only for selected modules; suite cleanup removes only that run's bucket. Remove unused per-test IAM buckets from the server and lifecycle fixtures.
Separate LocalStack, local EKV, and credentialed integration lanes. Add focused namespace and cross-bucket cleanup cases, and document the explicit LocalStack endpoint and lane selection.
Supporting information
The default suite now includes local EKV but excludes LocalStack. CI must explicitly include the LocalStack lane to retain S3 coverage; coordinate the command in #28 when merging. #32 separately repairs the existing shared-EKV teardown.
Stock LocalStack 4.14 rejects conditional DELETE with
If-Matchas unsupported. The existing physical-deletion scenarios still expose that backend limitation; this change does not bypass their conditions or relax production fencing.