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

Downgrade CI #49

Merged
merged 2 commits into from
Dec 29, 2023
Merged

Downgrade CI #49

merged 2 commits into from
Dec 29, 2023

Conversation

ArnoStrouwen
Copy link
Member

No description provided.

@ArnoStrouwen
Copy link
Member Author

Regression?

@ChrisRackauckas
Copy link
Member

for i = 1:n
        #= /home/runner/work/MuladdMacro.jl/MuladdMacro.jl/test/runtests.jl:104 =#
        z = (muladd)(x, i, y)
        #= /home/runner/work/MuladdMacro.jl/MuladdMacro.jl/test/runtests.jl:105 =#
    end == for i = 1:n
        #= /home/runner/work/MuladdMacro.jl/MuladdMacro.jl/test/runtests.jl:107 =#
        z = (muladd)(x, i, y)
        #= /home/runner/work/MuladdMacro.jl/MuladdMacro.jl/test/runtests.jl:108 =#
    end

Is the regression in == on Expr?

@ArnoStrouwen
Copy link
Member Author

julia>     @test @macroexpand(@muladd f(x, y, z) = x * y + z) ==
                 :(f(x, y, z) = $(Base.muladd)(x, y, z))
Test Failed at REPL[29]:1
  Expression: #= REPL[29]:1 =# @macroexpand(#= REPL[29]:1 =# @muladd(f(x, y, z) = begin
                    #= REPL[29]:1 =#
                    x * y + z
                end)) == :(f(x, y, z) = begin
              #= REPL[29]:2 =#
              ($(Base.muladd))(x, y, z)
          end)
   Evaluated: (f(x, y, z) = begin
            #= REPL[29]:1 =#
            (muladd)(x, y, z)
        end) == (f(x, y, z) = begin
            #= REPL[29]:2 =#
            (muladd)(x, y, z)
        end)

@ChrisRackauckas
Copy link
Member

It was pointed out on Slack that it may be the line numbers? We can try stipping the line numbers before the comparison.

@ArnoStrouwen
Copy link
Member Author

Good to go now.

@ChrisRackauckas ChrisRackauckas merged commit a133c1c into SciML:master Dec 29, 2023
7 of 8 checks passed
@ArnoStrouwen ArnoStrouwen deleted the downgrade branch December 29, 2023 14:45
julia = "1.6"
Aqua = "0.8.4"
Test = "1.0.0"
julia = "1.10"
Copy link
Member

Choose a reason for hiding this comment

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

This change seems unnecessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ChrisRackauckas decided to move everything to Julia 1.10 as it is likely to be the new LTS.

Copy link
Member

Choose a reason for hiding this comment

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

I think such unnecessary Julia compat changes are quite unfortunate for utility packages such as MuladdMacro that are useful not only for SciML packages but the whole ecosystem.

Copy link
Member

Choose a reason for hiding this comment

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

It's somewhat easiest to just have everything on what will be the new LTS though. At least as we're rolling out the new Downgrade CI which is a surprisingly difficult thing to get right, keeping everything simple is best. I do agree that we could in theory make exceptions for something like this repo which effectively never changes though (though its tests actually needed a change for v1.10)

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.

3 participants