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

@@ -6,6 +6,7 @@ use anyhow::Result;
use app_test_support::ChatGptAuthFixture;
use app_test_support::MockResponsesConfig;
use app_test_support::TestAppServer;
use app_test_support::mount_chatgpt_account;
use app_test_support::write_chatgpt_auth;
use base64::Engine;
use codex_app_server_protocol::GeneratedImageRef;
@@ -43,9 +44,6 @@ use wiremock::ResponseTemplate;
use wiremock::matchers::method;
use wiremock::matchers::path;
use super::analytics::mount_analytics_capture;
use super::analytics::wait_for_analytics_event;
const RESULT: &str = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGP4z8DwHwAFAAH/iZk9HQAAAABJRU5ErkJggg==";
// Two one-pixel frames, red then blue, with a 200 ms frame duration.
const ANIMATED_RESULT: &str = "R0lGODlhAQABAIEAAP8AAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQAFAAAACwAAAAAAQABAAAIBAABBAQAIfkEARQAAQAsAAAAAAEAAQCBAAD/AAAAAAAAAAAACAQAAQQEADs=";
@@ -132,7 +130,7 @@ async fn standalone_image_generation_returns_saved_path_hint_to_model(
let codex_home = TempDir::new()?;
create_config_toml(codex_home.path(), &server.uri(), ImagegenTestMode::Direct)?;
mount_analytics_capture(&server, codex_home.path()).await?;
mount_chatgpt_account(&server, codex_home.path()).await?;
let mut mcp = TestAppServer::builder()
.with_codex_home(codex_home.path())
@@ -286,21 +284,6 @@ async fn standalone_image_generation_returns_saved_path_hint_to_model(
"standalone image generation should not emit the legacy developer-message hint"
);
let event = wait_for_analytics_event(
&server,
DEFAULT_READ_TIMEOUT,
"codex_image_generation_event",
)
.await?;
assert_eq!(
event["event_params"]["imagegen_request_id"],
json!("req-imagegen-123")
);
assert_eq!(
event["event_params"]["generation_id"],
json!("gen-image-123")
);
Ok(())
}
@@ -708,17 +691,6 @@ async fn standalone_image_generation_failure_emits_terminal_item(
)
);
let event = wait_for_analytics_event(
&server,
DEFAULT_READ_TIMEOUT,
"codex_image_generation_event",
)
.await?;
assert_eq!(
event["event_params"]["imagegen_request_id"],
json!("req-imagegen-failed-123")
);
Ok(())
}