-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: migrator-integration-test tests not running #191 #192
Conversation
...-test/src/test/scala/org/apache/pekko/persistence/jdbc/integration/JournalMigratorTest.scala
Outdated
Show resolved
Hide resolved
...test/src/test/scala/org/apache/pekko/persistence/jdbc/integration/SnapshotMigratorTest.scala
Outdated
Show resolved
Hide resolved
As far as I can see, the main issue is that the yml files for the GitHub workflows run
|
Seems like in SQLServer: JournalMigrator(SlickDatabase.profile(config, "slick")).migrate().futureValue shouldBe Done will complain:
|
...ion-test/src/test/scala/org/apache/pekko/persistence/jdbc/migrator/JournalMigratorTest.scala
Outdated
Show resolved
Hide resolved
...ntegration-test/src/test/scala/org/apache/pekko/persistence/jdbc/migrator/MigratorSpec.scala
Outdated
Show resolved
Hide resolved
...ntegration-test/src/test/scala/org/apache/pekko/persistence/jdbc/migrator/MigratorSpec.scala
Outdated
Show resolved
Hide resolved
...on-test/src/test/scala/org/apache/pekko/persistence/jdbc/migrator/SnapshotMigratorTest.scala
Outdated
Show resolved
Hide resolved
@Roiocam I want to release v1.1.0-M1 of this module within the next week or 2. Would it be possible just to enable the tests for the dbs where this currently works and for us to come back to the broken ones after the v1.1.0-M1 release? |
.../test/scala/org/apache/pekko/persistence/jdbc/migrator/integration/JournalMigratorTest.scala
Outdated
Show resolved
Hide resolved
@pjfanning This PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@pjfanning Thanks for the review, I also fix SQLServer tests, can you take a look again? |
thanks @Roiocam that sqlserver fix looks good. |
Motivation
Resolves: #191
Resolves in step by step
integration/testOnly
will be an issue or not.compile issue
migratorIntegration
should be depend onmigrator
✅package name issue & sbt task issue
sbt ++2.13 "clean; integration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*"
sbt ++2.13 "clean; testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*"
: doesn't run anythingsbt ++2.13 "clean; migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*"
: doesn't run anythingboth are unable to run
PostgresJournalMigratorTest
, both the package name and sbt tasksintegration/testOnly
have been verified to cause issues.verify the solution
sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*; migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.*"
works, but looks like very long. ✅sbt ++2.13 "integration/testOnly; migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*"
can not filter other RDBMB.