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

build: drop integration test config #1107

Merged
merged 12 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
jvm: temurin:1.11

- name: Compile all code with fatal warnings for Java 11, Scala 2.13 and Scala 3
run: sbt "clean ; +IntegrationTest/compile"
run: sbt "clean ; +compile; Test/compile; akka-projection-integration/Test/compile"

check-docs:
name: Check Docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
uses: scalacenter/sbt-dependency-submission@6807cf91e9dc7af7c314b988d56d928d5828605b
with:
modules-ignore: examples_2.13
configs-ignore: test It scala-tool scala-doc-tool
configs-ignore: test scala-tool scala-doc-tool
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
jvm: ${{ matrix.jvmName }}

- name: Run all integration tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "akka-projection-cassandra/It/test" ${{ matrix.extraOpts }}
run: sbt "akka-projection-cassandra-integration/test" ${{ matrix.extraOpts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
jvm: ${{ matrix.jvmName }}

- name: Run all integration tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "akka-projection-grpc-tests/It/test" ${{ matrix.extraOpts }}
run: sbt "akka-projection-grpc-integration/test" ${{ matrix.extraOpts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-jdbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Copy license acceptance
run: |-
cp container-license-acceptance.txt akka-projection-jdbc/src/it/resources/container-license-acceptance.txt
cp container-license-acceptance.txt akka-projection-jdbc-integration/src/test/resources/container-license-acceptance.txt

- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
Expand All @@ -51,7 +51,7 @@ jobs:
jvm: ${{ matrix.jvmName }}

- name: Run all integration tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "akka-projection-jdbc/It/test" ${{ matrix.extraOpts }}
run: sbt "akka-projection-jdbc-integration/test" ${{ matrix.extraOpts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
jvm: ${{ matrix.jvmName }}

- name: Run all integration tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "akka-projection-kafka-tests/It/test" ${{ matrix.extraOpts }}
run: sbt "akka-projection-kafka-integration/test" ${{ matrix.extraOpts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests-r2dbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Run integration tests with with Scala and Java ${{ matrix.jdkVersion }}
# -Dconf.resource=application-postgres.conf but it's the default through application.conf as well
run: |-
sbt akka-projection-r2dbc/IntegrationTest/test
sbt akka-projection-r2dbc-integration/test

test-r2dbc-yugabyte:
name: Run r2dbc tests with Yugabyte
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

- name: Run integration tests with with Scala and Java ${{ matrix.jdkVersion }}
run: |-
sbt -Dconfig.resource=application-yugabyte.conf akka-projection-r2dbc/IntegrationTest/test
sbt -Dconfig.resource=application-yugabyte.conf akka-projection-r2dbc-integration/test


test-r2dbc-h2:
Expand Down Expand Up @@ -143,4 +143,4 @@ jobs:

- name: Run integration tests with with Scala and Java ${{ matrix.jdkVersion }}
run: |-
sbt -Dconfig.resource=application-h2.conf akka-projection-r2dbc/IntegrationTest/test
sbt -Dconfig.resource=application-h2.conf akka-projection-r2dbc-integration/test
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-slick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Copy license acceptance
run: |-
cp container-license-acceptance.txt akka-projection-slick/src/it/resources/container-license-acceptance.txt
cp container-license-acceptance.txt akka-projection-slick-integration/src/test/resources/container-license-acceptance.txt

- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
Expand All @@ -51,7 +51,7 @@ jobs:
jvm: ${{ matrix.jvmName }}

- name: Run all integration tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "akka-projection-slick/It/test" ${{ matrix.extraOpts }}
run: sbt "akka-projection-slick-integration/test" ${{ matrix.extraOpts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ akka-projection-slick/src/it/resources/container-license-acceptance.txt
# attachments created by scripts/prepare-downloads.sh
akka-distributed-cluster-docs/src/main/paradox/attachments
akka-edge-docs/src/main/paradox/attachments
# needed for aggregate project, but should not be checked in
akka-projection-integration
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

package akka.projection.slick

import java.time.Instant
import java.util.UUID
import scala.concurrent.Await
import scala.concurrent.duration._
import akka.Done
import akka.actor.Scheduler
import akka.actor.testkit.typed.scaladsl.LogCapturing
Expand All @@ -30,7 +26,11 @@ import org.scalatest.wordspec.AnyWordSpecLike
import slick.basic.DatabaseConfig
import slick.jdbc.JdbcProfile

import java.time.Instant
import java.util.UUID
import scala.concurrent.Await
import scala.concurrent.ExecutionContext
import scala.concurrent.duration._

object SlickOffsetStoreSpec {

Expand Down
22 changes: 0 additions & 22 deletions akka-projection-slick/src/test/resources/logback-test.xml

This file was deleted.

Loading