Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bf(ZENKO-852): Prevent CI object name conflicts #224

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

tmacro
Copy link
Contributor

@tmacro tmacro commented Jul 26, 2018

This adds a per run prefix to objects and then checks for the prefix before deleting objects. This is to prevent concurrent test runs from deleting each others objects and causing a incorrect test failure.

This adds a per run prefix to objects and then checks for the prefix before deleting objects.
This is to prevent concurrent test runs from deleting each others objects and causing a incorrect test
failure.
@tmacro tmacro changed the title bf(ZENKO-853): Prevent CI object name conflicts bf(ZENKO-852): Prevent CI object name conflicts Jul 26, 2018
@ssalaues ssalaues merged commit 41fcca5 into development/0.9 Jul 26, 2018
@ssalaues ssalaues deleted the bugfix/ZENKO-853_Prevent_CI_name_clash branch July 26, 2018 21:42
@@ -107,7 +107,9 @@ def cleanup_bucket(bucket, replicated=False, delete_bucket=True): # noqa pylint:
objects = []
versions = version_list['Versions']
for v in versions: # pylint: disable=invalid-name
objects.append({'VersionId': v['VersionId'], 'Key': v['Key']})
if v['Key'].startswith(conf.OBJ_PREFIX):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could just specify prefix = conf.OBJ_PREFIX before calling list_object_versions() for more efficiency?

PS: I know this is merged already 🤣

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.

4 participants