Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CI for single toolchain channel workspaces #1712

Merged
merged 4 commits into from
Jan 4, 2023

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Dec 20, 2022

This provides regression testing for cases where users have only registered one toolchain in their workspace (meaning they only have a toolchain of a single channel type).

@UebelAndre UebelAndre changed the title Added CI for nightly toolchains Added CI for single toolchain channel workspaces Dec 23, 2022
@@ -68,8 +68,7 @@ mod test {
]);
assert!(
!out_content.contains("should not be in output"),
"output should not contain 'should not be in output' but did: {}",
out_content
"output should not contain 'should not be in output' but did",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe this change is related to rust-lang/rust-clippy#10055

Unfortunately #[allow(clippy::uninlined_format_args] cannot be used here without requiring we raise our min supported Rust version above 1.59.0

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can rustversion::attr be used here? https://crates.io/crates/rustversion

(I don't know the answer - I know rustversion can be used for conditional attrs on structs, and can't be used for conditional enabling of features - I'm not sure how allows fit in :))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think it'd be appropriate to add a new external dependency just for this. It seems it'll be fixed in a future nightly release so I think it's an acceptable trade off for now. If I can remember it I'll add them back in the future

#[test]
pub fn test_tool_exec() {
let tool_path = env!("TOOL_PATH");
assert!(
tool_path.contains("-exec-"),
"tool_path did not contain '-exec-': {}",
tool_path
"tool_path did not contain '-exec-'",
Copy link
Collaborator Author

@UebelAndre UebelAndre Dec 23, 2022

Choose a reason for hiding this comment

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

Same as #1712 (comment)

@UebelAndre UebelAndre marked this pull request as ready for review January 3, 2023 21:16
@UebelAndre UebelAndre merged commit 26a24f0 into bazelbuild:main Jan 4, 2023
@UebelAndre UebelAndre deleted the nightly branch January 4, 2023 15:57
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.

None yet

2 participants