From 25798ccc84a836688cd9d9580c55578d8a3c5599 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Apr 2024 19:44:31 +0200 Subject: [PATCH 1/4] run nightly pekko 1.1 tests --- .github/workflows/checks.yml | 1 - .github/workflows/h2-test.yml | 3 +- .github/workflows/mysql-tests.yml | 1 - .github/workflows/nightly-pekko-1.1-tests.yml | 53 +++++++++++++++++++ .github/workflows/oracle-tests.yml | 1 - .github/workflows/postgres-tests.yml | 1 - .github/workflows/sqlserver-tests.yml | 1 - build.sbt | 1 + 8 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/nightly-pekko-1.1-tests.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3edacb4d..ee9f135b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/h2-test.yml b/.github/workflows/h2-test.yml index 1b059774..dd39a805 100644 --- a/.github/workflows/h2-test.yml +++ b/.github/workflows/h2-test.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: @@ -47,7 +46,7 @@ jobs: uses: coursier/cache-action@v6 - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} - run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} + run: sbt -Dpekko.build.pekko.version=main "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} - name: Print logs on failure if: ${{ failure() }} diff --git a/.github/workflows/mysql-tests.yml b/.github/workflows/mysql-tests.yml index d6c40f55..c5c8c704 100644 --- a/.github/workflows/mysql-tests.yml +++ b/.github/workflows/mysql-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/nightly-pekko-1.1-tests.yml b/.github/workflows/nightly-pekko-1.1-tests.yml new file mode 100644 index 00000000..ccfc45a1 --- /dev/null +++ b/.github/workflows/nightly-pekko-1.1-tests.yml @@ -0,0 +1,53 @@ +name: H2 Unit Tests + +permissions: {} + +on: + pull_request: + push: + branches: + - main + tags-ignore: [ v.* ] + +jobs: + test: + name: Build and Test + 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: '' } + - { java-version: 11, scala-version: 2.12, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } + - { java-version: 11, scala-version: 2.13, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } + - { java-version: 11, scala-version: 3.3, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } + 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: Setup JDK ${{ matrix.java-version }} + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ matrix.java-version }} + + - name: Cache Coursier cache + uses: coursier/cache-action@v6 + + - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} + run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} + + - name: Print logs on failure + if: ${{ failure() }} + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/oracle-tests.yml b/.github/workflows/oracle-tests.yml index f6a33d7a..1c6e62d0 100644 --- a/.github/workflows/oracle-tests.yml +++ b/.github/workflows/oracle-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/postgres-tests.yml b/.github/workflows/postgres-tests.yml index 05950a92..5568e9ba 100644 --- a/.github/workflows/postgres-tests.yml +++ b/.github/workflows/postgres-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/sqlserver-tests.yml b/.github/workflows/sqlserver-tests.yml index a8e6911c..c7dfa0ed 100644 --- a/.github/workflows/sqlserver-tests.yml +++ b/.github/workflows/sqlserver-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/build.sbt b/build.sbt index e46f85e0..cadbfa2f 100644 --- a/build.sbt +++ b/build.sbt @@ -18,6 +18,7 @@ sourceDistIncubating := false val mimaCompareVersion = "1.0.0" +ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo lazy val `pekko-persistence-jdbc` = project From 8f783799c772d3fab63b2cb226cef9580f126fec Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Apr 2024 19:49:52 +0200 Subject: [PATCH 2/4] Update nightly-pekko-1.1-tests.yml --- .github/workflows/nightly-pekko-1.1-tests.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nightly-pekko-1.1-tests.yml b/.github/workflows/nightly-pekko-1.1-tests.yml index ccfc45a1..6f1c94ec 100644 --- a/.github/workflows/nightly-pekko-1.1-tests.yml +++ b/.github/workflows/nightly-pekko-1.1-tests.yml @@ -1,13 +1,11 @@ -name: H2 Unit Tests +name: Nightly Testing with Pekko 1.1 permissions: {} on: - pull_request: - push: - branches: - - main - tags-ignore: [ v.* ] + schedule: + - cron: "0 0 * * *" + workflow_dispatch: jobs: test: @@ -20,9 +18,6 @@ jobs: - { 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: '' } - - { java-version: 11, scala-version: 2.12, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } - - { java-version: 11, scala-version: 2.13, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } - - { java-version: 11, scala-version: 3.3, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } steps: - name: Checkout uses: actions/checkout@v4 From 896c92ebf40c9ffdd383019311775f9936fc62b5 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Apr 2024 19:53:49 +0200 Subject: [PATCH 3/4] -D on wrong yml --- .github/workflows/h2-test.yml | 2 +- .github/workflows/nightly-pekko-1.1-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/h2-test.yml b/.github/workflows/h2-test.yml index dd39a805..ccfc45a1 100644 --- a/.github/workflows/h2-test.yml +++ b/.github/workflows/h2-test.yml @@ -46,7 +46,7 @@ jobs: uses: coursier/cache-action@v6 - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} - run: sbt -Dpekko.build.pekko.version=main "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} + run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} - name: Print logs on failure if: ${{ failure() }} diff --git a/.github/workflows/nightly-pekko-1.1-tests.yml b/.github/workflows/nightly-pekko-1.1-tests.yml index 6f1c94ec..02dbe6cd 100644 --- a/.github/workflows/nightly-pekko-1.1-tests.yml +++ b/.github/workflows/nightly-pekko-1.1-tests.yml @@ -41,7 +41,7 @@ jobs: uses: coursier/cache-action@v6 - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} - run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} + run: sbt -Dpekko.build.pekko.version=main "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} - name: Print logs on failure if: ${{ failure() }} From 854abee80a5effeff9354e2c346fa5f5f1126665 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Apr 2024 19:58:11 +0200 Subject: [PATCH 4/4] run at 4am --- .github/workflows/nightly-pekko-1.1-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-pekko-1.1-tests.yml b/.github/workflows/nightly-pekko-1.1-tests.yml index 02dbe6cd..4e31f3dd 100644 --- a/.github/workflows/nightly-pekko-1.1-tests.yml +++ b/.github/workflows/nightly-pekko-1.1-tests.yml @@ -4,7 +4,7 @@ permissions: {} on: schedule: - - cron: "0 0 * * *" + - cron: "0 4 * * *" workflow_dispatch: jobs: