From 512b6a1ca86b14b707accd82d84027ef4f4a17d8 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 19 Jun 2026 15:53:51 +0100 Subject: [PATCH 1/2] [EXPERIMENT] run remote-tests based on recent tags --- .../workflows/binary-compatibility-checks.yml | 1 - .github/workflows/build-test-prValidation.yml | 2 +- .github/workflows/format.yml | 3 +- .github/workflows/generate-doc-check.yml | 2 +- .github/workflows/headers.yml | 2 +- .github/workflows/remote-test.yml | 68 +++++++++++++++++++ 6 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/remote-test.yml diff --git a/.github/workflows/binary-compatibility-checks.yml b/.github/workflows/binary-compatibility-checks.yml index 6d5ed8c930..27d45d3064 100644 --- a/.github/workflows/binary-compatibility-checks.yml +++ b/.github/workflows/binary-compatibility-checks.yml @@ -18,7 +18,6 @@ name: Binary Compatibility on: - pull_request: push: branches: - main diff --git a/.github/workflows/build-test-prValidation.yml b/.github/workflows/build-test-prValidation.yml index ec29951ff9..2c0c1b5bf3 100644 --- a/.github/workflows/build-test-prValidation.yml +++ b/.github/workflows/build-test-prValidation.yml @@ -9,7 +9,7 @@ name: Pull Requests on: - pull_request: + workflow_dispatch: permissions: {} diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index bc61de7269..b588b81279 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,8 +20,7 @@ name: Scalafmt permissions: {} on: - pull_request: - branches: ['**'] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/generate-doc-check.yml b/.github/workflows/generate-doc-check.yml index 9c9d6990ad..a1fe10dd6e 100644 --- a/.github/workflows/generate-doc-check.yml +++ b/.github/workflows/generate-doc-check.yml @@ -18,7 +18,7 @@ name: Generate doc check on: - pull_request: + workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml index cbf543b5c9..be158c5b44 100644 --- a/.github/workflows/headers.yml +++ b/.github/workflows/headers.yml @@ -18,7 +18,7 @@ name: Headers on: - pull_request: + workflow_dispatch: permissions: {} diff --git a/.github/workflows/remote-test.yml b/.github/workflows/remote-test.yml new file mode 100644 index 0000000000..f970ba2e52 --- /dev/null +++ b/.github/workflows/remote-test.yml @@ -0,0 +1,68 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + +name: Remote Test + +on: + workflow_dispatch: + pull_request: + +permissions: {} + +concurrency: + # Only run once for latest commit per ref and cancel other (previous) runs. + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + remote-test: + name: Check / Tests + runs-on: ubuntu-22.04 + strategy: + matrix: + scalaVersion: ["2.13.x"] + checkoutRef: ["v2.0.0-M2", "v2.0.0-M3", "x2.0.0-M4-RC0"] + steps: + - name: Checkout + uses: actions/checkout@v6.0.3 + with: + # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves + fetch-depth: 0 + fetch-tags: 0 + persist-credentials: false + ref: ${{ matrix.checkoutRef }} + + - name: Setup Java 17 + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: 17 + + - name: Install sbt + uses: sbt/setup-sbt@af116cce31c00823d3903ce687f9cda3a4f19f1b # v1.2.1 + + - name: Cache Coursier cache + uses: coursier/cache-action@95e5b1029b6b86e7bac033ee44a0697d8a527d2d # 8.1.1 + + - name: Enable jvm-opts + run: cp .jvmopts-ci .jvmopts + + - name: sbt remote/test + run: |- + sbt \ + -Dpekko.mima.enabled=false \ + -Dpekko.test.multi-in-test=false \ + -Dpekko.test.timefactor=2 \ + -Dpekko.actor.testkit.typed.timefactor=2 \ + -Dpekko.test.tags.exclude=gh-exclude,timing \ + -Dpekko.cluster.assert=on \ + -Dsbt.override.build.repos=false \ + -Dpekko.test.multi-node=false \ + -Dsbt.log.noformat=false \ + -Dpekko.log.timestamps=true \ + "++ ${{ matrix.scalaVersion }} remote/test" From bab7b6f72c41f4de5557041a8aaaba27c6425f10 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 19 Jun 2026 17:29:40 +0100 Subject: [PATCH 2/2] Update remote-test.yml --- .github/workflows/remote-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/remote-test.yml b/.github/workflows/remote-test.yml index f970ba2e52..4fd66a1389 100644 --- a/.github/workflows/remote-test.yml +++ b/.github/workflows/remote-test.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: scalaVersion: ["2.13.x"] - checkoutRef: ["v2.0.0-M2", "v2.0.0-M3", "x2.0.0-M4-RC0"] + checkoutRef: ["v2.0.0-M2", "v2.0.0-M3", "main"] steps: - name: Checkout uses: actions/checkout@v6.0.3