Build Test Akka Cluster Metrics with sigar library. (#30453)

This commit is contained in:
Raymond Roestenburg 2021-08-04 14:18:30 +02:00 committed by GitHub
parent 62cefddcc7
commit cdf54dcdf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,43 @@
name: Nightly Akka Cluster Metrics Test with Sigar
on:
schedule:
- cron: '0 0 * * *'
jobs:
sbt:
name: Test Akka Cluster Metrics
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
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: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8.0
- name: Test
run: |-
sbt -jvm-opts .jvmopts-ci \
-Djava.security.egd=file:/dev/./urandom \
-Dakka.test.sigar=true \
-Dakka.cluster.assert=on \
clean akka-cluster-metrics/test
- name: Email on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
# Using port 465 already sets `secure: true`
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: PRValidation Failed (Akka)
to: akka.official@gmail.com
from: Akka CI (GHActions)
body: |
Nightly Akka Cluster Metrics Test with Sigar of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

View file

@ -1,7 +1,6 @@
# This is used to configure the sbt instance that Travis launches
# This is used to configure the sbt instance that github actions launches
-Xms2G
-Xmx2G
-Xss2M
-XX:ReservedCodeCacheSize=256m

View file

@ -1,2 +1,3 @@
-J-Xmx3072M
-J-Xms1024M
-Dmultinode.XX:MetaspaceSize=128M