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 doctest failure #75

Merged
merged 2 commits into from
Dec 10, 2021
Merged

Fix doctest failure #75

merged 2 commits into from
Dec 10, 2021

Conversation

cossio
Copy link
Contributor

@cossio cossio commented Dec 10, 2021

The order in which DiffRules.diffrules() outputs things is not deterministic (because it depends on the order in which keys(..) returns things).

This means this jldoctest can fail:

julia> first(DiffRules.diffrules())
(:Base, :log2, 1)

Here we make it so that the output is deterministic.

The order in which DiffRules.diffrules() outputs things is not
deterministic.
This means this jldoctest can fail.
Here we make it so that the output is deterministic.
@cossio cossio mentioned this pull request Dec 10, 2021
@cossio
Copy link
Contributor Author

cossio commented Dec 10, 2021

The CI failures here might be related to the changes in Random in Julia 1.7?

src/api.jl Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #75 (05de036) into master (68cd4f2) will increase coverage by 1.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
+ Coverage   94.66%   95.74%   +1.07%     
==========================================
  Files           2        2              
  Lines         150      141       -9     
==========================================
- Hits          142      135       -7     
+ Misses          8        6       -2     
Impacted Files Coverage Δ
src/api.jl 54.54% <ø> (-10.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68cd4f2...05de036. Read the comment docs.

@devmotion devmotion merged commit b6301e8 into JuliaDiff:master Dec 10, 2021
@devmotion
Copy link
Member

Thanks for the fix @cossio!

@cossio cossio deleted the deterministic_jldoctest branch December 10, 2021 17:13
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