8000 [lldb] Script determinism of TestSwiftActorUnprioritisedJobs (#10435) by kastiglione · Pull Request #10932 · swiftlang/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

[lldb] Script determinism of TestSwiftActorUnprioritisedJobs (#10435) #10932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kastiglione
Copy link
  • [lldb] Make TestSwiftActorUnprioritisedJobs deterministic

  • Run and show bt all

  • Attempt forward progress of other threads

  • Add missing thread.Suspend()

  • Unconditionally run other threads

  • Increase sleep wait

  • Add actor call to hopefully initialize swift concurrency threads

  • New algorithm to ensure actor is sufficiently setup

Credit Adrian for the idea.

  • Add IsValid asserts

  • New approach did not work, restore previous

  • Another round of changes

  • Remove dead test code; Run the test 20x

  • Pause to allow for occupy() call

  • Remove stress testing of multiple test runs

(cherry picked from commit 14ea9a3)

(cherry-picked from commit 9a32a3a538ec30e8252c4d6be71d17d1b289ce29)

* [lldb] Make TestSwiftActorUnprioritisedJobs deterministic

* Run and show `bt all`

* Attempt forward progress of other threads

* Add missing thread.Suspend()

* Unconditionally run other threads

* Increase sleep wait

* Add actor call to hopefully initialize swift concurrency threads

* New algorithm to ensure actor is sufficiently setup

Credit Adrian for the idea.

* Add IsValid asserts

* New approach did not work, restore previous

* Another round of changes

* Remove dead test code; Run the test 20x

* Pause to allow for occupy() call

* Remove stress testing of multiple test runs

(cherry picked from commit 14ea9a3)

(cherry-picked from commit 9a32a3a538ec30e8252c4d6be71d17d1b289ce29)
@kastiglione kastiglione merged commit 4e0db49 into next Jun 30, 2025
@kastiglione kastiglione deleted the dl/next/lldb-Script-determinism-of-TestSwiftActorUnprioritisedJobs-10435 branch June 30, 2025 19:55
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.

1 participant
0