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

fix windows failure #197

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

willow-ahrens
Copy link

@willow-ahrens willow-ahrens commented Jan 8, 2025

fixes a windows failure due to asserting Int64 when the architecture may be Int32

 ERROR: LoadError: TaskFailedException

    nested task error: LoadError: MethodError: Cannot `convert` an object of type 
      Base.RefValue{Int32} to an object of type 
      Base.RefValue{Int64}
    
    Closest candidates are:
      convert(::Type{T}, ::T) where T
       @ Base Base.jl:84
      Base.RefValue{T}(::Any) where T
       @ Base refvalue.jl:8
    
    Stacktrace:
      [1] TestItem(number::Base.RefValue{Int32}, name::String, id::String, tags::Vector{Symbol}, default_imports::Bool, setups::Vector{Any}, retries::Int32, timeout::Nothing, skip::Bool, failfast::Nothing, file::String, line::Int32, project_root::String, code::Expr, testsetups::Vector{TestSetup}, workerid::Base.RefValue{Int32}, testsets::Vector{Test.DefaultTestSet}, eval_number::Base.RefValue{Int32}, stats::Vector{ReTestItems.PerfStats}, scheduled_for_evaluation::ReTestItems.ScheduledForEvaluation)

fixes #198.

fixes a windows failure due to asserting Int64 when the architecture may be Int32

```
 ERROR: LoadError: TaskFailedException

    nested task error: LoadError: MethodError: Cannot `convert` an object of type 
      Base.RefValue{Int32} to an object of type 
      Base.RefValue{Int64}
    
    Closest candidates are:
      convert(::Type{T}, ::T) where T
       @ Base Base.jl:84
      Base.RefValue{T}(::Any) where T
       @ Base refvalue.jl:8
    
    Stacktrace:
      [1] TestItem(number::Base.RefValue{Int32}, name::String, id::String, tags::Vector{Symbol}, default_imports::Bool, setups::Vector{Any}, retries::Int32, timeout::Nothing, skip::Bool, failfast::Nothing, file::String, line::Int32, project_root::String, code::Expr, testsetups::Vector{TestSetup}, workerid::Base.RefValue{Int32}, testsets::Vector{Test.DefaultTestSet}, eval_number::Base.RefValue{Int32}, stats::Vector{ReTestItems.PerfStats}, scheduled_for_evaluation::ReTestItems.ScheduledForEvaluation)
```
Copy link
Collaborator

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

thanks!

@nickrobinson251 nickrobinson251 enabled auto-merge (squash) January 8, 2025 23:32
@willow-ahrens
Copy link
Author

I'd like to add windows CI to this PR to see if it works there, is that alright?

auto-merge was automatically disabled January 8, 2025 23:36

Head branch was pushed to by a user without write access

@nickrobinson251
Copy link
Collaborator

is that alright?

Yes, but let's only add it for a single Julia version (so we only add a single extra job).

@willow-ahrens
Copy link
Author

I'm not sure why all the other tests would fail here, but the tests on windows may indicate that some additional work is needed to support windows.

@nickrobinson251
Copy link
Collaborator

I'm not sure why all the other tests would fail here

Look like tests were broken by JuliaLogging/LoggingExtras.jl#94

I guess that means we should finally do #135 / #195

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.

ReTestItems fails on 32-bit Julia
2 participants