Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Add test for s3 bucket concurrency#9072

Merged
dfangl merged 4 commits into
masterfrom
fix-moto-concurrency
Sep 6, 2023
Merged

Add test for s3 bucket concurrency#9072
dfangl merged 4 commits into
masterfrom
fix-moto-concurrency

Conversation

@dfangl
Copy link
Copy Markdown
Member

@dfangl dfangl commented Sep 5, 2023

Motivation

We had some problem with simultaneous bucket operations. This PR adds a test for it. It should be fixed with #9044

Changes

  • Add list wrapper to avoid issue with concurrent modification of a dict while iterating
  • Add test for 10 simultaneous bucket creations with the requirement of us-east-1 bucket creation idempotency.

@dfangl dfangl added the semver: patch Non-breaking changes which can be included in patch releases label Sep 5, 2023
Copy link
Copy Markdown
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice changes, and cool test! Barrier 😎

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 5, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 31m 36s ⏱️
2 153 tests 1 677 ✔️ 476 💤 0
2 154 runs  1 677 ✔️ 477 💤 0

Results for commit 159a35f.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I've missed something. We're not cleaning up the buckets we've created 😬



class TestParallelBucketCreation:
@markers.aws.unknown
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@markers.aws.unknown
@markers.aws.only_localstack

@bentsku bentsku self-requested a review September 5, 2023 15:05
@dfangl dfangl merged commit f09439a into master Sep 6, 2023
@dfangl dfangl deleted the fix-moto-concurrency branch September 6, 2023 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants