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

keep the file output deterministic #185

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

darrell-roberts
Copy link
Member

@darrell-roberts darrell-roberts commented Jul 18, 2024

I'm using rayon to walk the folder structure. This prevented the output from being deterministic. To maintain this I updated the mappings and types to maintain sorted collections. As a consequence the tests had to be updated to reflect the new sorting.

I want to use a parallel iterator while walking the input folders however in order to maintain a deterministic output I'll have to keep the crate to parsed data sorted along with the types within each parsed data. Consequently the tests have been updated since they did not have this sorting before.
@darrell-roberts darrell-roberts marked this pull request as ready for review July 18, 2024 19:20
@LuminaSapphira LuminaSapphira merged commit ecc8ce7 into 1Password:main Jul 22, 2024
5 checks passed
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.

None yet

2 participants