-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
80 lines (74 loc) · 1.91 KB
/
Jenkinsfile
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
pipeline {
agent {
docker {
image 'shisoft-rustup'
}
}
stages {
stage('Rust') {
steps {
sh '''source $HOME/.cargo/env
rustup default nightly
rustup update
cargo clean
cargo update'''
}
}
stage('Cargo build') {
steps {
sh 'cargo build'
}
}
stage('Build check') {
parallel {
stage('Build check') {
steps {
sh '''RUST_LOG=neb=warn
export RUST_BACKTRACE=full
cargo test -- --test-threads=1'''
}
}
stage('KV Parallel Stability') {
steps {
sh '''export RUST_LOG=neb=warn,
export RUST_BACKTRACE=full
export NEB_KV_SMOKE_TEST_ITEMS=5000000
cargo test --color=always --package neb --test tests server::smoke_test_parallel -- --exact'''
}
}
stage('KV Stability') {
steps {
sh '''export RUST_LOG=neb=warn,
export RUST_BACKTRACE=full
export NEB_KV_SMOKE_TEST_ITEMS=1500000
cargo test --color=always --package neb --test tests server::smoke_test -- --exact'''
}
}
stage('Bench') {
steps {
sh 'cargo bench'
}
}
stage('B-Plus Tree Stability') {
steps {
sh '''export RUST_LOG=neb::ram::cleaner,neb::index::btree::test
export RUST_BACKTRACE=full
export BTREE_TEST_ITEMS=100000
export NEB_CLEANER_SLEEP_INTERVAL_MS=1000
cargo test --package neb --lib index::btree::test::crd -- --exact
cargo test --package neb --lib index::btree::test::alternative_insertion_pattern -- --exact'''
}
}
stage('B-Plus Tree Parallel stability') {
steps {
sh '''export RUST_LOG=neb::ram::cleaner,neb::index::btree::test
export RUST_BACKTRACE=full
export BTREE_TEST_ITEMS=100000
export NEB_CLEANER_SLEEP_INTERVAL_MS=1000
cargo test --package neb --lib index::btree::test::parallel -- --exact'''
}
}
}
}
}
}