Skip to content

Add deterministic collections#235

Draft
sarsko wants to merge 1 commit intomainfrom
det-pr
Draft

Add deterministic collections#235
sarsko wants to merge 1 commit intomainfrom
det-pr

Conversation

@sarsko
Copy link
Contributor

@sarsko sarsko commented Nov 23, 2025

Adds deterministic hash collections


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

@@ -0,0 +1,12 @@
[package]
name = "determinizable-collections"
Copy link
Member

Choose a reason for hiding this comment

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

Let's just stick to deterministic-collections

"determinizable" sounds like it's capable of being made deterministic, but these collections already behave deterministically

Copy link
Member

Choose a reason for hiding this comment

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

Actually, I would be fine with shuttle_collections (or shuttle-collections) too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"determinizable" sounds like it's capable of being made deterministic, but these collections already behave deterministically

This is capable of being made deterministic via the deterministic flag,. If it is not provided then this will not behave deterministically.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, then the crate name should be "determinizable_collections" to match the package name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True

Copy link
Member

Choose a reason for hiding this comment

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

Since you agree, could you please make the change, and let's merge this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

//! determinizable-collections = { version = "0.0.1", features = deterministic }
//! ```
//!
//! Some applications may want to have deterministic collections in their pre-prod environments,
Copy link
Member

Choose a reason for hiding this comment

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

What are "pro-prod environments"? Replace with "test environments"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure I see the issue with "pre-prod environments", pre-prod (or pre prod) has in my experience been the word used for any environment where code is run but without it affecting (all) customers. This encompasses testing environments, staging environments, development environments and so on for whichever environments the code is run.

Updated to pre-production.

@sarsko sarsko force-pushed the det-pr branch 3 times, most recently from 88894a0 to b2eaab7 Compare November 26, 2025 18:30
jorajeev
jorajeev previously approved these changes Nov 26, 2025
@jorajeev jorajeev enabled auto-merge (squash) November 26, 2025 18:35
@sarsko sarsko marked this pull request as draft January 14, 2026 02:38
auto-merge was automatically disabled January 14, 2026 02:38

Pull request was converted to draft

@sarsko
Copy link
Contributor Author

sarsko commented Jan 14, 2026

Made into draft because I'll try out the overriding weak symbols approach

Co-authored-by: Aurea <Aurel300@users.noreply.github.com>
Co-authored-by: Bernhard Kragl <kraglb@amazon.com>
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