Skip to content

Reduce the usage of sleep_ms() in testsuite - #17819

Merged
ranger-ross merged 4 commits into
rust-lang:masterfrom
ranger-ross:even-more-sleep-removals
Nov 27, 2026
Merged

ranger-ross merged 4 commits into
rust-lang:masterfrom
ranger-ross:even-more-sleep-removals

Conversation

@ranger-ross

Copy link
Copy Markdown
Member

What does this PR try to resolve?

This is a follow up on #17816 with a third batch of removals of sleep_ms() calls in tests.

This batch has removals from tests from miscellaneous features.

Notes to reviewers

After merging this lsp says there are 24 remaining usages of sleep_ms.


🤖 LLM involvement: An LLM was used to help migrate these tests from sleep_ms() to other approaches like move_into_the_past().

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 27, 2026
@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

r? @Muscraft

rustbot has assigned @Muscraft.
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: @Muscraft, @epage, @weihanglo
  • @Muscraft, @epage, @weihanglo expanded to Muscraft, epage, weihanglo
  • Random selection from Muscraft, epage, weihanglo

@weihanglo weihanglo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rustbot
rustbot enabled auto-merge November 27, 2026 14:32

@weihanglo weihanglo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rustbot
rustbot added this pull request to the merge queue Nov 27, 2026
@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Error: Pull request is already in the queue

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 27, 2026
@ranger-ross
ranger-ross added this pull request to the merge queue Nov 27, 2026
@ranger-ross

Copy link
Copy Markdown
Member Author

the test failure looks unrelated, requeueing

I might try letting an agent loose to see if I can hunt down these kinds of flaky tests

@weihanglo

Copy link
Copy Markdown
Member
thread 'main' (4372) has overflowed its stack
error: could not compile `foo` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name foo --edition=2015 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat,unused-externs-silent --diagnostic-width=400 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=ae0363571b466b90 -C extra-filename=-2a1d1d4b214625c8 --out-dir D:\a\cargo\cargo\target\tmp\cit\t4404\foo\target\debug\build\foo/2a1d1d4b214625c8\out --force-warn=unused_crate_dependencies` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)

Windows GNU stack overflow again. it wil hopefully be mitigiated by rust-lang/rust#166322.

Merged via the queue into rust-lang:master with commit e8dc7f8 Nov 27, 2026
30 checks passed
@ranger-ross
ranger-ross deleted the even-more-sleep-removals branch November 27, 2026 15:37
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 27, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 28, 2026
Update cargo submodule

14 commits in ae8f06eb41b8c4a534d0f280f1b9d287f45ead73..39eba940bf913a566c4763c836cbe24b9f975200
2026-11-21 04:06:35 +0000 to 2026-11-27 22:28:03 +0000
- feat(config)!: Delegate `Definition` origin to `Origin` and precedence to `Scope` (rust-lang/cargo#17822)
- Reduce the usage of `sleep_ms()` in testsuite (rust-lang/cargo#17819)
- fix(clean): Don't double count hardlinks when actually cleaning (rust-lang/cargo#17805)
- Reduce the usage of `sleep_ms()` in freshness tests (rust-lang/cargo#17816)
- fix(git): run gc in foreground to avoid race (rust-lang/cargo#17818)
- fix(script): Skip a UTF-8 BOM before parsing the frontmatter (rust-lang/cargo#17806)
- Reduce the usage of `sleep_ms()` in testsuite (rust-lang/cargo#17815)
- fix(compile): Differentiate levels of debug info  (rust-lang/cargo#17798)
- fix(profiles): line-tables-only on nightly only (rust-lang/cargo#17797)
- fix(cli): Suggest `--profile debug` on all commands that default to `dev` (rust-lang/cargo#17796)
- refactor: clarify home is cargo home (rust-lang/cargo#17790)
- refactor(config)!: various polish (rust-lang/cargo#17787)
- refactor(git): extract git backends to their own modules (rust-lang/cargo#17789)
- docs: fix typos in documentation (rust-lang/cargo#17783)

r? ghost
@rustbot rustbot added this to the 1.102.0 milestone Nov 28, 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