Skip to content

Conversation

@jbelkins
Copy link
Contributor

Description of changes

Recently it was noted that there were occasional name collisions between S3 buckets when the buckets were named using the first 8 digits of a UUID for randomness. Switching to full UUIDs appears to have eliminated the problem.

This PR takes every other place that something less than a full UUID was used in a random name, and converts it to a full UUID.

  • A helper method was created for generating random names that are easily identifiable to a specific test.
  • One test was refactored to move its cleanup steps into a tearDown method.

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

let deleteObjectInput = DeleteObjectInput(bucket: bucketName, key: objectKey)
_ = try await client.deleteObject(input: deleteObjectInput)
let deleteObjectInput = DeleteObjectInput(bucket: bucketName, key: objectKey)
_ = try await client.deleteObject(input: deleteObjectInput)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed formatting above

// Delete each directory bucket
for bucket in buckets {
try await deleteBucket(bucket: bucket)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved this test cleanup content from the test body to the tearDown() override above, to ensure it gets run after the test.

@jbelkins jbelkins marked this pull request as ready for review October 31, 2025 16:08
@jbelkins jbelkins requested review from dayaffe and sichanyoo October 31, 2025 16:09
@jbelkins jbelkins merged commit 7b481fa into main Oct 31, 2025
41 of 43 checks passed
@jbelkins jbelkins deleted the jbe/use_full_uuids_for_int_tests branch October 31, 2025 17:29
jbelkins added a commit that referenced this pull request Oct 31, 2025
aws-sdk-swift-automation pushed a commit that referenced this pull request Oct 31, 2025
jbelkins added a commit that referenced this pull request Oct 31, 2025
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