Short Performance Test #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for triggering tests/quick_performance | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 22 * * *' | |
name: Short Performance Test | |
jobs: | |
quick-performance: | |
runs-on: self-hosted | |
timeout-minutes: 1440 | |
steps: | |
- name: Clean | |
run: rm -rf ${GITHUB_WORKSPACE}/* | |
- name: Checkout rocksdb | |
uses: actions/checkout@v4 | |
with: | |
repository: facebook/rocksdb | |
ref: v7.0.2 | |
path: rocksdb | |
- name: Checkout zenfs | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: rocksdb/plugin/zenfs | |
- name: DEBUG | |
run: | | |
echo $BDEV0 | |
- name: Build RocksDB docker image | |
run: | | |
podman build --cgroup-manager cgroupfs \ | |
-t rocksdb-zenfs \ | |
-f rocksdb/plugin/zenfs/.github/workflows/containerfiles/Dockerfile.rocksdb-zenfs \ | |
--build-arg LIBZBD_GIT_CHECKOUT=v2.0.2 \ | |
--build-arg ROCKSDB_DEBUG_LEVEL=0 \ | |
. | |
- name: RocksDB mkfs zenfs | |
run: | | |
podman run --rm -i --device /dev/${BDEV0} \ | |
rocksdb-zenfs \ | |
bash -c "zenfs mkfs --zbd ${BDEV0} --aux_path /tmp/zenfs-aux --force" | |
- name: Run short performance test | |
run: | | |
podman run --rm -i --device /dev/${BDEV0} \ | |
--security-opt unmask=/sys/dev/block \ | |
rocksdb-zenfs \ | |
bash -c "FS_PARAMS=--fs-uri=zenfs://dev:${BDEV0} PLUGIN_HOST=rocksdb TOOLS_DIR=/rocks/dest/bin ZENFS_DIR=/rocks/dest/bin OUTPUT_DIR=/rocks/work/results DB_BENCH_EXTRA_PARAMS=$(/rocks/dest/zenfs/test/get_good_db_bench_params_for_zenfs.sh ${BDEV0}) /rocks/dest/zenfs/test/run.sh rocksdb-zenfs-$(date -Iminutes --utc)-$(uuidgen) quick_performance" | |
# TODO: Collect results | |
# - name: Collect Results | |
# run: cd harness && make NO_VAGRANT=1 upload | |
# if: always() | |
- name: Remove images | |
run: podman rmi --force --all | |
if: always() |