Skip to content

Make test binary names predictable#3899

Open
UebelAndre wants to merge 1 commit intobazelbuild:mainfrom
UebelAndre:predictable
Open

Make test binary names predictable#3899
UebelAndre wants to merge 1 commit intobazelbuild:mainfrom
UebelAndre:predictable

Conversation

@UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Mar 14, 2026

This PR makes rust_test binary names and output paths deterministic by removing the hash from the test compilation output directory. Instead of putting test outputs in a hashed subdirectory (e.g. my/package/test-<hash>/), the rules now use a predictable naming scheme (e.g. a _test suffix on the crate name) so test binaries and their outputs have stable, reproducible paths.

closes #2827

@UebelAndre
Copy link
Collaborator Author

Relates to #1600

@UebelAndre UebelAndre marked this pull request as ready for review March 14, 2026 17:43
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.

incompatible_change_rust_test_compilation_output_directory

1 participant