Skip to content

Conversation

@IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Feb 9, 2025

Trying to clear the block for BinaryBuilder updating to a recent julia version.

Fixes a few issues

libcxxwrap_julia_jll: Error During Test at /Users/runner/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:225
  Got exception outside of a @test
  MethodError: no method matching abspath(::Nothing)
  The function `abspath` exists, but no method is defined for this combination of argument types.
  
  Closest candidates are:
    abspath(::String)
     @ Base path.jl:448
    abspath(::AbstractString)
     @ Base path.jl:614
    abspath(::AbstractString, AbstractString...)
     @ Base path.jl:468
  
  Stacktrace:
    [1] fixups_from_projectfile!(env::Pkg.Types.EnvCache)
      @ Pkg.Operations ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:229
    [2] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
      @ Pkg.Operations ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1661
    [3] add
      @ ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1631 [inlined]
    [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{julia_version::VersionNumber, io::IOStream})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:317
    [5] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOStream, kwargs::@Kwargs{julia_version::VersionNumber})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:164
    [6] add
      @ ~/work/Pkg.jl/Pkg.jl/src/API.jl:151 [inlined]
    [7] add(; name::String, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@Kwargs{julia_version::VersionNumber})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:181
    [8] add
      @ ~/work/Pkg.jl/Pkg.jl/src/API.jl:170 [inlined]
    [9] macro expansion
      @ ~/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:228 [inlined]
GMP_jll: Test Failed at /Users/runner/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:242
  Expression: ((Pkg.dependencies())[GMP_jll_UUID]).version === v"6.2.1+6"
   Evaluated: v"6.3.0+2" === v"6.2.1+6"
Stacktrace:
 [1] macro expansion
   @ ~/hostedtoolcache/julia/nightly/aarch64/share/julia/stdlib/v1.13/Test/src/Test.jl:679 [inlined]
 [2] macro expansion
   @ ~/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:242 [inlined]
 [3] macro expansion
   @ ~/hostedtoolcache/julia/nightly/aarch64/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined]
 [4] macro expansion
   @ ~/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:241 [inlined]
 [5] macro expansion
   @ ~/hostedtoolcache/julia/nightly/aarch64/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined]
 [6] (::Main.PkgTestsOuter.PkgTestsInner.HistoricalStdlibVersionsTests.var"#19#20")()
   @ Main.PkgTestsOuter.PkgTestsInner.HistoricalStdlibVersionsTests ~/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:206
GMP_jll: Error During Test at /Users/runner/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:239
  Got exception outside of a @test
  MethodError: no method matching abspath(::Nothing)
  The function `abspath` exists, but no method is defined for this combination of argument types.
  
  Closest candidates are:
    abspath(::String)
     @ Base path.jl:448
    abspath(::AbstractString)
     @ Base path.jl:614
    abspath(::AbstractString, AbstractString...)
     @ Base path.jl:468
  
  Stacktrace:
    [1] fixups_from_projectfile!(env::Pkg.Types.EnvCache)
      @ Pkg.Operations ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:229
    [2] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
      @ Pkg.Operations ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1661
    [3] add
      @ ~/work/Pkg.jl/Pkg.jl/src/Operations.jl:1631 [inlined]
    [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{julia_version::VersionNumber, io::IOStream})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:317
    [5] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOStream, kwargs::@Kwargs{julia_version::VersionNumber})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:164
    [6] add
      @ ~/work/Pkg.jl/Pkg.jl/src/API.jl:151 [inlined]
    [7] add(; name::String, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@Kwargs{julia_version::VersionNumber})
      @ Pkg.API ~/work/Pkg.jl/Pkg.jl/src/API.jl:181
    [8] add
      @ ~/work/Pkg.jl/Pkg.jl/src/API.jl:170 [inlined]
    [9] macro expansion
      @ ~/work/Pkg.jl/Pkg.jl/test/historical_stdlib_version.jl:245 [inlined]

