From 60f2b8348616813fc3df7799ecff8d77663cc1e6 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Wed, 22 Feb 2023 09:59:13 +0100 Subject: [PATCH] move unstable nightly aeron builds into their own workflow (#202) --- .github/workflows/nightly-builds-aeron.yml | 70 ++++++++++++++++++++++ .github/workflows/nightly-builds.yml | 60 ------------------- 2 files changed, 70 insertions(+), 60 deletions(-) create mode 100644 .github/workflows/nightly-builds-aeron.yml diff --git a/.github/workflows/nightly-builds-aeron.yml b/.github/workflows/nightly-builds-aeron.yml new file mode 100644 index 0000000000..ebd16efb9e --- /dev/null +++ b/.github/workflows/nightly-builds-aeron.yml @@ -0,0 +1,70 @@ +name: Nightly Aeron Tests + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +permissions: {} + +jobs: + + pekko-artery-aeron-tests: + name: Pekko Artery Aeron Tests + runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko' + strategy: + fail-fast: false + matrix: + command: + - remote/test remote-tests/test + - cluster/test cluster-typed/test + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves + fetch-depth: 0 + + - name: Setup Java 11 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + + - name: Cache Coursier cache + uses: coursier/cache-action@v6.4.0 + + - name: Enable jvm-opts + run: cp .jvmopts-ci .jvmopts + + - name: sbt ${{ matrix.command }} + # note that this is not running any multi-jvm tests because multi-in-test=false + run: |- + sbt \ + -Djava.security.egd=file:/dev/./urandom \ + -Dpekko.remote.artery.transport=aeron-udp \ + -Dpekko.test.timefactor=2 \ + -Dpekko.actor.testkit.typed.timefactor=2 \ + -Dpekko.test.tags.exclude=gh-exclude,gh-exclude-aeron,timing \ + -Dpekko.test.multi-in-test=false \ + -Dpekko.cluster.assert=on \ + -Daeron.dir=/opt/volumes/media-driver \ + -Daeron.term.buffer.length=33554432 \ + clean ${{ matrix.command }} + + # comment out email actions until we have an email address to use (and we need to get INFRA to whitelist dawidd6/action-send-mail) + #- name: Email on failure + # if: ${{ failure() }} + # uses: dawidd6/action-send-mail@v3 + # with: + # server_address: smtp.gmail.com + # server_port: 465 + # username: ${{secrets.MAIL_USERNAME}} + # password: ${{secrets.MAIL_PASSWORD}} + # subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" + # to: akka.official@gmail.com + # from: Akka CI (GHActions) + # body: | + # Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! + # https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml index bd1f882078..68dcab914f 100644 --- a/.github/workflows/nightly-builds.yml +++ b/.github/workflows/nightly-builds.yml @@ -226,63 +226,3 @@ jobs: # body: | # Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! # https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} - - pekko-artery-aeron-tests: - name: Pekko Artery Aeron Tests - runs-on: ubuntu-20.04 - if: github.repository == 'apache/incubator-pekko' - strategy: - fail-fast: false - matrix: - command: - - remote/test remote-tests/test - - cluster/test cluster-typed/test - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves - fetch-depth: 0 - - - name: Setup Java 11 - uses: actions/setup-java@v3 - with: - distribution: temurin - java-version: 11 - - - name: Cache Coursier cache - uses: coursier/cache-action@v6.4.0 - - - name: Enable jvm-opts - run: cp .jvmopts-ci .jvmopts - - - name: sbt ${{ matrix.command }} - # note that this is not running any multi-jvm tests because multi-in-test=false - run: |- - sbt \ - -Djava.security.egd=file:/dev/./urandom \ - -Dpekko.remote.artery.transport=aeron-udp \ - -Dpekko.test.timefactor=2 \ - -Dpekko.actor.testkit.typed.timefactor=2 \ - -Dpekko.test.tags.exclude=gh-exclude,gh-exclude-aeron,timing \ - -Dpekko.test.multi-in-test=false \ - -Dpekko.cluster.assert=on \ - -Daeron.dir=/opt/volumes/media-driver \ - -Daeron.term.buffer.length=33554432 \ - clean ${{ matrix.command }} - - # comment out email actions until we have an email address to use (and we need to get INFRA to whitelist dawidd6/action-send-mail) - #- name: Email on failure - # if: ${{ failure() }} - # uses: dawidd6/action-send-mail@v3 - # with: - # server_address: smtp.gmail.com - # server_port: 465 - # username: ${{secrets.MAIL_USERNAME}} - # password: ${{secrets.MAIL_PASSWORD}} - # subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" - # to: akka.official@gmail.com - # from: Akka CI (GHActions) - # body: | - # Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! - # https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}