Skip to content

Fix reproducible warning in crates_repository#3904

Merged
UebelAndre merged 2 commits intobazelbuild:mainfrom
UebelAndre:noise
Mar 22, 2026
Merged

Fix reproducible warning in crates_repository#3904
UebelAndre merged 2 commits intobazelbuild:mainfrom
UebelAndre:noise

Conversation

@UebelAndre
Copy link
Copy Markdown
Collaborator

@UebelAndre UebelAndre commented Mar 17, 2026

This fixes a noisy warning for users of crates_repository:

DEBUG: Rule 'crate_index' indicated that a canonical reproducible form can be obtained by nodifying arguments _action_listener = <unknown object com.google.devtools.build.lib.packages.Attribute$LabelListLateBoundDefault>, _config_dependencies = [], _configure = False, _original_name = ""

@UebelAndre UebelAndre marked this pull request as ready for review March 17, 2026 14:43
@UebelAndre UebelAndre enabled auto-merge March 18, 2026 13:04
Copy link
Copy Markdown
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM but it looks like there are errors running the pipeline? Let's maybe add the pipeline as a separate PR where I can review passing and failing runs for their output?

@@ -0,0 +1,47 @@
"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable."""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable."""
"""Alias that transitions its target `compilation_mode`."""

}

// Skip any file or directory inside a known volatile directory
if entry.path().ancestors().any(|ancestor| {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Optional, but: it would be slightly cheaper to use https://docs.rs/walkdir/latest/walkdir/struct.FilterEntry.html#method.skip_current_dir to stop iterating into those directories, rather than having to check all ancestors for every path

@UebelAndre UebelAndre added this pull request to the merge queue Mar 22, 2026
Merged via the queue into bazelbuild:main with commit f9b8d90 Mar 22, 2026
3 checks passed
@UebelAndre
Copy link
Copy Markdown
Collaborator Author

I didn't realize #3346 was in this change! It's totally unrelated! So sorry I didn't catch this!

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