Skip to content

Added sketch to the burst estimation #55

Added sketch to the burst estimation

Added sketch to the burst estimation #55

Workflow file for this run

name: examples
permissions: read-all
on: [ push, pull_request ]
env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
MAX_JVM: 18
jobs:
examples:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 18 ]
env:
JAVA_VERSION: ${{ matrix.java }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@dd2c410b088af7c0dc8046f3ac9a8f4148492a95
with:
egress-policy: audit
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: Wandalen/wretry.action@v1.0.20
timeout-minutes: 5
with:
action: actions/setup-java@v3
with: |
distribution: temurin
java-version: ${{ matrix.java }}
attempt_limit: 3
attempt_delay: 2000
- name: Setup Gradle
uses: Wandalen/wretry.action@v1.0.20
timeout-minutes: 5
with:
action: gradle/gradle-build-action@v2
with: |
cache-read-only: false
generate-job-summary: false
arguments: help --daemon --no-scan
gradle-home-cache-strict-match: true
attempt_limit: 3
attempt_delay: 2000
- name: Setup Maven
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Simulator
run: >
./gradlew simulator:run
-Dcaffeine.simulator.report.output=$(pwd)/simulation.md
-Dcaffeine.simulator.files.paths.0="corda:trace_vaultservice.gz"
-Dcaffeine.simulator.files.paths.1="lirs:loop.trace.gz"
-Dcaffeine.simulator.files.paths.2="corda:trace_vaultservice.gz"
- name: Publish Simulator Results
if: matrix.java == env.MAX_JVM
run: |
{
echo '### Adaptivity'
echo '```'
cat $(pwd)/simulation.md
echo '```'
} >> $GITHUB_STEP_SUMMARY
- name: Chart Simulation
run: ./gradlew --daemon simulator:simulate --maximumSize=100,200,300
- name: Memory Overhead
run: ./gradlew --daemon caffeine:memoryOverhead
- name: Stresser (read)
run: >
timeout 1m ./gradlew --daemon caffeine:stress --workload=read
|| ([[ $? -eq 124 ]] && echo "Timeout reached, but that's OK")
- name: Stresser (write)
run: >
timeout 1m ./gradlew --daemon caffeine:stress --workload=write
|| ([[ $? -eq 124 ]] && echo "Timeout reached, but that's OK")
- name: Stresser (refresh)
run: >
timeout 1m ./gradlew --daemon caffeine:stress --workload=refresh
|| ([[ $? -eq 124 ]] && echo "Timeout reached, but that's OK")
- name: Write-behind (rxjava)
working-directory: examples/write-behind-rxjava
run: mvn test
- name: Coalescing Bulkloader
working-directory: examples/coalescing-bulkloader
run: mvn test