-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (69 loc) · 2.65 KB
/
smoke-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
on:
push:
branches:
- master
pull_request:
branches:
- '**'
name: Quick Test
jobs:
smoke-test:
runs-on: self-hosted
steps:
- name: Clean
run: rm -rf ${GITHUB_WORKSPACE}/*
- name: Checkout build scripts
run: git clone ~/harness.git
- name: Checkout zbdbench for RocksDB
uses: actions/checkout@v2
with:
repository: westerndigitalcorporation/zbdbench
ref: v0.1.1
path: harness/rocksdb-context/zbdbench
- name: Checkout rocksdb
uses: actions/checkout@v2
with:
repository: facebook/rocksdb
ref: v7.0.2
path: harness/rocksdb-context/rocksdb
- name: Checkout zbdbench for TerarkDB
uses: actions/checkout@v2
with:
repository: westerndigitalcorporation/zbdbench
ref: v0.1.1
path: harness/terarkdb-context/zbdbench
- name: Checkout TerarkDB
uses: actions/checkout@v2
with:
repository: bytedance/terarkdb
ref: dev.1.4
path: harness/terarkdb-context/terarkdb
submodules: recursive
- name: Checkout zenfs for RocksDB
uses: actions/checkout@v2
with:
fetch-depth: 0
path: harness/rocksdb-context/rocksdb/plugin/zenfs
- name: Remove zenfs TerarkDB submodule
run: rm -rf harness/terarkdb-context/terarkdb/third-party/zenfs
- name: Checkout zenfs for TerarkDB
uses: actions/checkout@v2
with:
fetch-depth: 0
path: harness/terarkdb-context/terarkdb/third-party/zenfs
- name: Build RocksDB docker image
run: cd harness && st -o logs/make-rocksdb-image-$(uuidgen) -- make NO_VAGRANT=1 V=1 rocksdb-docker-image
- name: Build TerarkDB docker image
run: cd harness && st -o logs/make-terarkdb-image-$(uuidgen) -- make NO_VAGRANT=1 V=1 IMAGE=terarkdb terarkdb-docker-image
- name: Run smoke tests for RocksDB
run: cd harness && st --silent -o logs/make-rocksdb-smoke-$(uuidgen) -- disk-select --disk 1TB -- make NO_VAGRANT=1 results/zenfs-smoke.xml
- name: Run smoke tests for TerarkDB
run: cd harness && st --silent -o logs/make-tetarkdb-smoke-$(uuidgen) -- disk-select --disk 1TB -- make NO_VAGRANT=1 IMAGE=terarkdb results/zenfs-smoke.xml
- name: Run utils tests
run: cd harness && st --silent -o logs/make-utils -- disk-select --disk 1TB -- make NO_VAGRANT=1 results/zenfs-utils.xml
- name: Collect Results
run: cd harness && make NO_VAGRANT=1 upload
if: always()
- name: Remove images
run: podman rmi --force --all
if: always()