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

Update check_zygote_type_stability()... #568

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

gnadt
Copy link
Contributor

@gnadt gnadt commented Mar 4, 2025

so that CI passes with Julia v1.10. Tested locally with Julia v1.10 & v1.11. Forces the expected type to be Vector{Union{Nothing, @NamedTuple{X::Matrix{Float64}}}} which is more robust for different package versions. There may be better solutions, but this seems to work.

so that CI passes with Julia v1.10. Tested locally with Julia v1.10 & v1.11. Forces the expected type to be `Vector{Union{Nothing, @NamedTuple{X::Matrix{Float64}}}}` which is more robust for different package versions. There may be better solutions, but this seems to work.
@gnadt
Copy link
Contributor Author

gnadt commented Mar 4, 2025

The docs build failure is addressed in #566

@willtebbutt
Copy link
Member

I think it's a shame that we need to do this, but if @theogf is happy for it to be merged into his branch, I'm also happy for it to go in, as the lack of robustness of our AD tests is a real problem.

@theogf theogf deleted the branch JuliaGaussianProcesses:tgf/flexible-tests March 5, 2025 17:34
@theogf theogf closed this Mar 5, 2025
@theogf
Copy link
Member

theogf commented Mar 5, 2025

Ah sorry, I did not realize you were targeting my branch...

@theogf theogf reopened this Mar 5, 2025
@theogf theogf merged commit 6e7d2be into JuliaGaussianProcesses:tgf/flexible-tests Mar 5, 2025
23 of 25 checks passed
theogf added a commit that referenced this pull request Mar 5, 2025
* make allocs tests easier

* replace nightly by lts

* move Zygote to broken with ReverseDiff

* Update check_zygote_type_stability()... (#568)

so that CI passes with Julia v1.10. Tested locally with Julia v1.10 & v1.11. Forces the expected type to be `Vector{Union{Nothing, @NamedTuple{X::Matrix{Float64}}}}` which is more robust for different package versions. There may be better solutions, but this seems to work.

---------

Co-authored-by: Albert R. Gnadt <20693045+gnadt@users.noreply.github.com>
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.89%. Comparing base (8cd6390) to head (aeeefc1).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           tgf/flexible-tests     #568       +/-   ##
=======================================================
+ Coverage                0.28%   48.89%   +48.61%     
=======================================================
  Files                      52       52               
  Lines                    1421     1446       +25     
=======================================================
+ Hits                        4      707      +703     
+ Misses                   1417      739      -678     

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

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