aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//! Read-only queries against an existing state database.
|
||||
|
||||
use anyhow::Result;
|
||||
use akode_protocol::ThreadId;
|
||||
use anyhow::Result;
|
||||
use sqlx::Row;
|
||||
use std::path::PathBuf;
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -222,8 +222,6 @@ mod tests {
|
||||
use super::rollout_item_affects_thread_metadata;
|
||||
use crate::ThreadMetadataBuilder;
|
||||
use crate::model::ThreadMetadata;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_history::RolloutItem;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::config_types::ApprovalsReviewer;
|
||||
@@ -254,6 +252,8 @@ mod tests {
|
||||
use akode_protocol::protocol::USER_MESSAGE_BEGIN;
|
||||
use akode_protocol::protocol::UserMessageEvent;
|
||||
use akode_protocol::user_input::UserInput;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use akode_protocol::ThreadId;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use super::ThreadMetadata;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use akode_protocol::ThreadId;
|
||||
use anyhow::Result;
|
||||
use sqlx::Row;
|
||||
use sqlx::sqlite::SqliteRow;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use akode_protocol::ThreadId;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use serde::Serialize;
|
||||
use sqlx::Row;
|
||||
use sqlx::sqlite::SqliteRow;
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
use anyhow::Result;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::SanitizedGitUrl;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::openai_models::ReasoningEffort;
|
||||
@@ -9,6 +6,9 @@ use akode_protocol::protocol::SandboxPolicy;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_protocol::protocol::ThreadSource;
|
||||
use anyhow::Result;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use sqlx::Row;
|
||||
@@ -747,12 +747,12 @@ pub struct BackfillStats {
|
||||
mod tests {
|
||||
use super::ThreadMetadata;
|
||||
use super::ThreadRow;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::SanitizedGitUrl;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::openai_models::ReasoningEffort;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@ use crate::paths::file_modified_time_utc;
|
||||
use crate::sqlite::SqliteWriteQueryExt;
|
||||
use crate::telemetry::DbKind;
|
||||
use crate::telemetry::DbTelemetry;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_history::RolloutItem;
|
||||
use akode_protocol::ThreadId;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use serde_json::Value;
|
||||
use sqlx::QueryBuilder;
|
||||
use sqlx::Row;
|
||||
|
||||
@@ -112,8 +112,8 @@ WHERE id = 1
|
||||
mod tests {
|
||||
use super::StateRuntime;
|
||||
use super::test_support::unique_temp_dir;
|
||||
use chrono::Utc;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use sqlx::Connection;
|
||||
|
||||
|
||||
@@ -547,8 +547,8 @@ mod tests {
|
||||
use crate::LogEntry;
|
||||
use crate::LogQuery;
|
||||
use crate::migrations::LOGS_MIGRATOR;
|
||||
use chrono::Utc;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use sqlx::SqlitePool;
|
||||
use sqlx::migrate::Migrator;
|
||||
|
||||
@@ -5,8 +5,8 @@ use super::StateRuntime;
|
||||
use super::prune_by_age_and_size;
|
||||
use crate::SqliteConfig;
|
||||
use crate::migrations::LOGS_MIGRATOR;
|
||||
use chrono::Utc;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use sqlx::SqlitePool;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -1729,11 +1729,11 @@ mod tests {
|
||||
use crate::model::Phase2JobClaimOutcome;
|
||||
use crate::model::Stage1JobClaimOutcome;
|
||||
use crate::model::Stage1StartupClaimParams;
|
||||
use chrono::Duration;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Duration;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use sqlx::Row;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
#[cfg(test)]
|
||||
use chrono::DateTime;
|
||||
#[cfg(test)]
|
||||
use chrono::Utc;
|
||||
#[cfg(test)]
|
||||
use akode_protocol::ThreadId;
|
||||
#[cfg(test)]
|
||||
use akode_protocol::openai_models::ReasoningEffort;
|
||||
@@ -13,6 +9,10 @@ use akode_protocol::protocol::SandboxPolicy;
|
||||
#[cfg(test)]
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
#[cfg(test)]
|
||||
use chrono::DateTime;
|
||||
#[cfg(test)]
|
||||
use chrono::Utc;
|
||||
#[cfg(test)]
|
||||
use std::path::Path;
|
||||
#[cfg(test)]
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -14,9 +14,9 @@ use crate::ThreadAttachmentOwner;
|
||||
use crate::ThreadAttachmentOwnerPage;
|
||||
use crate::ThreadAttachmentPage;
|
||||
use crate::sqlite::SqlitePoolWriteExt;
|
||||
use akode_protocol::ThreadId;
|
||||
use anyhow::Context;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
|
||||
@@ -12,10 +12,10 @@ use crate::ThreadAttachmentOwner;
|
||||
use crate::ThreadAttachmentOwnerPage;
|
||||
use crate::runtime::test_support::test_thread_metadata;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use anyhow::Result;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Result;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use serde_json::json;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use super::StateRuntime;
|
||||
use crate::sqlite::SqlitePoolWriteExt;
|
||||
use akode_protocol::ThreadId;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use sqlx::QueryBuilder;
|
||||
use sqlx::Sqlite;
|
||||
use std::collections::HashMap;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use super::StateRuntime;
|
||||
use crate::runtime::test_support::test_thread_metadata;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Result;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use super::StateRuntime;
|
||||
use crate::runtime::test_support::test_thread_metadata;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use anyhow::Result;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Result;
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
@@ -1686,7 +1686,6 @@ mod tests {
|
||||
use crate::DirectionalThreadSpawnEdgeStatus;
|
||||
use crate::runtime::test_support::test_thread_metadata;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use anyhow::Result;
|
||||
use akode_protocol::protocol::EventMsg;
|
||||
use akode_protocol::protocol::GitInfo;
|
||||
use akode_protocol::protocol::SessionMeta;
|
||||
@@ -1694,6 +1693,7 @@ mod tests {
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Result;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ use crate::SqliteQueueStore;
|
||||
use crate::migrations::runtime_logs_migrator;
|
||||
use crate::migrations::runtime_queue_migrator;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use anyhow::Context;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Context;
|
||||
use pretty_assertions::assert_eq;
|
||||
use sqlx::sqlite::SqlitePoolOptions;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -6,8 +6,8 @@ use super::quick_check;
|
||||
use crate::SqliteConfig;
|
||||
use crate::StateRuntime;
|
||||
use crate::runtime::test_support::unique_temp_dir;
|
||||
use anyhow::Context;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use anyhow::Context;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::collections::BTreeMap;
|
||||
use std::sync::Mutex;
|
||||
|
||||
Reference in New Issue
Block a user