test: migrate metabuild, metadata and net_config to snapbox#14162
test: migrate metabuild, metadata and net_config to snapbox#14162bors merged 3 commits intorust-lang:masterfrom
Conversation
tests/testsuite/metadata.rs
Outdated
| .replace("$NORMAL_DEP", normal_dep) | ||
| .replace("$FOO", &foo), | ||
| ) | ||
| .unordered(), |
There was a problem hiding this comment.
Ugh, this IntoData::json(...).unordered() just isn't working as I expected. 😅
tests/testsuite/metadata.rs
Outdated
| .replace("$HOST_DEP", host_dep) | ||
| .replace("$NORMAL_DEP", normal_dep) | ||
| .replace("$FOO", &foo), | ||
| .replace("$ALT_TRIPLE", alt_target) |
There was a problem hiding this comment.
In theory, with snapshotting, do we need all of this manual build up?
There was a problem hiding this comment.
Yeah, I actually tried removing all the manual build parts before, but I thought that might be too aggressive. So, I decided to just carefully maintain the replacements instead.
I'll make the change.
There was a problem hiding this comment.
Updated!
There's still an ordering issue, though. Did I miss anything here?
There was a problem hiding this comment.
I went ahead and reverted the json part, allowing deprecated for now. Let's move forward!
2055e5d to
442be23
Compare
tests/testsuite/net_config.rs
Outdated
| .with_stderr_contains("[WARNING] spurious network error (1 tries remaining): [..]") | ||
| .with_stderr_data(str![[r#" | ||
| ... | ||
| [WARNING] spurious network error (2 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 11 after [..] ms: Couldn't connect to server)[..] |
There was a problem hiding this comment.
Based on my local tests, I assume it is. However, I'll redact it if it fails in CI.
|
Thank you. @bors r+ |
|
☀️ Test successful - checks-actions |
Update cargo 31 commits in 154fdac39ae9629954e19e9986fd2cf2cdd8d964..a2b58c3dad4d554ba01ed6c45c41ff85390560f2 2024-07-07 01:28:23 +0000 to 2024-07-16 00:52:02 +0000 - chore(ci): bump CI tools (rust-lang/cargo#14257) - test: migrate fetch and list_availables to snapbox (rust-lang/cargo#14214) - chore: downgrade to jobserver@0.1.28 (rust-lang/cargo#14254) - perf(source): Don't `du` on every git source load (rust-lang/cargo#14252) - fix(source): Don't warn about unreferenced duplicate packages (rust-lang/cargo#14239) - feat(test): Add cargo_test to test-support prelude (rust-lang/cargo#14243) - Add workflow to publish Cargo automatically (rust-lang/cargo#14202) - test: migrate implicit_features to snapbox (rust-lang/cargo#14245) - test: migrate build-std/main to snapbox (rust-lang/cargo#14241) - test: migrate check_cfg to snapbox (rust-lang/cargo#14235) - refactor(source): More RecursivePathSource clean up (rust-lang/cargo#14231) - Add more profiling traces (rust-lang/cargo#14238) - fix(overrides): Don't warn on duplicate packages from using '..' (rust-lang/cargo#14234) - fix(test): Redact elapsed time in the minutes time frame (rust-lang/cargo#14233) - test: Migrate lto tests to snapbox (rust-lang/cargo#14209) - fix: Ensure dep/feature activates the dependency on 2024 (rust-lang/cargo#14221) - chore(docs): update index of reference (rust-lang/cargo#14228) - test: migrate test to snapbox (rust-lang/cargo#14226) - chore: remove duplicate words (rust-lang/cargo#14229) - docs(contrib): Document things I look for in RFCs (rust-lang/cargo#14222) - docs(ref): Note MSRV for features in the docs (rust-lang/cargo#14224) - test(progress): Resolve flakiness (rust-lang/cargo#14223) - fix(test): Reduce over-prescription to the caller (rust-lang/cargo#14217) - refactor: move get_source_id out of registry (rust-lang/cargo#14218) - fix: rename to `rustdoc::broken_intra_doc_links` (rust-lang/cargo#14215) - test: migrate member_errors, multitarget and new to snapbox (rust-lang/cargo#14210) - test: migrate generate_lockfile and glob_targets to snapbox (rust-lang/cargo#14200) - test: Ensure --list test works with cargo-bloat (rust-lang/cargo#14213) - dont make new constant InternedString in hot path (rust-lang/cargo#14211) - Fix compatible_with_older_cargo test. (rust-lang/cargo#14212) - test: migrate metabuild, metadata and net_config to snapbox (rust-lang/cargo#14162)
What does this PR try to resolve?
Part of #14039.
Migrate following to snapbox:
tests/testsuite/metabuild.rstests/testsuite/metadata.rstests/testsuite/net_config.rs