Skip to content

Commit 3a575df

Browse files
crwenethe
authored andcommitted
chore: bump fusio to 0.3.8
1 parent 6d28d55 commit 3a575df

File tree

9 files changed

+38
-38
lines changed

9 files changed

+38
-38
lines changed

.github/workflows/ci_wasm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ env:
99
CARGO_TERM_COLOR: always
1010
CARGO_REGISTRIES_MY_REGISTRY_INDEX: https://github.com/rust-lang/crates.io-index
1111

12-
1312
jobs:
1413
check:
1514
name: Rust project wasm check
@@ -40,7 +39,7 @@ jobs:
4039
uses: actions-rs/cargo@v1
4140
with:
4241
command: build
43-
args: --target wasm32-unknown-unknown --no-default-features --features aws,bytes,opfs
42+
args: --target wasm32-unknown-unknown --no-default-features --features bytes,wasm
4443

4544
- name: Install Chrome Environment
4645
run: |
@@ -59,4 +58,4 @@ jobs:
5958
- name: Run wasm-pack test
6059
run: |
6160
export PATH=$PATH:/tmp/chrome/chrome-linux64/:/tmp/chrome/chromedriver-linux64/
62-
wasm-pack test --chrome --headless --test wasm --no-default-features --features aws,bytes,opfs
61+
wasm-pack test --chrome --headless --test wasm --no-default-features --features bytes,wasm

Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ tokio = [
3939
"fusio/tokio",
4040
"parquet/default",
4141
"tokio/fs",
42+
"tokio/rt-multi-thread"
4243
]
43-
tokio-http = ["fusio/tokio-http"]
44+
tokio-http = ["fusio/tokio-http", "fusio-log/tokio-http"]
4445
wasm = ["aws", "bytes", "opfs", "wasm-http"]
45-
wasm-http = ["fusio/wasm-http"]
46+
wasm-http = ["fusio/wasm-http", "fusio-log/web-http"]
4647

