aKode fase 2c: eliminato il codice di invio dati (crate analytics, otel-trace-websocket, sentry, esportatori OTLP); /feedback salva solo in locale; chiavi legacy [analytics]/[otel] accettate e ignorate; test di analytics/OTLP/upload rimossi
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled

This commit is contained in:
Andrea
2026-11-09 18:45:41 +01:00
parent 981745ccc8
commit 60532b6337
509 changed files with 2043 additions and 46606 deletions

View File

@@ -17,7 +17,6 @@ anyhow = { workspace = true }
assert_cmd = { workspace = true }
base64 = { workspace = true }
codex-agent-graph-store = { workspace = true }
codex-analytics = { workspace = true }
codex-arg0 = { workspace = true }
codex-attachment-store = { workspace = true }
codex-config = { workspace = true }

View File

@@ -105,19 +105,6 @@ fn assert_turn_id(body: &Value, key: &str, expected: Option<&str>) -> Result<()>
#[derive(Debug, Clone)]
pub struct ResponsesRequest(wiremock::Request);
pub async fn received_analytics_events(server: &MockServer, event_type: &str) -> Vec<Value> {
server
.received_requests()
.await
.unwrap_or_default()
.into_iter()
.filter(|request| request.url.path() == "/codex/analytics-events/events")
.filter_map(|request| serde_json::from_slice::<Value>(&request.body).ok())
.flat_map(|payload| payload["events"].as_array().cloned().unwrap_or_default())
.filter(|event| event["event_type"] == event_type)
.collect()
}
pub async fn received_responses_requests(server: &MockServer) -> Vec<ResponsesRequest> {
server
.received_requests()

View File

@@ -16,7 +16,6 @@ use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use codex_agent_graph_store::AgentGraphStore;
use codex_analytics::AnalyticsEventsClient;
use codex_attachment_store::AttachmentStore;
use codex_config::CloudConfigBundleLoader;
use codex_core::CodexThread;
@@ -411,7 +410,6 @@ pub struct TestCodexBuilder {
config_mutators: Vec<Box<ConfigMutator>>,
thread_manager_configurer: Option<Box<dyn FnOnce(ThreadManager) -> ThreadManager + Send>>,
auth: TestAuth,
analytics_events_client: Option<AnalyticsEventsClient>,
pre_build_hooks: Vec<Box<PreBuildHook>>,
workspace_setups: Vec<Box<WorkspaceSetup>>,
home: Option<Arc<TempDir>>,
@@ -473,14 +471,6 @@ impl TestCodexBuilder {
self
}
pub fn with_analytics_events_client(
mut self,
analytics_events_client: AnalyticsEventsClient,
) -> Self {
self.analytics_events_client = Some(analytics_events_client);
self
}
pub fn with_model_catalog_settings(mut self, settings: ModelCatalogSettings) -> Self {
self.model_catalog_settings = Some(settings);
self
@@ -910,7 +900,6 @@ impl TestCodexBuilder {
Arc::clone(&environment_manager),
Arc::new(extensions.build()),
user_instructions_provider,
self.analytics_events_client.clone(),
Arc::clone(&self.image_store),
Arc::clone(&thread_store),
self.agent_graph_store.clone().or_else(|| {
@@ -1579,7 +1568,6 @@ pub fn test_codex() -> TestCodexBuilder {
.expect("test config should allow ShellSnapshot override");
})],
auth: TestAuth::Cached(CodexAuth::from_api_key("dummy")),
analytics_events_client: None,
pre_build_hooks: vec![],
workspace_setups: vec![],
home: None,