Skip to content

Conversation

@jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Oct 22, 2025

DynamoDB tests share a database / table and reset it for each test. XUnit tests can run in parallel causing one test to reset the table in the middle of another test executing and triggering a failure. This can be observed by adding a delay after a write and before a read.

Collections will ensure the specific tests are not run in parallel. I tested using a unique prefix for each test but still observed the error. Ideally these should be able to run in parallel but this is a compromise of invested time to fix it vs more stable tests now.


Note

Annotates DynamoDB test classes with a shared xUnit collection to prevent parallel execution.

  • Tests:
    • Annotate pkgs/dotnet-server-sdk-dynamodb/test/DynamoDBBigSegmentStoreTest.cs and pkgs/dotnet-server-sdk-dynamodb/test/DynamoDBDataStoreTest.cs with [Collection("DynamoDB Tests")] to run these tests in a shared, non-parallel collection.

Written by Cursor Bugbot for commit f11700b. This will update automatically on new commits. Configure here.

DynamoDB tests share a database / table and reset it for each test. XUnit tests can run in parallel causing one test to reset the table in the middle of another test executing and triggering a failure. This can be observed by adding a delay after a write and before a read.

Collections will ensure the specific tests are not run in parallel. I tested using a unique prefix for each test but still observed the error. Ideally these should be able to run in parallel but this is a compromise of invested time to fix it vs more stable tests now.
@jsonbailey jsonbailey requested a review from a team as a code owner October 22, 2025 16:53
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.

2 participants