Skip to content

Commit

Permalink
Update to Akka 2.7.0-M1 (#685)
Browse files Browse the repository at this point in the history
* Update to Akka 2.7.0-M1
* and sbt 1.7.1
* and cleanup of scala versions in ci builds
* temporary deleteObject impl (real one to follow, see #686 )
  • Loading branch information
patriknw authored Sep 22, 2022
1 parent 0e00864 commit 362d8a7
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/h2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
fail-fast: false
matrix:
include:
- { java-version: adopt@1.8, scala-version: 2.12.16, sbt-opts: '' }
- { java-version: adopt@1.8, scala-version: 2.13.8, sbt-opts: '' }
- { java-version: adopt@1.11.0-9, scala-version: 2.12.16, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { java-version: adopt@1.11.0-9, scala-version: 2.13.8, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { java-version: adopt@1.8, scala-version: 2.12.x, sbt-opts: '' }
- { java-version: adopt@1.8, scala-version: 2.13.x, sbt-opts: '' }
- { java-version: adopt@1.11.0-9, scala-version: 2.12.x, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { java-version: adopt@1.11.0-9, scala-version: 2.13.x, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -45,4 +45,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
2 changes: 1 addition & 1 deletion .github/workflows/mysql-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: ./scripts/launch-mysql.sh

- name: Run Integration tests for ${{ matrix.name }}
run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.MySQL*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
run: sbt "It/testOnly akka.persistence.jdbc.integration.MySQL*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oracle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: ./scripts/launch-oracle.sh

- name: Run Integration tests for ${{ matrix.name }}
run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.Oracle*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
run: sbt "It/testOnly akka.persistence.jdbc.integration.Oracle*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgres-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: ./scripts/launch-postgres.sh

- name: Run Integration tests for ${{ matrix.name }}
run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.Postgres*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
run: sbt "It/testOnly akka.persistence.jdbc.integration.Postgres*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
chmod 600 .github/id_rsa
ssh-keygen -p -P "$GUSTAV_PASSPHRASE" -N "" -f .github/id_rsa
ssh-add .github/id_rsa
sbt "++2.13.4 docs/publishRsync"
sbt "docs/publishRsync"
2 changes: 1 addition & 1 deletion .github/workflows/sqlserver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: ./scripts/launch-sqlserver.sh

- name: Run Integration tests for ${{ matrix.name }}
run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.SqlServer*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
run: sbt "It/testOnly akka.persistence.jdbc.integration.SqlServer*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class JdbcDurableStateStore[A](
def upsertObject(persistenceId: String, revision: Long, value: A, tag: String): CompletionStage[Done] =
toJava(scalaStore.upsertObject(persistenceId, revision, value, tag))

def deleteObject(persistenceId: String): CompletionStage[Done] =
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "1.0.0")
override def deleteObject(persistenceId: String): CompletionStage[Done] =
deleteObject(persistenceId, revision = 0)

override def deleteObject(persistenceId: String, revision: Long): CompletionStage[Done] =
toJava(scalaStore.deleteObject(persistenceId))

def currentChanges(tag: String, offset: Offset): Source[DurableStateChange[A], NotUsed] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,14 @@ class JdbcDurableStateStore[A](
}
}

def deleteObject(persistenceId: String): Future[Done] =
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "5.2.0")
override def deleteObject(persistenceId: String): Future[Done] =
deleteObject(persistenceId, revision = 0)

override def deleteObject(persistenceId: String, revision: Long): Future[Done] = {
// FIXME #686 use revision
db.run(queries.deleteFromDb(persistenceId).map(_ => Done))
}

def currentChanges(tag: String, offset: Offset): Source[DurableStateChange[A], NotUsed] = {
Source
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ object Dependencies {
// Keep in sync with .travis.yml
val Scala212 = "2.12.16"
val Scala213 = "2.13.8"
val ScalaVersions = Seq(Scala212, Scala213)
val ScalaVersions = Seq(Scala213, Scala212)

val AkkaVersion = "2.6.16"
val AkkaVersion = "2.7.0-M1"
val AkkaBinaryVersion = AkkaVersion.take(3)

val SlickVersion = "3.4.1"
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright 2016 Dennis Vriend
# Copyright (C) 2019 - 2022 Lightbend Inc. <https://www.lightbend.com>
#
sbt.version=1.6.2
sbt.version=1.7.1

0 comments on commit 362d8a7

Please sign in to comment.