fix: allow check-rust to complete without cargo hack#2588
fix: allow check-rust to complete without cargo hack#2588hippietrail wants to merge 6 commits intoAutomattic:masterfrom
check-rust to complete without cargo hack#2588Conversation
instead of failing at this point it will issue the warning ```⚠️ cargo-hack not found. Install with 'cargo install cargo-hack' for complete feature testing. ```
|
I would prefer this to work similarly to how we have it set up with |
Is like this OK or would you prefer without the warning since |
|
My main concern is that I don't want CI to fail silently if the |
…n-instead-of-fail-without-cargo-hack
…cified Make `check-rust` fail if `cargo-hack` is missing unless `DISABLE_CARGO_HACK=1` is set, following the same pattern as `DISABLE_WASM_OPT`.
Like this right? |
Issues
N/A
Description
I noticed lately that when I do
just precommitthat the test comes to an abrupt halt after doing all kinds of heavy testing with a dozen Chromium windows open at once etc. just to tell me I don't havecargo hackinstalled.This PR will instead issue a warning at that point but continue the testing.
instead of failing at this point it will issue the warning
I'm not 100% clear if this is acceptable or not though. Another way would be to check if it's installed at the start of the test so that you don't waste time and system resources only for the test to fail to complete.
I'm not a shell expert and the LLM's first method of checking for the presence of
cargo hackdidn't actually work - so please check carefully!How Has This Been Tested?
Manually.
Checklist