From bcda9565e8f133ee426a46111a6fc672c0717665 Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Tue, 27 Jan 2026 12:52:21 +0530 Subject: [PATCH 1/5] fix method redefinition warnings in tests --- test/logdensityproblems.jl | 4 ++-- test/sample.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/logdensityproblems.jl b/test/logdensityproblems.jl index 4a3a22d5..12b6de75 100644 --- a/test/logdensityproblems.jl +++ b/test/logdensityproblems.jl @@ -5,15 +5,15 @@ pids = addprocs(Sys.iswindows() ? div(Sys.CPU_THREADS::Int, 2) : Sys.CPU_THREADS::Int) # Load all required packages (`utils.jl` needs LogDensityProblems, Logging, and Random). - @everywhere begin + @everywhere workers() begin using AbstractMCMC using AbstractMCMC: sample using LogDensityProblems using Logging using Random - include("utils.jl") end + @everywhere workers() include("utils.jl") @testset "LogDensityModel" begin ℓ = MyLogDensity(10) diff --git a/test/sample.jl b/test/sample.jl index 954acc7c..17718952 100644 --- a/test/sample.jl +++ b/test/sample.jl @@ -250,15 +250,15 @@ ) # Load all required packages (`utils.jl` needs LogDensityProblems, Logging, and Random). - @everywhere begin + @everywhere workers() begin using AbstractMCMC using AbstractMCMC: sample using LogDensityProblems using Logging using Random - include("utils.jl") end + @everywhere workers() include("utils.jl") # No dedicated chains type N = 10_000 From 9234dbda90741dd38186b2fa6ad02a9ceb77db1c Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Tue, 27 Jan 2026 12:58:09 +0530 Subject: [PATCH 2/5] Add compat entries for IJulia & Statistics --- Project.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project.toml b/Project.toml index 007b104b..28bc2ef5 100644 --- a/Project.toml +++ b/Project.toml @@ -33,10 +33,12 @@ AbstractMCMCTensorBoardLoggerExt = "TensorBoardLogger" BangBang = "0.3.19, 0.4" ConsoleProgressMonitor = "0.1" FillArrays = "1" +IJulia = "1" LogDensityProblems = "2" LoggingExtras = "0.4, 0.5, 1" OnlineStats = "1.5" ProgressLogging = "0.1" +Statistics = "1" StatsBase = "0.32, 0.33, 0.34" TensorBoardLogger = "0.1" TerminalLoggers = "0.1" From 9e2a279a86466ec611617e1512ef5a73228e09f5 Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Tue, 27 Jan 2026 13:26:44 +0530 Subject: [PATCH 3/5] use Miniforge for Conda (https://github.com/JuliaPy/Conda.jl?tab=readme-ov-file#using-miniforge) --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a39a8579..23d4b809 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -58,6 +58,7 @@ jobs: - uses: julia-actions/julia-runtest@latest env: JULIA_NUM_THREADS: ${{ matrix.num_threads }} + CONDA_JL_USE_MINIFORGE: "1" - uses: julia-actions/julia-processcoverage@v1 if: matrix.coverage From e702c11e9728515416c85bc16b96d35afd9e2447 Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Tue, 27 Jan 2026 13:45:19 +0530 Subject: [PATCH 4/5] remove Miniforge env --- .github/workflows/CI.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 23d4b809..a39a8579 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -58,7 +58,6 @@ jobs: - uses: julia-actions/julia-runtest@latest env: JULIA_NUM_THREADS: ${{ matrix.num_threads }} - CONDA_JL_USE_MINIFORGE: "1" - uses: julia-actions/julia-processcoverage@v1 if: matrix.coverage From d62eff8cbaa63cfe0711b4b4e3c2b06d2defafad Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Tue, 27 Jan 2026 17:58:29 +0530 Subject: [PATCH 5/5] tests: lump together (lump is nice word) --- test/logdensityproblems.jl | 2 +- test/sample.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/logdensityproblems.jl b/test/logdensityproblems.jl index 12b6de75..9eaa3913 100644 --- a/test/logdensityproblems.jl +++ b/test/logdensityproblems.jl @@ -12,8 +12,8 @@ using Logging using Random + include("utils.jl") end - @everywhere workers() include("utils.jl") @testset "LogDensityModel" begin ℓ = MyLogDensity(10) diff --git a/test/sample.jl b/test/sample.jl index 17718952..0e15a456 100644 --- a/test/sample.jl +++ b/test/sample.jl @@ -257,8 +257,8 @@ using Logging using Random + include("utils.jl") end - @everywhere workers() include("utils.jl") # No dedicated chains type N = 10_000