Skip to content

Fix non-determinism in rules_rs/crate_git_repository.bzl#16590

Merged
bolinfest merged 1 commit intoopenai:mainfrom
tyler-french:tfrench/rs
Apr 2, 2026
Merged

Fix non-determinism in rules_rs/crate_git_repository.bzl#16590
bolinfest merged 1 commit intoopenai:mainfrom
tyler-french:tfrench/rs

Conversation

@tyler-french
Copy link
Copy Markdown
Contributor

@tyler-french tyler-french commented Apr 2, 2026

Running multiple builds with no changes causes some differences, we see that https://app.buildbuddy.io/compare/a9719629-1660-4735-a477-d66357f234fb...df85310b-eb5c-4c10-8b79-4d0449ba6cdd#file shows the file-differences between two Bazel builds.

These differences are caused by a non-deterministic .git entry in the rules_rs crates that are created with crate_git_repository.

As a way to make these deterministic, we can remove this entry after we download the git source, so that the input to the compile action is deterministic.

CLA

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@tyler-french tyler-french marked this pull request as ready for review April 2, 2026 17:50
@tyler-french
Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Apr 2, 2026
@bolinfest bolinfest changed the title Fix non-determinism in rules_rs/crate_git_repository.bzl" Fix non-determinism in rules_rs/crate_git_repository.bzl Apr 2, 2026
@bolinfest bolinfest merged commit 1d8a22e into openai:main Apr 2, 2026
12 of 24 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants