-
Notifications
You must be signed in to change notification settings - Fork 624
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
Refactor concurrency #3623
Merged
Merged
Refactor concurrency #3623
Commits on Aug 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fc06eea - Browse repository at this point
Copy the full SHA fc06eeaView commit details -
* Avoid the use of `runBlocking` inside coroutines. Schedule all coroutines below the test engine layer via regular dispatchers, bringing the test environment more in line with actual production environments. * Remove direct use of Java's `Executors`, delegating to kotlinx.coroutines-provided dispatchers instead. * Preserve coroutine context (which includes lots of Kotest configuration) in multithreaded test executions. * Remove hard-coded 1-day time limit for multithreaded test executions. * Change tests relying on single-threading from a coroutine model to a thread model, removing coroutine invocations (`delay`), replacing those with thread invocations (`Thread.sleep`). * Avoid leaking threads by closing dispatchers after use. * Keep the `assertionCounter` synchronized with thread-switching coroutines. * Remove `fun <K, V> concurrentHashMap(): MutableMap<K, V>`, which was not thread-safe. * Make `FixedThreadCoroutineDispatcherFactory.dispatcherAffinity` thread-safe. * Revert a change in `ConcurrentTestSuiteScheduler.schedule` by commit c316bbd, which replaced `launch` with `async` plus `joinAll`. This was functionally equivalent, but `async` was not needed, as there were no values returned, and `joinAll` was already performed by the enclosing `coroutineScope`.
Configuration menu - View commit details
-
Copy full SHA for 4ab25ee - Browse repository at this point
Copy the full SHA 4ab25eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 339f2ee - Browse repository at this point
Copy the full SHA 339f2eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b9f404 - Browse repository at this point
Copy the full SHA 4b9f404View commit details
Commits on Aug 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f52b807 - Browse repository at this point
Copy the full SHA f52b807View commit details
Commits on Aug 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 782f28c - Browse repository at this point
Copy the full SHA 782f28cView commit details
Commits on Aug 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a7d63b5 - Browse repository at this point
Copy the full SHA a7d63b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0088f7d - Browse repository at this point
Copy the full SHA 0088f7dView commit details -
Merge branch 'master' into refactor-concurrency
# Conflicts: # kotest-extensions/kotest-extensions-blockhound/src/jvmTest/kotlin/io/kotest/extensions/blockhound/BlockHoundTest.kt
Configuration menu - View commit details
-
Copy full SHA for e11aca7 - Browse repository at this point
Copy the full SHA e11aca7View commit details -
Fix System.out/err handling: flush streams when switching or capturing
This avoids missing captured output.
Configuration menu - View commit details
-
Copy full SHA for 51a492d - Browse repository at this point
Copy the full SHA 51a492dView commit details
Commits on Aug 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c703210 - Browse repository at this point
Copy the full SHA c703210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4141777 - Browse repository at this point
Copy the full SHA 4141777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0163ec7 - Browse repository at this point
Copy the full SHA 0163ec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea49adf - Browse repository at this point
Copy the full SHA ea49adfView commit details
Commits on Aug 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3281e9c - Browse repository at this point
Copy the full SHA 3281e9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe2a11a - Browse repository at this point
Copy the full SHA fe2a11aView commit details -
Stabilize provoked thread switching with Dispatchers.Unconfined
Increase the minimum delay to 50 milliseconds based on observed behavior.
Configuration menu - View commit details
-
Copy full SHA for 7ffa720 - Browse repository at this point
Copy the full SHA 7ffa720View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee98be7 - Browse repository at this point
Copy the full SHA ee98be7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bc675b - Browse repository at this point
Copy the full SHA 9bc675bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e3e347 - Browse repository at this point
Copy the full SHA 0e3e347View commit details
Commits on Aug 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9b5799d - Browse repository at this point
Copy the full SHA 9b5799dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 709d8b1 - Browse repository at this point
Copy the full SHA 709d8b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63c927a - Browse repository at this point
Copy the full SHA 63c927aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.