Skip to content

Commit 94996f5

Browse files
[ci] Fix Publication Order (#47)
1 parent 48c5043 commit 94996f5

4 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
continue-on-error: true
3434
env:
3535
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
36-
- name: Publish exoware-qmdb
37-
run: cargo publish --manifest-path qmdb/Cargo.toml
36+
- name: Publish exoware-simulator
37+
run: cargo publish --manifest-path examples/simulator/Cargo.toml
3838
continue-on-error: true
3939
env:
4040
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
41-
- name: Publish exoware-simulator
42-
run: cargo publish --manifest-path examples/simulator/Cargo.toml
41+
- name: Publish exoware-qmdb
42+
run: cargo publish --manifest-path qmdb/Cargo.toml
4343
continue-on-error: true
4444
env:
4545
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/simulator/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ tower-http = { workspace = true }
2525
[dev-dependencies]
2626
commonware-codec = { workspace = true }
2727
connectrpc = { workspace = true }
28-
exoware-qmdb = { workspace = true }
2928
exoware-sdk = { workspace = true }
3029
http = { workspace = true }
3130
tempfile = { workspace = true }

examples/simulator/tests/e2e_stream.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::time::Duration;
22

33
use bytes::Bytes;
4-
use exoware_qmdb::prune::{drop_all_batches, keep_latest_batches};
54
use exoware_sdk::keys::{Key, KeyCodec};
65
use exoware_sdk::kv_codec::Utf8;
76
use exoware_sdk::match_key::MatchKey;
7+
use exoware_sdk::prune_policy::{PolicyScope, PrunePolicy, RetainPolicy};
88
use exoware_sdk::stream_filter::StreamFilter;
99
use exoware_sdk::{RetryConfig, StoreClient};
1010
use tempfile::tempdir;
@@ -39,6 +39,20 @@ fn filter(family: u16) -> StreamFilter {
3939
}
4040
}
4141

42+
fn keep_latest_batches(count: usize) -> PrunePolicy {
43+
PrunePolicy {
44+
scope: PolicyScope::Sequence,
45+
retain: RetainPolicy::KeepLatest { count },
46+
}
47+
}
48+
49+
fn drop_all_batches() -> PrunePolicy {
50+
PrunePolicy {
51+
scope: PolicyScope::Sequence,
52+
retain: RetainPolicy::DropAll,
53+
}
54+
}
55+
4256
async fn next_with_timeout(
4357
sub: &mut exoware_sdk::StreamSubscription,
4458
ms: u64,

0 commit comments

Comments
 (0)