mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-26 20:27:21 +08:00
Merge #5364
Some checks failed
Test suite / Tests on ubuntu-20.04 (push) Failing after 1s
Test suite / Tests almost all features (push) Has been skipped
Test suite / Test disabled tokenization (push) Has been skipped
Test suite / Test with Ollama (push) Failing after 15s
Test suite / Run tests in debug (push) Failing after 15s
Test suite / Run Rustfmt (push) Successful in 2m20s
Test suite / Run Clippy (push) Failing after 6m46s
Run the indexing fuzzer / Setup the action (push) Failing after 7m0s
Indexing bench (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of indexing (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for geo (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for songs (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for Wikipedia articles (push) / Run and upload benchmarks (push) Has been cancelled
Test suite / Tests on macos-13 (push) Has been cancelled
Test suite / Tests on windows-2022 (push) Has been cancelled
Some checks failed
Test suite / Tests on ubuntu-20.04 (push) Failing after 1s
Test suite / Tests almost all features (push) Has been skipped
Test suite / Test disabled tokenization (push) Has been skipped
Test suite / Test with Ollama (push) Failing after 15s
Test suite / Run tests in debug (push) Failing after 15s
Test suite / Run Rustfmt (push) Successful in 2m20s
Test suite / Run Clippy (push) Failing after 6m46s
Run the indexing fuzzer / Setup the action (push) Failing after 7m0s
Indexing bench (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of indexing (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for geo (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for songs (push) / Run and upload benchmarks (push) Has been cancelled
Benchmarks of search for Wikipedia articles (push) / Run and upload benchmarks (push) Has been cancelled
Test suite / Tests on macos-13 (push) Has been cancelled
Test suite / Tests on windows-2022 (push) Has been cancelled
5364: Rename `callTrace` into `progressTrace` r=Kerollmops a=Kerollmops Rename the `callTrace` field into a `progressTrace`. Co-authored-by: Kerollmops <clement@meilisearch.com>
This commit is contained in:
commit
b0d4f9590f
@ -321,7 +321,7 @@ pub(crate) mod test {
|
|||||||
status: maplit::btreemap! { Status::Succeeded => 1 },
|
status: maplit::btreemap! { Status::Succeeded => 1 },
|
||||||
types: maplit::btreemap! { Kind::DocumentAdditionOrUpdate => 1 },
|
types: maplit::btreemap! { Kind::DocumentAdditionOrUpdate => 1 },
|
||||||
index_uids: maplit::btreemap! { "doggo".to_string() => 1 },
|
index_uids: maplit::btreemap! { "doggo".to_string() => 1 },
|
||||||
call_trace: Default::default(),
|
progress_trace: Default::default(),
|
||||||
write_channel_congestion: None,
|
write_channel_congestion: None,
|
||||||
},
|
},
|
||||||
enqueued_at: Some(BatchEnqueuedAt {
|
enqueued_at: Some(BatchEnqueuedAt {
|
||||||
|
@ -343,7 +343,7 @@ pub fn snapshot_batch(batch: &Batch) -> String {
|
|||||||
let mut snap = String::new();
|
let mut snap = String::new();
|
||||||
let Batch { uid, details, stats, started_at, finished_at, progress: _, enqueued_at } = batch;
|
let Batch { uid, details, stats, started_at, finished_at, progress: _, enqueued_at } = batch;
|
||||||
let stats = BatchStats {
|
let stats = BatchStats {
|
||||||
call_trace: Default::default(),
|
progress_trace: Default::default(),
|
||||||
write_channel_congestion: None,
|
write_channel_congestion: None,
|
||||||
..stats.clone()
|
..stats.clone()
|
||||||
};
|
};
|
||||||
|
@ -342,7 +342,7 @@ impl IndexScheduler {
|
|||||||
// We must re-add the canceled task so they're part of the same batch.
|
// We must re-add the canceled task so they're part of the same batch.
|
||||||
ids |= canceled;
|
ids |= canceled;
|
||||||
|
|
||||||
processing_batch.stats.call_trace =
|
processing_batch.stats.progress_trace =
|
||||||
progress.accumulated_durations().into_iter().map(|(k, v)| (k, v.into())).collect();
|
progress.accumulated_durations().into_iter().map(|(k, v)| (k, v.into())).collect();
|
||||||
processing_batch.stats.write_channel_congestion = congestion.map(|congestion| {
|
processing_batch.stats.write_channel_congestion = congestion.map(|congestion| {
|
||||||
let mut congestion_info = serde_json::Map::new();
|
let mut congestion_info = serde_json::Map::new();
|
||||||
|
@ -61,7 +61,7 @@ pub struct BatchStats {
|
|||||||
pub types: BTreeMap<Kind, u32>,
|
pub types: BTreeMap<Kind, u32>,
|
||||||
pub index_uids: BTreeMap<String, u32>,
|
pub index_uids: BTreeMap<String, u32>,
|
||||||
#[serde(default, skip_serializing_if = "serde_json::Map::is_empty")]
|
#[serde(default, skip_serializing_if = "serde_json::Map::is_empty")]
|
||||||
pub call_trace: serde_json::Map<String, serde_json::Value>,
|
pub progress_trace: serde_json::Map<String, serde_json::Value>,
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub write_channel_congestion: Option<serde_json::Map<String, serde_json::Value>>,
|
pub write_channel_congestion: Option<serde_json::Map<String, serde_json::Value>>,
|
||||||
}
|
}
|
||||||
|
@ -280,7 +280,7 @@ async fn test_summarized_document_addition_or_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -302,7 +302,7 @@ async fn test_summarized_document_addition_or_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]",
|
"progressTrace": "[progressTrace]",
|
||||||
"writeChannelCongestion": "[writeChannelCongestion]"
|
"writeChannelCongestion": "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
@ -321,7 +321,7 @@ async fn test_summarized_document_addition_or_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -343,7 +343,7 @@ async fn test_summarized_document_addition_or_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]",
|
"progressTrace": "[progressTrace]",
|
||||||
"writeChannelCongestion": "[writeChannelCongestion]"
|
"writeChannelCongestion": "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
@ -366,7 +366,7 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -388,7 +388,7 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -406,7 +406,7 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -428,7 +428,7 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -452,7 +452,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -475,7 +475,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -494,7 +494,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -517,7 +517,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -536,7 +536,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r#"
|
@r#"
|
||||||
@ -559,7 +559,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -582,7 +582,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r#"
|
@r#"
|
||||||
@ -604,7 +604,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -622,7 +622,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r#"
|
@r#"
|
||||||
@ -644,7 +644,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -678,7 +678,7 @@ async fn test_summarized_settings_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -709,7 +709,7 @@ async fn test_summarized_settings_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -731,7 +731,7 @@ async fn test_summarized_index_creation() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -750,7 +750,7 @@ async fn test_summarized_index_creation() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -767,7 +767,7 @@ async fn test_summarized_index_creation() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -788,7 +788,7 @@ async fn test_summarized_index_creation() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -920,7 +920,7 @@ async fn test_summarized_index_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -939,7 +939,7 @@ async fn test_summarized_index_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -956,7 +956,7 @@ async fn test_summarized_index_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -977,7 +977,7 @@ async fn test_summarized_index_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -997,7 +997,7 @@ async fn test_summarized_index_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r#"
|
@r#"
|
||||||
@ -1016,7 +1016,7 @@ async fn test_summarized_index_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1033,7 +1033,7 @@ async fn test_summarized_index_update() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1054,7 +1054,7 @@ async fn test_summarized_index_update() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"test": 1
|
"test": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1079,7 +1079,7 @@ async fn test_summarized_index_swap() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1105,7 +1105,7 @@ async fn test_summarized_index_swap() {
|
|||||||
"indexSwap": 1
|
"indexSwap": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1128,7 +1128,7 @@ async fn test_summarized_index_swap() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1147,7 +1147,7 @@ async fn test_summarized_index_swap() {
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"doggos": 1
|
"doggos": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1172,7 +1172,7 @@ async fn test_summarized_batch_cancelation() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1193,7 +1193,7 @@ async fn test_summarized_batch_cancelation() {
|
|||||||
"taskCancelation": 1
|
"taskCancelation": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1218,7 +1218,7 @@ async fn test_summarized_batch_deletion() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1239,7 +1239,7 @@ async fn test_summarized_batch_deletion() {
|
|||||||
"taskDeletion": 1
|
"taskDeletion": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
@ -1261,7 +1261,7 @@ async fn test_summarized_dump_creation() {
|
|||||||
".enqueuedAt" => "[date]",
|
".enqueuedAt" => "[date]",
|
||||||
".startedAt" => "[date]",
|
".startedAt" => "[date]",
|
||||||
".finishedAt" => "[date]",
|
".finishedAt" => "[date]",
|
||||||
".stats.callTrace" => "[callTrace]",
|
".stats.progressTrace" => "[progressTrace]",
|
||||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
@r###"
|
@r###"
|
||||||
@ -1280,7 +1280,7 @@ async fn test_summarized_dump_creation() {
|
|||||||
"dumpCreation": 1
|
"dumpCreation": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
@ -2206,7 +2206,7 @@ async fn import_dump_v6_containing_batches_and_enqueued_tasks() {
|
|||||||
".results[0].startedAt" => "[date]",
|
".results[0].startedAt" => "[date]",
|
||||||
".results[0].finishedAt" => "[date]",
|
".results[0].finishedAt" => "[date]",
|
||||||
".results[0].duration" => "[date]",
|
".results[0].duration" => "[date]",
|
||||||
".results[0].stats.callTrace" => "[callTrace]",
|
".results[0].stats.progressTrace" => "[progressTrace]",
|
||||||
".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]",
|
".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]",
|
||||||
}), name: "batches");
|
}), name: "batches");
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ source: crates/meilisearch/tests/dumps/mod.rs
|
|||||||
"indexUids": {
|
"indexUids": {
|
||||||
"kefir": 1
|
"kefir": 1
|
||||||
},
|
},
|
||||||
"callTrace": "[callTrace]",
|
"progressTrace": "[progressTrace]",
|
||||||
"writeChannelCongestion": "[writeChannelCongestion]"
|
"writeChannelCongestion": "[writeChannelCongestion]"
|
||||||
},
|
},
|
||||||
"duration": "[date]",
|
"duration": "[date]",
|
||||||
|
@ -19,7 +19,7 @@ source: crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs
|
|||||||
"upgradeDatabase": 1
|
"upgradeDatabase": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
@ -19,7 +19,7 @@ source: crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs
|
|||||||
"upgradeDatabase": 1
|
"upgradeDatabase": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
@ -19,7 +19,7 @@ source: crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs
|
|||||||
"upgradeDatabase": 1
|
"upgradeDatabase": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
@ -19,7 +19,7 @@ source: crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs
|
|||||||
"upgradeDatabase": 1
|
"upgradeDatabase": 1
|
||||||
},
|
},
|
||||||
"indexUids": {},
|
"indexUids": {},
|
||||||
"callTrace": "[callTrace]"
|
"progressTrace": "[progressTrace]"
|
||||||
},
|
},
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
@ -164,7 +164,7 @@ async fn check_the_index_scheduler(server: &Server) {
|
|||||||
let (tasks, _) = server.tasks_filter("limit=1000").await;
|
let (tasks, _) = server.tasks_filter("limit=1000").await;
|
||||||
snapshot!(json_string!(tasks, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]" }), name: "the_whole_task_queue_once_everything_has_been_processed");
|
snapshot!(json_string!(tasks, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]" }), name: "the_whole_task_queue_once_everything_has_been_processed");
|
||||||
let (batches, _) = server.batches_filter("limit=1000").await;
|
let (batches, _) = server.batches_filter("limit=1000").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "the_whole_batch_queue_once_everything_has_been_processed");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "the_whole_batch_queue_once_everything_has_been_processed");
|
||||||
|
|
||||||
// Tests all the tasks query parameters
|
// Tests all the tasks query parameters
|
||||||
let (tasks, _) = server.tasks_filter("uids=10").await;
|
let (tasks, _) = server.tasks_filter("uids=10").await;
|
||||||
@ -191,26 +191,26 @@ async fn check_the_index_scheduler(server: &Server) {
|
|||||||
|
|
||||||
// Tests all the batches query parameters
|
// Tests all the batches query parameters
|
||||||
let (batches, _) = server.batches_filter("uids=10").await;
|
let (batches, _) = server.batches_filter("uids=10").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_uids_equal_10");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_uids_equal_10");
|
||||||
let (batches, _) = server.batches_filter("batchUids=10").await;
|
let (batches, _) = server.batches_filter("batchUids=10").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_batchUids_equal_10");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_batchUids_equal_10");
|
||||||
let (batches, _) = server.batches_filter("statuses=canceled").await;
|
let (batches, _) = server.batches_filter("statuses=canceled").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_statuses_equal_canceled");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_statuses_equal_canceled");
|
||||||
// types has already been tested above to retrieve the upgrade database
|
// types has already been tested above to retrieve the upgrade database
|
||||||
let (batches, _) = server.batches_filter("canceledBy=19").await;
|
let (batches, _) = server.batches_filter("canceledBy=19").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_canceledBy_equal_19");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_canceledBy_equal_19");
|
||||||
let (batches, _) = server.batches_filter("beforeEnqueuedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("beforeEnqueuedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeEnqueuedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeEnqueuedAt_equal_2025-01-16T16_47_41");
|
||||||
let (batches, _) = server.batches_filter("afterEnqueuedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("afterEnqueuedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterEnqueuedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterEnqueuedAt_equal_2025-01-16T16_47_41");
|
||||||
let (batches, _) = server.batches_filter("beforeStartedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("beforeStartedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeStartedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeStartedAt_equal_2025-01-16T16_47_41");
|
||||||
let (batches, _) = server.batches_filter("afterStartedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("afterStartedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterStartedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterStartedAt_equal_2025-01-16T16_47_41");
|
||||||
let (batches, _) = server.batches_filter("beforeFinishedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("beforeFinishedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeFinishedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_beforeFinishedAt_equal_2025-01-16T16_47_41");
|
||||||
let (batches, _) = server.batches_filter("afterFinishedAt=2025-01-16T16:47:41Z").await;
|
let (batches, _) = server.batches_filter("afterFinishedAt=2025-01-16T16:47:41Z").await;
|
||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterFinishedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.progressTrace" => "[progressTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterFinishedAt_equal_2025-01-16T16_47_41");
|
||||||
|
|
||||||
let (stats, _) = server.stats().await;
|
let (stats, _) = server.stats().await;
|
||||||
assert_json_snapshot!(stats, {
|
assert_json_snapshot!(stats, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user