Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Julia 1.11+ #113

Merged
merged 14 commits into from
May 22, 2024
Merged

Support Julia 1.11+ #113

merged 14 commits into from
May 22, 2024

Conversation

omus
Copy link
Member

@omus omus commented May 21, 2024

Note at this time Julia 1.11.0-beta1 is the latest released version of Julia 1.11 which is why I used v"1.11-" in this PR. Note that the "nightly" CI jobs are setup to continue-on-error so reviewers will need to view the output of those jobs to confirm it actually passes.

Comment on lines -385 to +395
sandbox_args = (ctx,
pkgspec,
pkgspec.path,
joinpath(pkgspec.path, "test"))
if VERSION >= v"1.8.0"
test_project_override = test_folder_has_project_file ?
nothing :
test_project_override = if VERSION >= v"1.4" && !test_folder_has_project_file
if VERSION >= v"1.8"
gen_target_project(ctx, pkgspec, pkgspec.path::String, "test")
sandbox_args = (sandbox_args..., test_project_override)
elseif VERSION >= v"1.7.0"
test_project_override = test_folder_has_project_file ?
nothing :
elseif VERSION >= v"1.7"
gen_target_project(ctx.env, ctx.registries, pkgspec, pkgspec.path, "test")
sandbox_args = (sandbox_args..., test_project_override)
elseif VERSION >= v"1.4.0"
test_project_override = test_folder_has_project_file ?
nothing :
else
gen_target_project(ctx, pkgspec, pkgspec.path, "test")
sandbox_args = (sandbox_args..., test_project_override)
end
else
nothing
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff is hard to read but this part is just dealing with version differences for calling gen_target_project independently from sandbox args

@oxinabox
Copy link
Member

Note that the "nightly" CI jobs are setup to continue-on-error so reviewers will need to view the output of those jobs to confirm it actually passes.

Can we change this?
I would rather they fail visibly, and then we just ignore them when we decide to merge

Copy link
Member

@oxinabox oxinabox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really do need to finish #89

@omus
Copy link
Member Author

omus commented May 22, 2024

To ensure that I didn't break older versions of Julia not normally tested by the CI workflow I added commit cb7a15d to validate Julia versions 1.2 - 1.10 all pass tests.

@omus
Copy link
Member Author

omus commented May 22, 2024

Julia 1.2 is upset about running Pkg.rm("Example"):

Installed packages by name in primary environment: Error During Test at /home/runner/work/TestReports.jl/TestReports.jl/test/reportgeneration.jl:39
  Got exception outside of a @test
  The following package names could not be resolved:
   * Example (not found in project or manifest)
  Please specify by known `name=uuid`.
  Stacktrace:
   [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:112
   [2] #ensure_resolved#107(::Bool, ::typeof(Pkg.Types.ensure_resolved), ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:910
   [3] ensure_resolved at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:886 [inlined]
   [4] #rm#35(::Pkg.Types.PackageMode, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.rm), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:127
   [5] rm at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:109 [inlined]
   [6] #rm#34 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:106 [inlined]
   [7] rm at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:106 [inlined]
   [8] #rm#33 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:105 [inlined]
   [9] rm at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:105 [inlined]
   [10] #rm#32(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.rm), ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:104
   [11] rm(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:104
   [12] top-level scope at /home/runner/work/TestReports.jl/TestReports.jl/test/reportgeneration.jl:45
...

I think I'm going to not investigate this issue further.

@omus omus merged commit f7e34ae into master May 22, 2024
10 checks passed
@omus omus deleted the cv/nightly-fix branch May 22, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants