From 32abdd7bfb086204c03028a5ad2da81eda73121c Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Tue, 28 Jul 2026 00:56:24 -0300 Subject: [PATCH 1/2] Also report max_worker_rss in verbose mode --- src/ParallelTestRunner.jl | 8 +++++++- test/runtests.jl | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index 1e27ae6..16492a0 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -987,7 +987,13 @@ function _runtests(mod::Module, args::ParsedArgs; jobs = something(args.jobs, default_njobs()) jobs = clamp(jobs, 1, length(tests)) println(stdout, "Running $(length(tests)) tests using $jobs parallel jobs. If this is too many concurrent jobs, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.") - !isnothing(args.verbose) && println(stdout, "Available memory: $(Base.format_bytes(available_memory()))") + if !isnothing(args.verbose) + print(stdout, "Available memory: ") + printstyled(stdout, Base.format_bytes(available_memory()); bold=true) + print(stdout, "; Max worker RSS: ") + printstyled(stdout, Base.format_bytes(max_worker_rss); bold=true) + println(stdout) + end sem = Base.Semaphore(max(1, jobs)) worker_pool = Channel{Union{Nothing, PTRWorker}}(jobs) for _ in 1:jobs diff --git a/test/runtests.jl b/test/runtests.jl index 888ecb0..6b07951 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -28,6 +28,7 @@ include(joinpath(@__DIR__, "utils.jl")) @test contains(str, "time (s)") @test contains(str, "Available memory:") + @test contains(str, "Max worker RSS:") @test contains(str, "Init") # compile time as part of the struct not available before 1.11 @@ -829,6 +830,7 @@ end str = String(take!(io)) @test !contains(str, "started at") @test !contains(str, "Available memory:") + @test !contains(str, "Max worker RSS:") @test contains(str, "SUCCESS") end From 6ed9c66ae71f8eecab8b7b49f14c07bed54c9a63 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Tue, 28 Jul 2026 11:06:31 -0300 Subject: [PATCH 2/2] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 3bcc5b7..90e75f8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ParallelTestRunner" uuid = "d3525ed8-44d0-4b2c-a655-542cee43accc" authors = ["Valentin Churavy "] -version = "2.6.3" +version = "2.6.4" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"