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

We get an exception when another dependency upgrades Scalatest/Scalastic to 3.1.0 #30

Closed
tonicebrian opened this issue Jan 17, 2020 · 0 comments · Fixed by #31
Closed

Comments

@tonicebrian
Copy link
Contributor

We are using shex with these dependencies (Scala 2.12) :

        "es.weso" %% "shex" % "0.1.52" % Test,
        "es.weso" %% "srdf4j" % "0.1.52" % Test,

in Scio pipelines that ingest triples in our databases. We were using com.spotify" %% "scio-test" % "0.8.0-beta2" % Test and all tests for test validation are green and passing but the moment we bump to com.spotify" %% "scio-test" % "0.8.0" % Test we get this exception in all test that are about validating Shex and that were working OK:

[info] - should validate simple examples *** FAILED ***
[info]   java.lang.NullPointerException:
[info]   at es.weso.rbe.interval.IntLimit.<init>(IntOrUnbounded.scala:110)
[info]   at es.weso.shex.validator.Table$CTable$.max2IntOrUnbounded(Table.scala:178)
[info]   at es.weso.shex.validator.Table$CTable$.mkTableAux(Table.scala:160)
[info]   at es.weso.shex.validator.Table$CTable$.$anonfun$mkTableAux$2(Table.scala:112)
[info]   at scala.util.Either.flatMap(Either.scala:341)
[info]   at es.weso.shex.validator.Table$CTable$.comb$1(Table.scala:110)
[info]   at es.weso.shex.validator.Table$CTable$.$anonfun$mkTableAux$5(Table.scala:116)
[info]   at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
[info]   at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122)
[info]   at scala.collection.immutable.List.foldLeft(List.scala:89)

And looking at the offending code https://github.com/weso/shex-s/blob/master/modules/rbe/src/main/scala/es/weso/rbe/interval/IntOrUnbounded.scala#L110 it is in a function provided by scalastic that our dependency scio-test bumped from 3.0.8 to 3.1.0. So somehow that version bumping has a spurious interaction with the shex library but I weren't able to reproduce in downsized build.sbt (still trying).

Does this bug report rings any bell on you?

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 a pull request may close this issue.

1 participant