From 3954078dab6afd851587bfbc92b8de95d6fa3d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 1 Aug 2026 23:39:38 +0100 Subject: [PATCH] Highlight terminated runners in yellow instead of red --- docs/src/index.md | 2 +- src/ParallelTestRunner.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index 41122a5..7b4a019 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -114,7 +114,7 @@ The test runner provides real-time output showing: - Execution time - GC time and percentage - Memory allocation -- RSS (Resident Set Size) memory usage, shown in red once it exceeds the RSS threshold and the worker will be restarted +- RSS (Resident Set Size) memory usage, shown in yellow once it exceeds the RSS threshold and the worker will be restarted ### Graceful Interruption diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index 95d2eb0..eceb428 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -252,7 +252,7 @@ function print_test_finished(record::AbstractTestRecord, wrkr, test, ctx::TestIO printstyled(ctx.stdout, lpad(alloc_str, ctx.alloc_align, " "), " │ ", color = :white) mem_use = memory_usage(record) - mem_color = mem_use > ctx.max_worker_rss ? :red : :white + mem_color = mem_use > ctx.max_worker_rss ? :yellow : :white rss_str = @sprintf("%5.2f", mem_use / 2^20) printstyled(ctx.stdout, lpad(rss_str, ctx.rss_align, " "), color = mem_color)