@IanButterworth IanButterworth changed the title Expand HistoricalStdlibVersions tests Expand and consolidate HistoricalStdlibVersions tests Feb 10, 2025
@IanButterworth IanButterworth force-pushed the ib/more_hsv_tests branch 3 times, most recently from 627aea8 to 775f3a1 Compare February 10, 2025 04:25
@IanButterworth IanButterworth changed the title Expand and consolidate HistoricalStdlibVersions tests Fixes for julia_version. Expand and consolidate julia_version tests. Feb 11, 2025
@IanButterworth IanButterworth marked this pull request as ready for review February 11, 2025 05:06
libcxxwrap_julia_jll_UUID = Base.UUID("3eaa8342-bff7-56a5-9981-c04077f7cee7")
libblastrampoline_jll_UUID = Base.UUID("8e850b90-86db-534c-a0d3-1478176c7d93")

isolate(loaded_depot=true) do
Copy link
Member Author

Choose a reason for hiding this comment

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

Tests below this are new

@KristofferC
Copy link
Member

What's the status of using BB together with this and a new julia version?

@IanButterworth
Copy link
Member Author

Untested. @giordano do BB test run locally?

@giordano
Copy link
Member

Can't do it right now, but relevant tests are in https://github.com/JuliaPackaging/BinaryBuilderBase.jl, in particular the test/dependencies.jl file. That's (mostly) working up to Julia v1.10.

I'm happy to make adjustments in BBB if necessary, as long as there's some guarantee we have something stable to rely on (and tests in this PR should help).

@IanButterworth

This comment was marked as resolved.

@giordano

This comment was marked as resolved.

@IanButterworth

This comment was marked as resolved.

@giordano

This comment was marked as resolved.

@IanButterworth

This comment was marked as resolved.

@IanButterworth
Copy link
Member Author

@giordano @staticfloat I've requested review mainly for the stuff in test/historical_stdlib_version.jl.

@giordano
Copy link
Member

The fact that tests pass is very promising (they stopped passing at some point and I lost the energy to follow Pkg changes back then), but there are some things that I'm not sure are covered by BBB tests:

I'm just skimming through the binarybuilder label here.

@giordano
Copy link
Member

I need to look at it better, but this issue may have been solved by HistoricalStdlibVersions (which came several months afterwards after that ticket was opened), and it's good this PR adds more tests about it.

Comment on lines +234 to +235
# pkg.exts = p.exts # TODO: STDLIBS_BY_VERSION doesn't record this
# pkg.entryfile = p.entryfile # TODO: STDLIBS_BY_VERSION doesn't record this
Copy link
Member Author

Choose a reason for hiding this comment

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

@giordano giordano added the binarybuilder Related to the use of Pkg in BinaryBuilder label Feb 11, 2025
Comment on lines 274 to 275
@test isdir(src)
@test isfile(joinpath(src, "Artifacts.toml"))
Copy link
Member Author

Choose a reason for hiding this comment

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

These are both failing, so #2930 remains an issue

@IanButterworth
Copy link
Member Author

IanButterworth commented Feb 12, 2025

I've marked the #2930 broken tests as such. I'm proposing to merge this as is and I will continue to look into fixing #2930

Copy link
Member

@staticfloat staticfloat left a comment

Choose a reason for hiding this comment

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

This is great, thank you for taking this on, Ian!

Copy link
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

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

🚀

@IanButterworth IanButterworth merged commit 0333d55 into JuliaLang:master Feb 13, 2025
8 of 9 checks passed
@ket395 ket395 mentioned this pull request Mar 6, 2025
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
@KristofferC KristofferC mentioned this pull request Mar 31, 2025
7 tasks
@KristofferC KristofferC mentioned this pull request Mar 31, 2025
7 tasks
KristofferC pushed a commit that referenced this pull request Jun 11, 2025
KristofferC pushed a commit that referenced this pull request Jun 11, 2025
KristofferC added a commit that referenced this pull request Jun 11, 2025
… tests. (#4151)" (#4255)

Co-authored-by: KristofferC <[email protected]>
Fixes for julia_version. Expand and consolidate julia_version tests. (#4151)"
IanButterworth added a commit that referenced this pull request Jun 21, 2025
@IanButterworth IanButterworth mentioned this pull request Jun 21, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.10 binarybuilder Related to the use of Pkg in BinaryBuilder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants