|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# license agreements; and to You under the Apache License, version 2.0: |
| 3 | +# |
| 4 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 5 | +# |
| 6 | +# This file is part of the Apache Pekko project, which was derived from Akka. |
| 7 | +# |
| 8 | + |
| 9 | +name: Nightly Builds (1.1) |
| 10 | + |
| 11 | +on: |
| 12 | + schedule: |
| 13 | + - cron: "0 0 * * *" |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +permissions: {} |
| 17 | + |
| 18 | +jobs: |
| 19 | + pekko-cluster-metrics-sigar: |
| 20 | + name: Pekko Cluster Metrics Test with Sigar |
| 21 | + runs-on: ubuntu-22.04 |
| 22 | + if: github.repository == 'apache/pekko' |
| 23 | + steps: |
| 24 | + - name: Checkout |
| 25 | + uses: actions/checkout@v4 |
| 26 | + with: |
| 27 | + fetch-depth: 0 |
| 28 | + fetch-tags: true |
| 29 | + ref: 1.1.x |
| 30 | + |
| 31 | + - name: Setup Java 11 |
| 32 | + uses: actions/setup-java@v4 |
| 33 | + with: |
| 34 | + distribution: temurin |
| 35 | + java-version: 11 |
| 36 | + |
| 37 | + - name: Install sbt |
| 38 | + uses: sbt/setup-sbt@v1 |
| 39 | + |
| 40 | + - name: Cache Coursier cache |
| 41 | + uses: coursier/cache-action@v6 |
| 42 | + |
| 43 | + - name: Enable jvm-opts |
| 44 | + run: cp .jvmopts-ci .jvmopts |
| 45 | + |
| 46 | + - name: sbt cluster-metrics/test |
| 47 | + env: |
| 48 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} |
| 49 | + run: |- |
| 50 | + sbt \ |
| 51 | + -Djava.security.egd=file:/dev/./urandom \ |
| 52 | + -Dpekko.test.sigar=true \ |
| 53 | + -Dpekko.cluster.assert=on \ |
| 54 | + -Dpekko.test.timefactor=2 \ |
| 55 | + -Dpekko.actor.testkit.typed.timefactor=2 \ |
| 56 | + -Dpekko.test.tags.exclude=gh-exclude,timing \ |
| 57 | + -Dpekko.log.timestamps=true \ |
| 58 | + -Dmultinode.XX:MetaspaceSize=128M \ |
| 59 | + -Dmultinode.Xms256M \ |
| 60 | + -Dmultinode.Xmx256M \ |
| 61 | + -Dmultinode.Xlog:gc \ |
| 62 | + -Dmultinode.XX:+AlwaysActAsServerClassMachine \ |
| 63 | + clean cluster-metrics/test |
| 64 | +
|
| 65 | + pekko-classic-remoting-tests: |
| 66 | + name: Pekko Classic Remoting Tests |
| 67 | + runs-on: ubuntu-22.04 |
| 68 | + if: github.repository == 'apache/pekko' |
| 69 | + strategy: |
| 70 | + fail-fast: false |
| 71 | + matrix: |
| 72 | + command: |
| 73 | + - cluster/test distributed-data/test cluster-tools/test cluster-metrics/test |
| 74 | + - cluster-sharding/test |
| 75 | + - cluster-typed/test cluster-sharding-typed/test |
| 76 | + steps: |
| 77 | + - name: Checkout |
| 78 | + uses: actions/checkout@v4 |
| 79 | + with: |
| 80 | + # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves |
| 81 | + fetch-depth: 0 |
| 82 | + fetch-tags: true |
| 83 | + ref: 1.0.x |
| 84 | + |
| 85 | + - name: Setup Java 11 |
| 86 | + uses: actions/setup-java@v4 |
| 87 | + with: |
| 88 | + distribution: temurin |
| 89 | + java-version: 11 |
| 90 | + |
| 91 | + - name: Install sbt |
| 92 | + uses: sbt/setup-sbt@v1 |
| 93 | + |
| 94 | + - name: Cache Coursier cache |
| 95 | + uses: coursier/cache-action@v6 |
| 96 | + |
| 97 | + - name: Enable jvm-opts |
| 98 | + run: cp .jvmopts-ci .jvmopts |
| 99 | + |
| 100 | + - name: sbt ${{ matrix.command }} |
| 101 | + env: |
| 102 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} |
| 103 | + # note that this is not running any multi-jvm tests because multi-in-test=false |
| 104 | + run: |- |
| 105 | + sbt \ |
| 106 | + -Djava.security.egd=file:/dev/./urandom \ |
| 107 | + -Dpekko.remote.artery.enabled=off \ |
| 108 | + -Dpekko.test.timefactor=2 \ |
| 109 | + -Dpekko.actor.testkit.typed.timefactor=2 \ |
| 110 | + -Dpekko.test.tags.exclude=gh-exclude,timing \ |
| 111 | + -Dpekko.test.multi-in-test=false \ |
| 112 | + -Dpekko.cluster.assert=on \ |
| 113 | + clean ${{ matrix.command }} |
| 114 | +
|
| 115 | + jdk-nightly-build: |
| 116 | + name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }} |
| 117 | + runs-on: ubuntu-22.04 |
| 118 | + if: github.repository == 'apache/pekko' |
| 119 | + strategy: |
| 120 | + fail-fast: false |
| 121 | + matrix: |
| 122 | + # No need to specify the full Scala version. Only the Scala |
| 123 | + # binary version is required and Pekko build will set the right |
| 124 | + # full version from it. |
| 125 | + scalaVersion: ["2.12.x", "2.13.x", "3.3.x"] |
| 126 | + javaVersion: [8, 11, 17, 21] |
| 127 | + steps: |
| 128 | + - name: Checkout |
| 129 | + uses: actions/checkout@v4 |
| 130 | + with: |
| 131 | + fetch-depth: 0 |
| 132 | + fetch-tags: true |
| 133 | + ref: 1.0.x |
| 134 | + |
| 135 | + - name: Setup Java ${{ matrix.javaVersion }} |
| 136 | + uses: actions/setup-java@v4 |
| 137 | + with: |
| 138 | + distribution: temurin |
| 139 | + java-version: ${{ matrix.javaVersion }} |
| 140 | + |
| 141 | + - name: Install sbt |
| 142 | + uses: sbt/setup-sbt@v1 |
| 143 | + |
| 144 | + - name: Cache Coursier cache |
| 145 | + uses: coursier/cache-action@v6 |
| 146 | + |
| 147 | + - name: Enable jvm-opts |
| 148 | + run: cp .jvmopts-ci .jvmopts |
| 149 | + |
| 150 | + - name: Compile and Test |
| 151 | + env: |
| 152 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} |
| 153 | + # note that this is not running any multi-jvm tests because multi-in-test=false |
| 154 | + run: |- |
| 155 | + sbt \ |
| 156 | + -Dpekko.cluster.assert=on \ |
| 157 | + -Dpekko.log.timestamps=true \ |
| 158 | + -Dpekko.test.timefactor=2 \ |
| 159 | + -Dpekko.actor.testkit.typed.timefactor=2 \ |
| 160 | + -Dpekko.test.tags.exclude=gh-exclude,timing \ |
| 161 | + -Dpekko.test.multi-in-test=false \ |
| 162 | + clean "++ ${{ matrix.scalaVersion }} test" checkTestsHaveRun |
0 commit comments