CI: Replace opaque test harness for short-performance #7
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
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- '**' | |
name: Quick Test (Debug) | |
jobs: | |
smoke-test-debug: | |
runs-on: nvme-zns | |
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 | |
#TODO: make device identifier variable | |
- 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/nvme0n1 \ | |
rocksdb-zenfs \ | |
bash -c "zenfs mkfs --zbd nvme0n1 --aux_path /tmp/zenfs-aux --force" | |
- name: Run smoke tests for RocksDB | |
run: | | |
podman run --cgroup-manager cgroupfs --rm -i --device /dev/nvme0n1 \ | |
rocksdb-zenfs \ | |
bash -c "FS_PARAMS=--fs-uri=zenfs://dev:nvme0n1 PLUGIN_HOST=rocksdb TOOLS_DIR=/rocks/dest/bin ZENFS_DIR=/rocks/dest/bin OUTPUT_DIR=/rocks/work/results /rocks/dest/zenfs/test/run.sh rocksdb-zenfs-$(date -Iminutes --utc)-$(uuidgen) smoke" | |
- name: Run utils tests | |
run: | | |
podman run --rm -i --device /dev/nvme0n1 \ | |
rocksdb-zenfs \ | |
bash -c "ZDEV=nvme0n1 FS_PARAMS=--fs_uri=zenfs://dev:nvme0n1 TOOLS_DIR=/rocks/dest/bin ZENFS_DIR=/rocks/dest/bin OUTPUT_DIR=/rocks/work/results /rocks/dest/zenfs/test/run.sh rocksdb-zenfs$(date -Iminutes --utc)-$(uuidgen) utils" | |
- name: Remove images | |
run: podman rmi --force --all | |
if: always() |