Skip to content

Make test binary names predictable - #3899

Merged
UebelAndre merged 2 commits into
bazelbuild:mainfrom
UebelAndre:predictable
Mar 23, 2026
Merged

Make test binary names predictable#3899
UebelAndre merged 2 commits into
bazelbuild:mainfrom
UebelAndre:predictable

Conversation

@UebelAndre

@UebelAndre UebelAndre commented Mar 14, 2026

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator Author

Relates to #1600

@UebelAndre
UebelAndre marked this pull request as ready for review March 14, 2026 17:43
@UebelAndre
UebelAndre added this pull request to the merge queue Mar 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 22, 2026
@UebelAndre
UebelAndre added this pull request to the merge queue Mar 23, 2026
Merged via the queue into bazelbuild:main with commit a9565ff Mar 23, 2026
3 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.

incompatible_change_rust_test_compilation_output_directory

2 participants