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

Add items to archive serially when creating asset packages #48

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

lencioni
Copy link
Contributor

I noticed that our test for this function was flaky. I believe this is because we were adding items to the archive in our Promise.all, which could cause items to be added in an inconsistent order. We really want this to be built deterministically, so I am splitting it out so that we fetch the items in parallel and then follow up with adding them to the archive serially. This should probuce a more stable output.

I noticed that our test for this function was flaky. I believe this is
because we were adding items to the archive in our Promise.all, which
could cause items to be added in an inconsistent order. We really want
this to be built deterministically, so I am splitting it out so that we
fetch the items in parallel and then follow up with adding them to the
archive serially. This should probuce a more stable output.
@lencioni lencioni requested a review from trotzig November 25, 2024 17:52
@lencioni lencioni merged commit c0d8919 into main Nov 25, 2024
4 checks passed
@lencioni lencioni deleted the archive-deterministically branch November 25, 2024 18:09
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