-
Notifications
You must be signed in to change notification settings - Fork 2.9k
shell_completions test issues #14545
Copy link
Copy link
Closed
Labels
A-completionsArea: shell completionsArea: shell completionsA-testing-cargo-itselfArea: cargo's testsArea: cargo's testsC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Metadata
Metadata
Assignees
Labels
A-completionsArea: shell completionsArea: shell completionsA-testing-cargo-itselfArea: cargo's testsArea: cargo's testsC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
The new shell_completions tests have a few issues that need to be resolved before they can be enabled.
fishandzshrandomly fail. Gate shell_completions tests on availability #14541 (comment) indicates that it might be an interactive timeout.bashtest also requires the bash-completions package to be installed.ignoreattribute so that it reports in the output when it isn't running. Currently they exit withreturn;on macos, but that should use theignoreattribute instead.Steps
cargo test --test testsuite -- shell_completionsPossible Solution(s)
One idea I had for limiting where these tests run is to add a CI_EXTENDED environment variable. The tests would only be required to run if that environment variable is set, and then we can set that in the appropriate jobs (like
test). Then the cargo_test macro could have something likerequires_extended_fishor something like that. That would also be useful for the currently hard-codedhgandlldb.However, that doesn't help with some of the more complex issues like the bash-completions problem.
We could extend the cargo_test attribute to have
ignore_macosto fix the macos ignore problem.Notes
No response
Version
Currently on 643a025 of master.