Skip to content

Revert delete of settings.xml (#2) #173

Revert delete of settings.xml (#2)

Revert delete of settings.xml (#2) #173

Workflow file for this run

name: Maven Package
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install prerequisites
run:
sudo
DEBIAN_FRONTEND=noninteractive
apt-get -y --no-install-recommends install
siege
- uses: actions/checkout@v2
- name: Checkout utils
uses: actions/checkout@v2
with:
repository: CRaC/utils
path: utils
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: mvn -s settings.xml -B package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test on Vanila JDK
run: |
P=$(utils/start-bg.sh \
-s "Started Application" \
java -jar target/spring-boot-0.0.1-SNAPSHOT.jar)
curl -X POST -H "Content-Type: text/plain" -d "$(<example.xml)" localhost:8080/transform | grep "My Article"
utils/bench.sh -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
kill $P
- name: Download JDK
run: |
utils/download-jdk.sh
sudo tar -axf jdk14-crac.tar.gz
- name: Prepare warm checkpoint
run: |
P=$(utils/start-bg.sh \
-s "Started Application" \
-e exitcode \
jdk14-crac/bin/java \
-XX:CRaCCheckpointTo=cr \
-XX:+UnlockDiagnosticVMOptions \
-XX:+CRTraceStartupTime \
-Djdk.crac.trace-startup-time=true \
-jar target/spring-boot-0.0.1-SNAPSHOT.jar)
# warmup the service
utils/bench.sh -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
jcmd $P JDK.checkpoint
[ 137 = $(utils/read-exitcode.sh exitcode) ]
- name: Test on C/RaC
run: |
P=$(utils/start-bg.sh \
-s "restore-finish" \
jdk14-crac/bin/java -XX:CRaCRestoreFrom=cr)
curl -X POST -H "Content-Type: text/plain" -d "$(<example.xml)" localhost:8080/transform | grep "My Article"
utils/bench.sh -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
kill $P
- name: Test C/RaC startup time
run:
timeout 3 bash -c "jdk14-crac/lib/javatime ; jdk14-crac/bin/java -XX:CRaCRestoreFrom=cr"
| utils/sel.awk -v from=prestart -v to=restore-finish