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

Ata 6069 connector leak upgrades #624

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

mineme0110
Copy link
Contributor

@mineme0110 mineme0110 commented Feb 1, 2022

Overview

Connector leaks connection when the stream is empty.
typelevel/fs2#2614 This PR fixes the bug in fs2.
To fix the version conflict on library added libraryDependencySchemes
unless there is another way to resolve the below is the error which is coming due to doobie version update 1.0.0-RC2

java.lang.RuntimeException: found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]
[error] * org.tpolecat:doobie-core_2.13:1.0.0-RC2 (early-semver) is selected over 0.13.4
[error] +- io.iohk:management-console_2.13:1.2-635c44f6 (depends on 1.0.0-RC2)
[error] +- io.iohk:common_2.13:1.2-635c44f6 (depends on 1.0.0-RC2)
[error] +- org.tpolecat:doobie-postgres_2.13:1.0.0-RC2 (depends on 1.0.0-RC2)
[error] +- org.tpolecat:doobie-hikari_2.13:1.0.0-RC2 (depends on 1.0.0-RC2)
[error] +- org.tpolecat:doobie-postgres-circe_2.13:1.0.0-RC2 (depends on 1.0.0-RC2)
[error] +- com.beachape:enumeratum-doobie_2.13:1.7.0 (depends on 0.13.4)
[error]
[error]
[error] this can be overridden using libraryDependencySchemes or evictionErrorLevel

Screenshots

Checklists

Pre-submit checklist:

  • Self-reviewed the diff
  • New code has proper comments/documentation/tests
  • Any changes not covered by tests have been tested manually
  • The README files are updated
  • If new libraries are included, they have licenses compatible with our project
  • If there is a db migration altering existing tables, there is a proper migration test

Pre-merge checklist:

  • Commits have useful messages
  • Review clarifications made it into the code

…leak

Signed-off-by: Shailesh <shailesh.patil@iohk.io>
Signed-off-by: Shailesh <shailesh.patil@iohk.io>
@mineme0110 mineme0110 requested review from a team, loverdos and atala-dev and removed request for a team February 1, 2022 16:51
@mineme0110 mineme0110 requested a review from AlexITC February 1, 2022 16:52
Signed-off-by: Shailesh <shailesh.patil@iohk.io>
@github-actions
Copy link

github-actions bot commented Feb 1, 2022

Unit Test Results

  94 files  ±0    94 suites  ±0   1m 25s ⏱️ +4s
739 tests ±0  738 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit 613b792. ± Comparison against base commit 635c44f.

@@ -154,6 +157,7 @@ object Dependencies {
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion
)
val overrideVersionSchemes = libraryDependencySchemes += "org.tpolecat" %% "doobie-core" % VersionScheme.Always
Copy link

Choose a reason for hiding this comment

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

Can you explain why we need this?

Copy link
Contributor Author

@mineme0110 mineme0110 Feb 1, 2022

Choose a reason for hiding this comment

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

@AlexITC I tried explained in the PR description but maybe not provided full context
There 1.0.0-RC2 is incompatible because sbt Versioning is added
https://github.com/lloydmeta/enumeratum/releases/tag/enumeratum-doobiev1.5.17 is still on 0.13.4 Doobie
But in Doobie 1.0.0-RC2 they have an update on strict sbt versioning, so it doesn't work I get the error described in tthe PR , enumeratum-doobie needs to have a release to fix this. I saw its on snaphot not released

lloydmeta/enumeratum@47c1e37

Copy link

Choose a reason for hiding this comment

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

I'd add a comment in this line to mention we are waiting for enumaratum to upgrade its doobie dependency.

Thanks for explaining.

@mineme0110 mineme0110 merged commit db68410 into master Feb 1, 2022
@mineme0110 mineme0110 deleted the ATA-6069-Connector-Leak-Upgrades branch February 1, 2022 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants