mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 05:34:02 +00:00
chore: adapt PoC dependencies and test utilities after rebase
Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Generated
+12
-11
@@ -1657,7 +1657,7 @@ dependencies = [
|
||||
"maybe-owned",
|
||||
"rustix 1.0.7",
|
||||
"rustix-linux-procfs",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
"winx",
|
||||
]
|
||||
|
||||
@@ -6187,7 +6187,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "greptime-proto"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=258d97884a4fd046bdb638700a5e3b1da53c12b1#258d97884a4fd046bdb638700a5e3b1da53c12b1"
|
||||
source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=e4ee9929721215cfe5b252de06ab2f612d6a61f8#e4ee9929721215cfe5b252de06ab2f612d6a61f8"
|
||||
dependencies = [
|
||||
"prost 0.14.1",
|
||||
"prost-types 0.14.1",
|
||||
@@ -6799,7 +6799,7 @@ dependencies = [
|
||||
"libc",
|
||||
"percent-encoding",
|
||||
"pin-project-lite",
|
||||
"socket2 0.5.10",
|
||||
"socket2 0.6.4",
|
||||
"tokio",
|
||||
"tower-service",
|
||||
"tracing",
|
||||
@@ -8739,6 +8739,7 @@ dependencies = [
|
||||
"object-store",
|
||||
"partition",
|
||||
"prometheus 0.14.0",
|
||||
"rstest",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"smallvec",
|
||||
@@ -9377,7 +9378,7 @@ version = "0.50.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
|
||||
dependencies = [
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -11679,7 +11680,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ac6c3320f9abac597dcbc668774ef006702672474aad53c6d596b62e487b40b1"
|
||||
dependencies = [
|
||||
"heck 0.5.0",
|
||||
"itertools 0.10.5",
|
||||
"itertools 0.11.0",
|
||||
"log",
|
||||
"multimap",
|
||||
"once_cell",
|
||||
@@ -11727,7 +11728,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools 0.10.5",
|
||||
"itertools 0.11.0",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.117",
|
||||
@@ -11740,7 +11741,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9120690fafc389a67ba3803df527d0ec9cbbc9cc45e4cc20b332996dfb672425"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools 0.10.5",
|
||||
"itertools 0.11.0",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.117",
|
||||
@@ -13297,7 +13298,7 @@ dependencies = [
|
||||
"security-framework 3.7.0",
|
||||
"security-framework-sys",
|
||||
"webpki-root-certs",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -14220,7 +14221,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -14790,7 +14791,7 @@ dependencies = [
|
||||
"cfg-if",
|
||||
"libc",
|
||||
"psm",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -15417,7 +15418,7 @@ dependencies = [
|
||||
"getrandom 0.3.4",
|
||||
"once_cell",
|
||||
"rustix 1.0.7",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ fs2 = "0.4"
|
||||
fst = "0.4.7"
|
||||
futures = "0.3"
|
||||
futures-util = "0.3"
|
||||
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "258d97884a4fd046bdb638700a5e3b1da53c12b1" }
|
||||
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "e4ee9929721215cfe5b252de06ab2f612d6a61f8" }
|
||||
hdfs-native = "0.14.6"
|
||||
hex = "0.4"
|
||||
hostname = "0.4.0"
|
||||
|
||||
@@ -547,6 +547,7 @@ pub struct TestEnv {
|
||||
kv_backend: KvBackendRef,
|
||||
partition_expr_fetcher: PartitionExprFetcherRef,
|
||||
object_store_mock_layer: Option<MockLayer>,
|
||||
object_store_override: Option<ObjectStore>,
|
||||
}
|
||||
|
||||
impl TestEnv {
|
||||
@@ -584,6 +585,7 @@ impl TestEnv {
|
||||
kv_backend,
|
||||
partition_expr_fetcher: noop_partition_expr_fetcher(),
|
||||
object_store_mock_layer: None,
|
||||
object_store_override: None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -610,6 +612,13 @@ impl TestEnv {
|
||||
self
|
||||
}
|
||||
|
||||
/// Uses a supplied default store, for example Memory to exercise object-store GC
|
||||
/// in release integration tests. The configured mock layer is still applied.
|
||||
pub fn with_object_store(mut self, object_store: ObjectStore) -> Self {
|
||||
self.object_store_override = Some(object_store);
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the original `object_store_mock_layer`.
|
||||
pub fn with_mock_layer(mut self, mock_layer: MockLayer) -> TestEnv {
|
||||
self.object_store_mock_layer = Some(mock_layer);
|
||||
@@ -1024,11 +1033,15 @@ impl TestEnv {
|
||||
let data_path = data_home.join("data").as_path().display().to_string();
|
||||
let builder = Fs::default().root(&data_path);
|
||||
|
||||
let object_store = self
|
||||
.object_store_override
|
||||
.clone()
|
||||
.unwrap_or_else(|| ObjectStore::new(builder).unwrap());
|
||||
let object_store = if let Some(mock_layer) = self.object_store_mock_layer.as_ref() {
|
||||
debug!("create object store with mock layer");
|
||||
ObjectStore::new(builder).unwrap().layer(mock_layer.clone())
|
||||
object_store.layer(mock_layer.clone())
|
||||
} else {
|
||||
ObjectStore::new(builder).unwrap()
|
||||
object_store
|
||||
};
|
||||
ObjectStoreManager::new("default", object_store)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user