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

Check CI on Julia v1.9.2 and v1.9.3 #1618

Closed
wants to merge 2 commits into from
Closed

Check CI on Julia v1.9.2 and v1.9.3 #1618

wants to merge 2 commits into from

Conversation

ranocha
Copy link
Member

@ranocha ranocha commented Aug 29, 2023

No description provided.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -13.69% ⚠️

Comparison is base (e22b11e) 96.14% compared to head (e7b5abc) 82.45%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1618       +/-   ##
===========================================
- Coverage   96.14%   82.45%   -13.69%     
===========================================
  Files         414      414               
  Lines       33942    33900       -42     
===========================================
- Hits        32633    27951     -4682     
- Misses       1309     5949     +4640     
Flag Coverage Δ
unittests 82.45% <ø> (-13.69%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 99 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ranocha ranocha changed the title Check CI on Julia v1.9.2 Check CI on Julia v1.9.2 and v1.9.3 Aug 30, 2023
@andrewwinters5000 andrewwinters5000 linked an issue Aug 30, 2023 that may be closed by this pull request
@ranocha
Copy link
Member Author

ranocha commented Aug 30, 2023

I can reproduce the allocation test failures

locally only with julia --check-bounds=yes - not with default settings

@ranocha
Copy link
Member Author

ranocha commented Aug 30, 2023

Reduced example:

Julia v1.9.3 default:

julia> struct BroadcastRef end

julia> Base.broadcastable(b::BroadcastRef) = Ref(b)

julia> struct BroadcastTuple end

julia> Base.broadcastable(b::BroadcastTuple) = (b,)

julia> foo(a, _) = a
foo (generic function with 1 method)

julia> function test(arg)
           n = 4
           dst = rand(n, n)
           src = rand(n, n)
           @allocated begin
               @. dst = foo(src, arg)
           end
       end
test (generic function with 1 method)

julia> test(BroadcastRef()), test(BroadcastTuple())
(0, 0)

Julia v1.9.3 with --check-bounds=yes:

julia> struct BroadcastRef end

julia> Base.broadcastable(b::BroadcastRef) = Ref(b)

julia> struct BroadcastTuple end

julia> Base.broadcastable(b::BroadcastTuple) = (b,)

julia> foo(a, _) = a
foo (generic function with 1 method)

julia> function test(arg)
           n = 4
           dst = rand(n, n)
           src = rand(n, n)
           @allocated begin
               @. dst = foo(src, arg)
           end
       end
test (generic function with 1 method)

julia> test(BroadcastRef()), test(BroadcastTuple())
(8, 0)

@sloede
Copy link
Member

sloede commented Aug 30, 2023

Wow! That sounds like a non-trivial MWE to create! I just confirmed:

Julia v1.9.2 with --check-bounds=yes:

julia> struct BroadcastRef end

julia> Base.broadcastable(b::BroadcastRef) = Ref(b)

julia> struct BroadcastTuple end

julia> Base.broadcastable(b::BroadcastTuple) = (b,)

julia> foo(a, _) = a
foo (generic function with 1 method)

julia> function test(arg)
           n = 4
           dst = rand(n, n)
           src = rand(n, n)
           @allocated begin
               @. dst = foo(src, arg)
           end
       end
test (generic function with 1 method)

julia> test(BroadcastRef()), test(BroadcastTuple())
(0, 0)

This confirms that is a regression since v1.9.2. If you report it, can you ping me please?

@ranocha
Copy link
Member Author

ranocha commented Aug 30, 2023

Wow! That sounds like a non-trivial MWE to create!

Oh yes... it took me quite some time to get there 🙈

@DanielDoehring
Copy link
Contributor

Interesting that our tests seem to catch more than the ones of the original Julia projects 😳

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