4748
[[example]]
4849
name = "declare"
@@ -83,12 +84,12 @@ crc32fast = "1"
8384
crossbeam-skiplist = "0.1"
8485
datafusion = { version = "45", optional = true }
8586
flume = { version = "0.11", features = ["async"] }
86-
fusio = { version = "0.3.7", package = "fusio", features = ["dyn", "fs"] }
87-
fusio-dispatch = { version = "0.3.7", package = "fusio-dispatch" }
88-
fusio-log = { version = "0.3.7", package = "fusio-log", default-features = false, features = [
87+
fusio = { version = "0.3.8", package = "fusio", features = ["dyn", "fs"] }
88+
fusio-dispatch = { version = "0.3.8", package = "fusio-dispatch" }
89+
fusio-log = { version = "0.3.8", package = "fusio-log", default-features = false, features = [
8990
"bytes",
9091
] }
91-
fusio-parquet = { version = "0.3.7", package = "fusio-parquet" }
92+
fusio-parquet = { version = "0.3.8", package = "fusio-parquet" }
9293
futures-core = "0.3"
9394
futures-util = "0.3"
9495
lockable = "0.1.1"

src/compaction/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ pub(crate) mod tests {
630630
Ok(())
631631
}
632632

633-
#[tokio::test]
633+
#[tokio::test(flavor = "multi_thread")]
634634
async fn minor_compaction() {
635635
let temp_dir = tempfile::tempdir().unwrap();
636636
let temp_dir_l0 = tempfile::tempdir().unwrap();
@@ -744,7 +744,7 @@ pub(crate) mod tests {
744744
assert_eq!(scope.max, 6.to_string());
745745
}
746746

747-
#[tokio::test]
747+
#[tokio::test(flavor = "multi_thread")]
748748
async fn dyn_minor_compaction() {
749749
let temp_dir = tempfile::tempdir().unwrap();
750750
let manager = StoreManager::new(FsOptions::Local, vec![]).unwrap();
@@ -813,7 +813,7 @@ pub(crate) mod tests {
813813
);
814814
}
815815

816-
#[tokio::test]
816+
#[tokio::test(flavor = "multi_thread")]
817817
async fn major_compaction() {
818818
let temp_dir = TempDir::new().unwrap();
819819
let temp_dir_l0 = TempDir::new().unwrap();
@@ -1170,7 +1170,7 @@ pub(crate) mod tests {
11701170
}
11711171

11721172
// https://github.com/tonbo-io/tonbo/pull/139
1173-
#[tokio::test]
1173+
#[tokio::test(flavor = "multi_thread")]
11741174
pub(crate) async fn major_panic() {
11751175
let temp_dir = TempDir::new().unwrap();
11761176

@@ -1291,7 +1291,7 @@ pub(crate) mod tests {
12911291
}
12921292

12931293
// issue: https://github.com/tonbo-io/tonbo/issues/152
1294-
#[tokio::test]
1294+
#[tokio::test(flavor = "multi_thread")]
12951295
async fn test_flush_major_level_sort() {
12961296
let temp_dir = TempDir::new().unwrap();
12971297

@@ -1405,7 +1405,7 @@ pub(crate) mod tests {
14051405
}
14061406

14071407
#[ignore = "s3"]
1408-
#[tokio::test]
1408+
#[tokio::test(flavor = "multi_thread")]
14091409
async fn test_recover_before_flush_from_s3() {
14101410
if option_env!("AWS_ACCESS_KEY_ID").is_none()
14111411
|| option_env!("AWS_SECRET_ACCESS_KEY").is_none()

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ pub(crate) mod tests {
14941494
assert_eq!(option1.get().vbool, Some(true));
14951495
}
14961496

1497-
#[tokio::test]
1497+
#[tokio::test(flavor = "multi_thread")]
14981498
async fn test_flush() {
14991499
let temp_dir = TempDir::new().unwrap();
15001500

@@ -1531,7 +1531,7 @@ pub(crate) mod tests {
15311531
}
15321532

15331533
#[ignore = "s3"]
1534-
#[tokio::test]
1534+
#[tokio::test(flavor = "multi_thread")]
15351535
async fn test_recover_from_s3() {
15361536
let temp_dir = TempDir::new().unwrap();
15371537

@@ -1616,7 +1616,7 @@ pub(crate) mod tests {
16161616
}
16171617
}
16181618

1619-
#[tokio::test]
1619+
#[tokio::test(flavor = "multi_thread")]
16201620
async fn schema_recover() {
16211621
let temp_dir = TempDir::new().unwrap();
16221622
let fs = Arc::new(TokioFs) as Arc<dyn DynFs>;
@@ -1682,7 +1682,7 @@ pub(crate) mod tests {
16821682
}
16831683
}
16841684

1685-
#[tokio::test]
1685+
#[tokio::test(flavor = "multi_thread")]
16861686
async fn dyn_schema_recover() {
16871687
let temp_dir = TempDir::new().unwrap();
16881688
let manager = StoreManager::new(FsOptions::Local, vec![]).unwrap();
@@ -1762,7 +1762,7 @@ pub(crate) mod tests {
17621762
}
17631763
}
17641764

1765-
#[tokio::test]
1765+
#[tokio::test(flavor = "multi_thread")]
17661766
async fn test_get_removed() {
17671767
let temp_dir = TempDir::new().unwrap();
17681768

@@ -1801,7 +1801,7 @@ pub(crate) mod tests {
18011801
}
18021802
}
18031803

1804-
#[tokio::test]
1804+
#[tokio::test(flavor = "multi_thread")]
18051805
async fn test_read_write_dyn() {
18061806
let temp_dir = TempDir::new().unwrap();
18071807

@@ -1959,7 +1959,7 @@ pub(crate) mod tests {
19591959
}
19601960
}
19611961

1962-
#[tokio::test]
1962+
#[tokio::test(flavor = "multi_thread")]
19631963
async fn test_dyn_multiple_db() {
19641964
let temp_dir1 = TempDir::with_prefix("db1").unwrap();
19651965

src/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ mod tests {
125125
DbOption,
126126
};
127127

128-
#[tokio::test]
128+
#[tokio::test(flavor = "multi_thread")]
129129
async fn snapshot_scan() {
130130
let temp_dir = TempDir::new().unwrap();
131131
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());

src/stream/level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ mod tests {
233233
inmem::immutable::tests::TestSchema, record::Schema, stream::level::LevelStream, DbOption,
234234
};
235235

236-
#[tokio::test]
236+
#[tokio::test(flavor = "multi_thread")]
237237
async fn projection_scan() {
238238
let temp_dir = TempDir::new().unwrap();
239239
let manager = StoreManager::new(FsOptions::Local, vec![]).unwrap();

src/transaction.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ mod tests {
321321
DbOption, Projection, DB,
322322
};
323323

324-
#[tokio::test]
324+
#[tokio::test(flavor = "multi_thread")]
325325
async fn transaction_read_write() {
326326
let temp_dir = TempDir::new().unwrap();
327327

@@ -361,7 +361,7 @@ mod tests {
361361
}
362362
}
363363

364-
#[tokio::test]
364+
#[tokio::test(flavor = "multi_thread")]
365365
async fn transaction_get() {
366366
let temp_dir = TempDir::new().unwrap();
367367
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());
@@ -454,7 +454,7 @@ mod tests {
454454
}
455455
}
456456

457-
#[tokio::test]
457+
#[tokio::test(flavor = "multi_thread")]
458458
async fn write_conflicts() {
459459
let temp_dir = TempDir::new().unwrap();
460460
let option = DbOption::new(
@@ -490,7 +490,7 @@ mod tests {
490490
unreachable!();
491491
}
492492

493-
#[tokio::test]
493+
#[tokio::test(flavor = "multi_thread")]
494494
async fn transaction_projection() {
495495
let temp_dir = TempDir::new().unwrap();
496496
let option = DbOption::new(
@@ -541,7 +541,7 @@ mod tests {
541541
assert_eq!(entry.get().vbool, None);
542542
}
543543

544-
#[tokio::test]
544+
#[tokio::test(flavor = "multi_thread")]
545545
async fn transaction_scan() {
546546
let temp_dir = TempDir::new().unwrap();
547547
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());
@@ -638,7 +638,7 @@ mod tests {
638638
assert_eq!(entry_15.key().value, "king");
639639
}
640640

641-
#[tokio::test]
641+
#[tokio::test(flavor = "multi_thread")]
642642
async fn test_transaction_scan_bound() {
643643
let temp_dir = TempDir::new().unwrap();
644644
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());
@@ -816,7 +816,7 @@ mod tests {
816816
}
817817
}
818818

819-
#[tokio::test]
819+
#[tokio::test(flavor = "multi_thread")]
820820
async fn test_transaction_scan_limit() {
821821
let temp_dir = TempDir::new().unwrap();
822822
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());
@@ -881,7 +881,7 @@ mod tests {
881881
}
882882
}
883883

884-
#[tokio::test]
884+
#[tokio::test(flavor = "multi_thread")]
885885
async fn test_dyn_record() {
886886
let temp_dir = TempDir::new().unwrap();
887887
let schema = test_dyn_item_schema();

src/version/set.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pub(crate) mod tests {
431431
})
432432
}
433433

434-
#[tokio::test]
434+
#[tokio::test(flavor = "multi_thread")]
435435
async fn timestamp_persistence() {
436436
let temp_dir = TempDir::new().unwrap();
437437
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());
@@ -598,13 +598,13 @@ pub(crate) mod tests {
598598
);
599599
}
600600

601-
#[tokio::test]
601+
#[tokio::test(flavor = "multi_thread")]
602602
async fn test_version_log_snap_shot() {
603603
version_log_snap_shot(FsOptions::Local).await;
604604
}
605605

606606
#[ignore = "s3"]
607-
#[tokio::test]
607+
#[tokio::test(flavor = "multi_thread")]
608608
async fn test_s3_version_log_snap_shot() {
609609
use fusio::remotes::aws::AwsCredential;
610610

@@ -634,7 +634,7 @@ pub(crate) mod tests {
634634
version_log_snap_shot(fs_option).await;
635635
}
636636

637-
#[tokio::test]
637+
#[tokio::test(flavor = "multi_thread")]
638638
async fn version_level_sort() {
639639
let temp_dir = TempDir::new().unwrap();
640640
let manager = Arc::new(StoreManager::new(FsOptions::Local, vec![]).unwrap());

src/wal/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ mod tests {
222222
}
223223
}
224224

225-
#[tokio::test]
225+
#[tokio::test(flavor = "multi_thread")]
226226
async fn test_local_write_and_recover() {
227227
write_and_recover(FsOptions::Local).await
228228
}
229229

230230
#[ignore = "s3"]
231-
#[tokio::test]
231+
#[tokio::test(flavor = "multi_thread")]
232232
async fn test_s3_write_and_recover() {
233233
use fusio::remotes::aws::AwsCredential;
234234

0 commit comments

Comments
 (0)