Commit graph

13634 commits

Author SHA1 Message Date
Eric Huss 43a27cbcde
Revert "Update curl-sys to use libcurl 7.88.1" 2023-02-22 06:55:20 -08:00
bors f3de2de2c8 Auto merge of #11748 - tshepang:patch-1, r=weihanglo
use consistent case
2023-02-22 08:53:39 +00:00
bors 0c331721d9 Auto merge of #11725 - Muscraft:reduce-build-in-tests, r=ehuss
Switch some tests from `build` to `check`

#11341 brought up issues with cargo's `testsute` size and speed. One of the suggested fixes was switching most tests to `check` instead of `build`. This PR did that.

Before size on `nightly`: 4.4GB

After size on `nightly`: 4.2GB

Regex to find `build` in `tests/testsuite`: `cargo\(".*build.*\)`
Before: 1607
After: 626

Note I did not remove all `build` I only did the easy ones that required minimal changes. I also tried not to touch systems I was unsure about. There could be other uses of `build` I missed as well.

I still need to play around with `opt-level`, `debug=0`, and a few other tweaks, but there should be more time/memory to drop.

Each test file changed is in a commit of its own, so you should look commit by commit.
2023-02-21 23:27:36 +00:00
bors 1c3f7a56f8 Auto merge of #11753 - arlosi:sparse-warn-space, r=weihanglo
Fix typo in sparse-registry warning message

Fixes #11752

Message now shows as:
```
warning: flag `-Z sparse-registry` has been stabilized in the 1.68 release, and is no longer necessary
  This flag currently still sets the default protocol to `sparse` when accessing crates.io. However, this will be removed in the future.
  The stable equivalent is to set the config value `registries.crates-io.protocol = 'sparse'`
  or environment variable `CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse`
```
2023-02-21 20:47:24 +00:00
Arlo Siemsen 648a8a26fd Fix typo in sparse-registry warning message 2023-02-21 14:14:04 -06:00
bors b6c7fbeb13 Auto merge of #11750 - klensy:pe, r=arlosi
reuse url encoding from `url` crate, don't use separate `percent-encoding`

Reuse encoding from `url`, don't use separate `percent-encoding`.
2023-02-21 17:50:08 +00:00
bors 7b98113f6c Auto merge of #11727 - kylematsuda:config-env, r=ehuss
Read environment variables through `Config` instead of `std::env::var(_os)`

### What does this PR try to resolve?

Adds two new methods `get_env` and `get_env_os` for reading environment variables from the `Config` and uses them to replace the many of the calls to `std::env::var` and `var_os`  (see the discussion in #11588).

Closes #11588
2023-02-21 16:31:51 +00:00
klensy 37d429ca67 reuse url encoding from url crate, don't use separate percent-encoding 2023-02-21 18:57:25 +03:00
bors e48bc219e3 Auto merge of #11749 - ehuss:update-curl, r=weihanglo
Update curl-sys to use libcurl 7.88.1

This updates curl-sys to update the vendored curl from 7.86.0 to 7.88.1. The changelog is at https://curl.se/changes.html.
2023-02-21 15:41:39 +00:00
Eric Huss a616356b39 Update curl-sys to use libcurl 7.88.1 2023-02-21 06:44:36 -08:00
bors ddfe87fc46 Auto merge of #11747 - klensy:mdman-dep, r=weihanglo
mdman: update pretty_assertions to reduce deps

This reduces deps in rust repo by dropping `ansi_term 0.11.0` and `difference` crates. `yansi` and `diff` already used there (rust repo).
2023-02-21 13:11:26 +00:00
Tshepang Mbambo 640ff8d593
use consistent case 2023-02-21 14:28:00 +02:00
klensy a485a8a4b8 mdman: update pretty_assertions to reduce duplicated deps 2023-02-21 14:39:30 +03:00
bors d1d16f2773 Auto merge of #11745 - Muscraft:cleanup-tests, r=epage
Cleanup tests

When working on #11738 I noticed a few tests that needed to be cleaned up. It [was suggested](https://github.com/rust-lang/cargo/pull/11738#discussion_r1111128128) to split the test changes into their own PR.

- `bad_config::bad1`
  - This was trying to match `config` which would get matched in the wrong place due to the test name having `config` in it
  - Fixed by making the match `/config`
- `build_script::panic_abort_with_build_scripts`
  - This test was failing as it was making sure `panic` was not in the output. After this change, it could match the test name and fail.
  - To fix this I updated it to look at `panic=abort` which appears to be what it was originally looking for (#5711). `@ehuss` please let me know if I misread what the test was testing.
- `cargo_command::cargo_subcommand_args`
  - This test had `#[test]` above `#[cargo_test]` which caused it to throw an error removing it fixed the issue

During this time I also ran into issues with `cargo_remove` tests being named `fn case()` which is different from how tests are normally named. I talked with `@epage` and it was decided that `fn case()` should probably be used for all `snapbox` tests since the unique test name is already the folder name. I went ahead and renamed all tests within `cargo_add/` and `init/` to match this style.

This PR should be reviewed commit by commit.
2023-02-21 00:38:06 +00:00
Scott Schafer 45c9c8e905 chore: update workspaces tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer 221938a2a0 chore: update vendor tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer b974cacb50 chore: update update tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer 866daf4f22 chore: update rustflags tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer 43f9b8ea83 chore: update rust_version tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer 6282282fb0 chore: update replace tests to use check 2023-02-20 12:22:29 -06:00
Scott Schafer ab1794bda4 chore: update registry_auth tests to use check 2023-02-20 12:22:24 -06:00
Scott Schafer 98c746629b chore: update registry tests to use check 2023-02-20 12:22:24 -06:00
Scott Schafer 1b9af485c1 chore: update pub_priv tests to use check 2023-02-20 12:22:24 -06:00
Scott Schafer 41738bea7e chore: update progress tests to use check 2023-02-20 12:22:24 -06:00
Scott Schafer 8d66a0265d chore: update profile_overrides tests to use check 2023-02-20 12:21:55 -06:00
Scott Schafer a726b8d682 chore: update proc_macro tests to use check 2023-02-20 12:21:35 -06:00
Scott Schafer 341c400487 chore: update paths tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 577594770e chore: update path tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 730e2196b7 chore: update patch tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 7b14e72cc6 chore: update package_features tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer de2e97403f chore: update package tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer e3d3bb6b04 chore: update offline tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer fb755a3dd1 chore: update net_config tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 1dd8536935 chore: update metabuild tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 8f4f77e894 chore: update message_format tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 9a46caf1ed chore: update lockfile_compat tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer de704f5093 chore: update local_registry tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 9d85c01994 chore: update jobserver tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer df909b938c chore: update inheritable_workspace_fields tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer e8f9ccf9af chore: update git_gc tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer cb20cbaae9 chore: update git_auth tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 29cd1ce7f2 chore: update git tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 4934dffa5a chore: update future_incompat_report tests to use check 2023-02-20 12:21:27 -06:00
Scott Schafer 9c14193764 chore: update fix tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer a03660d5ee chore: update features_namespaced tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer da70f75ae4 chore: update features2 tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer a5ec7e0266 chore: update features tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer ea75921f2d chore: update edition tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer 620dfb13e1 chore: update doc tests to use check 2023-02-20 12:21:15 -06:00
Scott Schafer 76bb60cec7 chore: update directory tests to use check 2023-02-20 12:21:15 -06:00