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

fix(bucket-utils): small fix for async race condition #186

Merged
merged 1 commit into from Apr 28, 2023

Conversation

benheymink
Copy link
Contributor

ensure that deletePublicAccessBlock is allowed to run before moving on from bucket creation.

Following on from the fix I did a few days ago around the breaking S3 policy change, I missed a return here to ensure that the deletePublicAccessBlock call is completed before moving on. We still see occasional errors owing to this race condition.

ensure that deletePublicAccessBlock is allowed to run before moving on from bucket creation
@benheymink
Copy link
Contributor Author

@mikejpeters Sorry, missed this off the last PR, can we cut a new release with this fix in it? 🙏

@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #186 (4451986) into master (c8c6953) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #186   +/-   ##
=======================================
  Coverage   85.26%   85.26%           
=======================================
  Files           6        6           
  Lines         346      346           
=======================================
  Hits          295      295           
  Misses         51       51           
Impacted Files Coverage Δ
lib/bucket-utils.js 96.66% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Shereef Shereef merged commit 964f0b3 into fernando-mc:master Apr 28, 2023
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version 4.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Shereef
Copy link
Collaborator

Shereef commented Apr 28, 2023

Thank you so much for catching it and resubmitting a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants