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

nightly tests with pekko 1.0 #187

Merged
merged 4 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all 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/integration-tests-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,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 {} \;
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-jdbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- { java-version: 8, scala-version: 2.13, sbt-opts: '' }
- { java-version: 11, scala-version: 2.13, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { java-version: 8, scala-version: 2.12, sbt-opts: '' }
- { java-version: 11, scala-version: 2.12, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { java-version: 8, scala-version: 3.3, sbt-opts: '' }
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -52,4 +52,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/integration-tests-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,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/integration-tests-slick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,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 {} \;
56 changes: 56 additions & 0 deletions .github/workflows/nightly-pekko-1.0-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Nightly Integration Tests for JDBC (Pekko 1.0.x)

on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:

jobs:
test:
name: Build and Test Integration for JDBC
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- { java-version: 8, scala-version: 2.12, sbt-opts: '' }
- { java-version: 8, scala-version: 2.13, sbt-opts: '' }
- { java-version: 8, scala-version: 3.3, sbt-opts: '' }
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Checkout GitHub merge
if: github.event.pull_request
run: |-
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch

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

- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: temurin

- name: Cache Coursier cache
uses: coursier/cache-action@v6

- name: Run all integration tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }}
run: |
sbt -Dpekko.build.pekko.version=1.0.x \
-Dpekko.build.pekko.connectors.version=1.0.x \
++${{ matrix.scala-version }} \
jdbc/IntegrationTest/test ${{ matrix.sbt-opts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
sourceDistName := "apache-pekko-projection"
sourceDistIncubating := false

ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo

lazy val core =
Expand Down
2 changes: 1 addition & 1 deletion project/PekkoConnectorsDependency.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ import com.github.pjfanning.pekkobuild.PekkoDependency
object PekkoConnectorsDependency extends PekkoDependency {
override val checkProject: String = "pekko-connectors-cassandra"
override val module: Option[String] = Some("connectors")
override val currentVersion: String = "1.0.2"
override val currentVersion: String = "1.1.0-M1"
}