Skip to content
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

Use process pool for test runner (0.12.x) #4679

Merged

Conversation

HollandDM
Copy link
Contributor

@HollandDM HollandDM commented Mar 9, 2025

ported for 0.12.x from #4614

@@ -161,9 +161,13 @@ object Ctx {
* terminal prompt to display what this future is currently computing.
* @param t The body of the async future
*/
def async[T](dest: os.Path, key: String, message: String)(t: => T)(implicit
def async[T](dest: os.Path, key: String, message: String, t: Logger => T)(implicit
Copy link
Contributor Author

@HollandDM HollandDM Mar 9, 2025

Choose a reason for hiding this comment

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

This change is needed because scala 2.13 does not happy with (dest: os.Path, key: String, message: String(t: Logger => T) signature

@HollandDM HollandDM force-pushed the work-stealing-test-runner-0.12.x branch from a1b6967 to 2c011f5 Compare March 9, 2025 16:25
@HollandDM HollandDM force-pushed the work-stealing-test-runner-0.12.x branch from aba1bf4 to 4aa3129 Compare March 10, 2025 00:59
@HollandDM HollandDM force-pushed the work-stealing-test-runner-0.12.x branch from cef2744 to 95e5ff4 Compare March 10, 2025 02:39
@lihaoyi lihaoyi marked this pull request as ready for review March 10, 2025 04:54
@lihaoyi
Copy link
Member

lihaoyi commented Mar 10, 2025

Tried this out locally, seems to speed up scalalib.test from ~200s to ~150s, presumably due to the reduction in cold JVM overhead. Pretty nice!

@HollandDM
Copy link
Contributor Author

HollandDM commented Mar 10, 2025

@lihaoyi it seems like the CI is quite flaky, could you rerun the fallen ones?

@lihaoyi
Copy link
Member

lihaoyi commented Mar 10, 2025

Yep will do

@lihaoyi
Copy link
Member

lihaoyi commented Mar 10, 2025

Looks good to me, the remaining flakiness is probably #4556

@lihaoyi lihaoyi merged commit 3bc4294 into com-lihaoyi:0.12.x Mar 10, 2025
38 of 40 checks passed
@lihaoyi
Copy link
Member

lihaoyi commented Mar 10, 2025

@HollandDM can send me your bank details to [email protected] for the bounty

@HollandDM
Copy link
Contributor Author

HollandDM commented Mar 10, 2025

@lihaoyi I've update my profile to show my email, you can use that for verification.
Will send you an email soon. Email sent

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.

3 participants