Skip to content

Fix test fetch_all_platform_dependencies_when_no_target_is_given#16914

Merged
ehuss merged 1 commit intorust-lang:masterfrom
ehuss:fix-fetch_all_platform_dependencies_when_no_target_is_given
Apr 21, 2026
Merged

Fix test fetch_all_platform_dependencies_when_no_target_is_given#16914
ehuss merged 1 commit intorust-lang:masterfrom
ehuss:fix-fetch_all_platform_dependencies_when_no_target_is_given

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented Apr 20, 2026

This test was randomly failing because the order that cargo prints the completion of d1 and d2 is not deterministic.

I suspect this is a result of
#16898 which can cause the parallel fetches to finish in different orders.

This is fixed with .unordered() because the order these are printed isn't important.

This test was randomly failing because the order that cargo prints the
completion of `d1` and `d2` is not deterministic.

I suspect this is a result of
rust-lang#16898 which can cause the
parallel fetches to finish in different orders.

This is fixed with `.unordered()` because the order these are printed
isn't important.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 20, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 20, 2026

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from epage, weihanglo

Copy link
Copy Markdown
Contributor

@arlosi arlosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arlosi arlosi enabled auto-merge April 20, 2026 22:58
@arlosi arlosi added this pull request to the merge queue Apr 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 20, 2026
@arlosi arlosi added this pull request to the merge queue Apr 20, 2026
@weihanglo weihanglo removed this pull request from the merge queue due to a manual request Apr 20, 2026
@weihanglo
Copy link
Copy Markdown
Member

weihanglo commented Apr 20, 2026

---- expected: tests/testsuite/offline.rs:362:27
++++ actual:   stderr
Error: 1      - [ERROR] failed to download `baz v1.0.0`
        1 + [ERROR] failed to download `bar v0.1.0`
   2    2 | 
   3    3 | Caused by:
   4    4 |   attempting to make an HTTP request, but --offline was specified

This also need to redact. @arlosi or anyone still online, mind updating it?

@ehuss
Copy link
Copy Markdown
Contributor Author

ehuss commented Apr 21, 2026

I'm going to put this back in the queue. I think @arlosi is working on a fix for the other test.
I was trying to kick off the github-pages job with this PR to ensure that it is working correctly after the deploy changed.

@ehuss ehuss added this pull request to the merge queue Apr 21, 2026
@arlosi
Copy link
Copy Markdown
Contributor

arlosi commented Apr 21, 2026

I opened #16915 to fix the other the offline one. Let's try to get both through the flakiness separately.

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 21, 2026
@ehuss
Copy link
Copy Markdown
Contributor Author

ehuss commented Apr 21, 2026

@arlosi Looks like another one?

---- registry::sparse_blocking_count stdout ----
running `/Users/runner/work/cargo/cargo/target/debug/cargo check`
/Users/runner/work/cargo/cargo/target/tmp/cit/testsuite/registry/sparse_blocking_count/dl/bar/0.0.1/download
/Users/runner/work/cargo/cargo/target/tmp/cit/testsuite/registry/sparse_blocking_count/dl/dep1/0.0.1/download
/Users/runner/work/cargo/cargo/target/tmp/cit/testsuite/registry/sparse_blocking_count/dl/dep2/0.0.1/download

thread 'registry::sparse_blocking_count' (293748) panicked at tests/testsuite/registry.rs:3603:7:

---- expected: tests/testsuite/registry.rs:3575:27
++++ actual:   stderr
   1    1 | [UPDATING] `dummy-registry` index
   2    2 |    [..] DEBUG network::fetch: url="[..]/index/config.json"
   3    3 |    [..] DEBUG network::fetch: url="[..]/index/3/b/bar"
   4    4 | [WARNING] spurious network error (3 tries remaining): failed to get successful HTTP response from `[..]/index/3/b/bar` ([..]), got 500
   5    5 | body:
   6    6 | internal server error
   7    7 |    [..] DEBUG network::fetch: url="[..]/index/3/b/bar"
   8    8 |    [..] DEBUG cargo::core::resolver::restarting: pending=1
   9    9 |    [..] DEBUG network::fetch: url="[..]/index/de/p1/dep1"
  10   10 |    [..] DEBUG network::fetch: url="[..]/index/de/p2/dep2"
  11      -    [..] DEBUG cargo::core::resolver::restarting: pending=2
       11 +    0.082508708s DEBUG cargo::core::resolver::restarting: pending=1
  12   12 |    [..] DEBUG cargo::core::resolver::restarting: pending=0
  13   13 | [LOCKING] 3 packages to latest compatible versions
  14   14 |    [..] DEBUG cargo::core::resolver::restarting: pending=0
  15   15 | [DOWNLOADING] crates ...
  16   16 |    [..] DEBUG network::fetch: url="http://[..]/dl/bar/0.0.1/download"
          ⋮
  22   22 | [CHECKING] [..] v0.0.1
error: test failed, to rerun pass `-p cargo --test testsuite`
  23   23 | [CHECKING] [..] v0.0.1
  24   24 | [CHECKING] [..] v0.0.1
  25   25 | [CHECKING] foo v0.0.1 ([ROOT]/foo)
  26   26 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

@ehuss ehuss added this pull request to the merge queue Apr 21, 2026
@arlosi
Copy link
Copy Markdown
Contributor

arlosi commented Apr 21, 2026

Looks like another one?

Opened #16916 to fix.

Merged via the queue into rust-lang:master with commit 6c6a37e Apr 21, 2026
29 checks passed
@ehuss ehuss deleted the fix-fetch_all_platform_dependencies_when_no_target_is_given branch April 21, 2026 01:16
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 21, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Apr 21, 2026
Update cargo submodule

9 commits in 7ecf0285ebb408d596e4a8ac76a0980d8edb7005..06ac0e7c05770a8c7bbf67bdd12fa1a1eefdc8ae
2026-04-18 15:34:11 +0000 to 2026-04-21 15:33:56 +0000
- test(git): add regression test for full-hash GitHub fast path (rust-lang/cargo#16919)
- fix(help): add `.1` extension to man page temp file (rust-lang/cargo#16917)
- Fix flaky test: sparse_blocking_count (rust-lang/cargo#16916)
- Fix flaky test compile_offline_while_transitive_dep_not_cached (rust-lang/cargo#16915)
- Fix test fetch_all_platform_dependencies_when_no_target_is_given (rust-lang/cargo#16914)
- chore(ci): Use `actions/deploy-pages` for Cargo Contributor Guide deployment (rust-lang/cargo#16876)
- Convert GitHub fast path to use http_async (rust-lang/cargo#16912)
- refactor(network): convert .crate downloads to use http_async (rust-lang/cargo#16902)
- fix(tests): flaky test local_poll_adapter deferred_success (rust-lang/cargo#16909)

r? ghost
@rustbot rustbot added this to the 1.97.0 milestone Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants