Closed
Description
Scheduled testing of a very basic Test
project with --threads=auto
started hanging three weeks ago - since Oct. 8, when Julia 1.11 was released.
The scheduled testing is using the julia:1
container (which became synonymous with julia:1.11
on Oct. 8) and the hang occurs while precompiling the test-project (when running tests).
The scheduled testing is simply running Pkg.test
with --threads=auto
for a project with only Test
as a dependency: https://gitlab.com/stemann/julia-gitlab-ci-templates/-/tree/master/examples/Sample
- Oct. 10: First failure on Julia 1.11.0: https://gitlab.com/stemann/julia-gitlab-ci-templates/-/jobs/8040350935
- Oct. 31: Most recent failure - on Julia 1.11.1: https://gitlab.com/stemann/julia-gitlab-ci-templates/-/jobs/8234833118
Without --threads=auto
(using Pkg.test(; coverage = true)
), the testing completes without issues (of course): https://gitlab.com/stemann/julia-gitlab-ci-templates/-/jobs/8234833097
"Stack trace" (Julia-style):
Pkg.test(; coverage = true, julia_args = ["--threads=auto"])
julia --project -e '
@info """
Testing...
CI_JULIA_TEST_THREADS: $(ENV["CI_JULIA_TEST_THREADS"])
CI_JULIA_TEST_REPORTS: $(ENV["CI_JULIA_TEST_REPORTS"])
Sys.CPU_THREADS: $(Sys.CPU_THREADS)
"""
# ...
if !using_threads || VERSION < v"1.5"
if using_threads
ENV["JULIA_NUM_THREADS"] = Sys.CPU_THREADS
end
if !using_test_reports
Pkg.test(; coverage = true)
else
TestReports.test(; coverage = true)
end
else
if !using_test_reports
Pkg.test(; coverage = true, julia_args = ["--threads=auto"])
else
TestReports.test(; coverage = true, julia_args = ["--threads=auto"])
end
end
'