From 7cd4d8e2f07bc32fd47e66380faaea5423d9b3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 11 Oct 2025 10:11:45 +0100 Subject: [PATCH 1/4] Use `NamedTuple` for output of `at-timed` instead of ordered `Tuple` --- src/ParallelTestRunner.jl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index a828e75..0684ce3 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -154,28 +154,26 @@ function runtest(::Type{TestRecord}, f, name, init_code) res = @timed @testset $name begin $f end - (res...,) + (; res.value, res.time, res.bytes, res.gctime) end - #data[1] is the testset - # process results rss = Sys.maxrss() if VERSION >= v"1.11.0-DEV.1529" - tc = Test.get_test_counts(data[1]) + tc = Test.get_test_counts(data.value) passes, fails, error, broken, c_passes, c_fails, c_errors, c_broken = tc.passes, tc.fails, tc.errors, tc.broken, tc.cumulative_passes, tc.cumulative_fails, tc.cumulative_errors, tc.cumulative_broken else passes, fails, errors, broken, c_passes, c_fails, c_errors, c_broken = - Test.get_test_counts(data[1]) + Test.get_test_counts(data.value) end if data[1].anynonpass == false data = ( (passes + c_passes, broken + c_broken), - data[2], - data[3], - data[4], + data.time, + data.bytes, + data.gctime, ) end res = TestRecord(data..., rss) From 5c6e028f838b21002ed384e0312bb47fa8b7455f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 11 Oct 2025 10:12:28 +0100 Subject: [PATCH 2/4] [CI] Run unit tests also on Julia nightly --- .github/workflows/UnitTests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 8a82bb7..7eefa78 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -38,6 +38,7 @@ jobs: - 'min' - '1' - 'pre' + - 'nightly' julia-arch: - x64 - x86 From 5dc5e25c43b125dc9970479db1877604e6bd9401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 11 Oct 2025 10:19:17 +0100 Subject: [PATCH 3/4] Bump version to v0.1.2 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 34fd67f..e419024 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ParallelTestRunner" uuid = "d3525ed8-44d0-4b2c-a655-542cee43accc" authors = ["Valentin Churavy "] -version = "0.1.1" +version = "0.1.2" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" From 9a36f1eb9161293671314e1789c2ecc6c7b858af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 11 Oct 2025 10:20:44 +0100 Subject: [PATCH 4/4] [CI] Run on default architecture instead of forcing `x64` incorrectly --- .github/workflows/UnitTests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 7eefa78..f9ccbb4 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -40,7 +40,7 @@ jobs: - 'pre' - 'nightly' julia-arch: - - x64 + - default - x86 os: - ubuntu-latest