-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Gate shell_completions tests on availability #14541
Conversation
r? @weihanglo rustbot has assigned @weihanglo. Use |
Hm, so this approach isn't going to work. It's too late for me to continue looking at this, will maybe look at it tomorrow or the next few days. |
@bors try |
Gate shell_completions tests on availability This changes the shell_completions tests to only run if the corresponding external program is installed. Generally, cargo's tests shouldn't require any external commands to be installed. This also uses the `ignore` attribute for disabling on macos. It is quite confusing when running on macos to see a successful test when it isn't running. This ensures that the test output indicates that it is ignored and the reason. cc `@shannmu`
💔 Test failed - checks-actions |
I recommend we be free with reverts when a code change is blocking. We can always fix this in another pass. |
rust-lang/rust#130292 is merged. This shouldn't be blocked anymore. @bors r+ |
Gate shell_completions tests on availability This changes the shell_completions tests to only run if the corresponding external program is installed. Generally, cargo's tests shouldn't require any external commands to be installed. This also uses the `ignore` attribute for disabling on macos. It is quite confusing when running on macos to see a successful test when it isn't running. This ensures that the test output indicates that it is ignored and the reason. cc `@shannmu`
@bors r- This isn't going to work, since not all jobs have the shells installed. I'm looking at a different approach where the jobs will be identified as being "extended" to test these extra things that might not be available. |
And BTW, this will block updating in rust-lang/rust, since those won't have the shells installed either. I'm poking around now, but I'm a little confused why the |
The Fish shell test failures might be due to the test depending on the completest crate, which tests the completion results based on an interactive shell. We cannot be certain when the completion results are fully generated, so there is a built-in timeout parameter. If the completion results are not generated within the timeout period, it may cause the test to fail. |
This changes the shell_completions tests to only run if the corresponding external program is installed. Generally, cargo's tests shouldn't require any external commands to be installed.
This also uses the
ignore
attribute for disabling on macos. It is quite confusing when running on macos to see a successful test when it isn't running. This ensures that the test output indicates that it is ignored and the reason.cc @shannmu