Skip to content

Commit 453e7b6

Browse files
committed
chore(ci): CubeStore - validate all subcrates + benches
1 parent 84a4556 commit 453e7b6

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.github/workflows/rust-cubestore-master.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ jobs:
4141
workspaces: ./rust/cubestore -> target
4242
shared-key: cubestore
4343
key: ubuntu-22.04
44-
- name: Run cargo fmt cubestore
45-
run: |
46-
cargo fmt --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check
47-
- name: Run cargo fmt cubehll
48-
run: |
49-
cargo fmt --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check
44+
- name: Run cargo fmt
45+
run: cargo fmt -- --check
46+
- name: Run cargo check
47+
run: cargo check --benches
5048
- name: Run cargo build
5149
run:
5250
cargo build --manifest-path rust/cubestore/Cargo.toml -j 4

.github/workflows/rust-cubestore.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ jobs:
5050
# We should use a separate key for testing to pass disk space limitations
5151
shared-key: cubestore-testing
5252
key: ubuntu-22.04
53-
- name: Run cargo fmt cubestore
54-
run: |
55-
cargo fmt --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check
56-
- name: Run cargo fmt cubehll
57-
run: |
58-
cargo fmt --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check
59-
- name: Run cargo build
60-
run: |
61-
cargo build --manifest-path rust/cubestore/Cargo.toml
53+
- name: Run cargo fmt
54+
run: cargo fmt -- --check
55+
- name: Run cargo check
56+
run: cargo check --benches
6257
- name: Run cargo test
6358
env:
6459
# LocalDirRemoteFs expect that std::env::temp_dir and its local dir is on same FS, to use `rename`

rust/cubestore/cubestore/benches/cachestore_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fn do_benches(c: &mut Criterion) {
227227
do_list_bench(c, &runtime, Some(QueueItemStatus::Pending), 1_000, 128, 128);
228228
do_list_bench(c, &runtime, Some(QueueItemStatus::Active), 1_000, 128, 128);
229229

230-
do_get_bench(c, &runtime, 2_500, 128, 128, 4na);
230+
do_get_bench(c, &runtime, 2_500, 128, 128, 4);
231231
}
232232

233233
criterion_group!(benches, do_benches);

0 commit comments

Comments
 (0)