Skip to content

Fix doctest failure - #75

Merged
devmotion merged 2 commits into
JuliaDiff:masterfrom
cossio:deterministic_jldoctest
Dec 10, 2021
Merged

Fix doctest failure#75
devmotion merged 2 commits into
JuliaDiff:masterfrom
cossio:deterministic_jldoctest

Conversation

@cossio

Copy link
Copy Markdown
Contributor

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.
@cossiocossio mentioned this pull request Dec 10, 2021
@cossio

Copy link
Copy Markdown
ContributorAuthor

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

Comment threadsrc/api.jl Outdated
@codecov-commenter

Copy link
Copy Markdown

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 FilesCoverage Δ
src/api.jl54.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:masterDec 10, 2021
@devmotion

Copy link
Copy Markdown
Member

Thanks for the fix @cossio!

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

@cossio@codecov-commenter@devmotion