Skip to content

Add Function To Check All Relevant MiMa Versions#2265

Merged
kailuowang merged 3 commits into
typelevel:masterfrom
ChristopherDavenport:makeMimaMoreExhaustive
May 30, 2018
Merged

Add Function To Check All Relevant MiMa Versions#2265
kailuowang merged 3 commits into
typelevel:masterfrom
ChristopherDavenport:makeMimaMoreExhaustive

Conversation

@ChristopherDavenport
Copy link
Copy Markdown
Member

Removes Need for Manually Setting Binary Compatible Versions

Comment thread build.sbt Outdated
else List(minor)
val patchVersions: List[Int] =
if (minor == 0 || patch == 0) List.empty[Int]
else Range(0, patch - 1).inclusive.toList
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmmm, I wonder if this would work. Your patchVersions is derived from the current major.minor.patch range, but you don't know if your previous minor version's patch range right?
e.g. if the current version is 1.1.0, you wouldn't check against 1.0.1? or if the current version is 1.1.3-SNAPSHOT, your list would include 1.0.2 which doesn't exist. Another issue is that if either if the current patch is 0, you wouldn't check against anything, e.g. 1.2.0-SNAPSHOT wouldn't check mima, right?

Copy link
Copy Markdown
Member Author

@ChristopherDavenport ChristopherDavenport May 22, 2018

Choose a reason for hiding this comment

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

This is why I knew this would be the place. 😄
edit: Your right I could only check the .0 for min versions different than the current version.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 22, 2018

Codecov Report

Merging #2265 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2265   +/-   ##
=======================================
  Coverage   94.96%   94.96%           
=======================================
  Files         334      334           
  Lines        5801     5801           
  Branches      214      215    +1     
=======================================
  Hits         5509     5509           
  Misses        292      292

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 6353e99...31c9ebe. Read the comment docs.

Copy link
Copy Markdown
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

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

Looking good to me. Thanks!

Copy link
Copy Markdown
Member

@LukaJCB LukaJCB left a comment

Choose a reason for hiding this comment

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

👍

@kailuowang kailuowang merged commit f4722ac into typelevel:master May 30, 2018
@kailuowang kailuowang added this to the 1.2 milestone May 30, 2018
@ChristopherDavenport ChristopherDavenport deleted the makeMimaMoreExhaustive branch May 30, 2018 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants