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

Adding tests for binary compat that can't be tested by Mima #2509

Merged
merged 6 commits into from
Sep 26, 2018

Conversation

kailuowang
Copy link
Contributor

I am trying to add automated tests to test binary compatibility at places that we had to add mima exceptions. The idea is based off @rossabaker 's feedback here.

At the moment, I couldn't get the tests to work properly. It passes even when I introduced BC breaking changes.

@rossabaker since you created a similar test before, would you help spot where I got things wrong here?
Thanks so much!

@@ -216,10 +216,10 @@ lazy val docSettings = Seq(
includeFilter in Jekyll := (includeFilter in makeSite).value
)

def mimaSettings(moduleName: String) = {
def mimaPrevious(moduleName: String, scalaVer: String, ver: String): List[ModuleID] = {
Copy link
Contributor Author

@kailuowang kailuowang Sep 17, 2018

Choose a reason for hiding this comment

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

Note for @rossabaker , no need to read these changes regarding change to mimaPreviousArtifacts change. For now I'm not using them and hard coded the two cats versions to test binary compat (1.2.0 and 1.3.0)

Update: No longer relevant.

@kailuowang kailuowang changed the title [WIP] Adding tests for binary compat that can't be tested by Mima Adding tests for binary compat that can't be tested by Mima Sep 18, 2018
@kailuowang
Copy link
Contributor Author

Turns out coursier needs be disabled for this test to work. (although I don't know the root cause)

LukaJCB
LukaJCB previously approved these changes Sep 24, 2018
build.sbt Outdated
@@ -494,6 +502,25 @@ lazy val bench = project.dependsOn(macrosJVM, coreJVM, freeJVM, lawsJVM)
))
.enablePlugins(JmhPlugin)


lazy val binCompactTest = project
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be binCompatTest (and also in the source folder)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops

@codecov-io
Copy link

codecov-io commented Sep 26, 2018

Codecov Report

Merging #2509 into master will decrease coverage by 0.18%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2509      +/-   ##
==========================================
- Coverage   95.38%   95.19%   -0.19%     
==========================================
  Files         357      359       +2     
  Lines        6528     6541      +13     
  Branches      278      281       +3     
==========================================
  Hits         6227     6227              
- Misses        301      314      +13
Impacted Files Coverage Δ
...actTest/src/main/scala/catsBC/MimaExceptions.scala 0% <0%> (ø)
...ats-core/src/main/scala/alleycats/std/future.scala 0% <0%> (ø)

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 236f028...fd87dc3. Read the comment docs.

@kailuowang kailuowang merged commit cc8919f into typelevel:master Sep 26, 2018
@kailuowang kailuowang deleted the bin-comp-test branch September 26, 2018 19:57
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