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

Increase Julia compat 1.3 #77

Merged
merged 3 commits into from
Dec 11, 2021
Merged

Increase Julia compat 1.3 #77

merged 3 commits into from
Dec 11, 2021

Conversation

cossio
Copy link
Contributor

@cossio cossio commented Dec 10, 2021

Increase Julia compat bound to 1.3. This is needed for #74.

Add CI testing on 1.3 (for consistency with compat) and 1.6 (LTS).

@cossio cossio mentioned this pull request Dec 10, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2021

Codecov Report

Merging #77 (c3e6ab3) into master (f46977e) will increase coverage by 1.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   95.74%   96.91%   +1.16%     
==========================================
  Files           2        3       +1     
  Lines         141      162      +21     
==========================================
+ Hits          135      157      +22     
+ Misses          6        5       -1     
Impacted Files Coverage Δ
src/rules.jl 100.00% <100.00%> (+0.76%) ⬆️
src/DiffRules.jl 100.00% <0.00%> (ø)
src/api.jl 84.37% <0.00%> (+29.82%) ⬆️

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 f46977e...c3e6ab3. Read the comment docs.

@mcabbott
Copy link
Member

Needs version bump, ideally to 1.7, after #76.

@cossio
Copy link
Contributor Author

cossio commented Dec 10, 2021

Needs version bump, ideally to 1.7, after #76.

Why do we need a new version when changing a dependency compat bound? This is not implying any change in the API of DiffRules. So why should we increase version here?

@mcabbott
Copy link
Member

Every release needs a new version. Not a breaking version, so it's more or less free.

And I think it's meant to be a minor version, not patch, in case you ever need to release a bugfix for an older version (although this is unlikely).

@cossio
Copy link
Contributor Author

cossio commented Dec 10, 2021

Every release needs a new version. Not a breaking version, so it's more or less free.

And I think it's meant to be a minor version, not patch, in case you ever need to release a bugfix for an older version (although this is unlikely).

Ok. But which PRs are you planning to tag as releases? Maybe we can bundle them together and just do one release?
Since you are already bumping version in #76, I don't need to do it here. DO you agree?

cossio added 2 commits December 11, 2021 15:36
Add CI testing on 1.3 (compat) and 1.6 (LTS).
@cossio
Copy link
Contributor Author

cossio commented Dec 11, 2021

Every release needs a new version. Not a breaking version, so it's more or less free.

And I think it's meant to be a minor version, not patch, in case you ever need to release a bugfix for an older version (although this is unlikely).

Ah ok, I think I get it. I bumped the minor version, and rebased. This should be ready to go (as soon as tests pass).

@cossio
Copy link
Contributor Author

cossio commented Dec 11, 2021

The CI on Julia 1.7 is failing on Base.mod, by the way. And it seems to be a fault of the finitediff function used to test (I think the rule itself is fine). But that should be addressed in a separate PR.
Can we merge this?

@cossio
Copy link
Contributor Author

cossio commented Dec 11, 2021

Regarding the CI test on Julia v.17, see #78

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Looks good to me, but let's wait for @mcabbott's approval as well.

Can you also get rid of the branch in

if VERSION < v"0.7-"
@define_diffrule Base.atan2(x, y) = :( $y / ($x^2 + $y^2) ), :( -$x / ($x^2 + $y^2) )
else
? I think it's a good opportunity to remove it 🙂

@cossio
Copy link
Contributor Author

cossio commented Dec 11, 2021

Can you also get rid of the branch in

Done

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Let's wait for the tests and @mcabbott's approval.

@cossio
Copy link
Contributor Author

cossio commented Dec 11, 2021

Tests pass. @mcabbott do you agree to merge this?

@mcabbott mcabbott merged commit 0aa8c72 into JuliaDiff:master Dec 11, 2021
@cossio cossio deleted the compat branch December 11, 2021 19:05
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.

4 participants