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

@@ -29,9 +29,6 @@ use serde_json::json;
use tempfile::TempDir;
use tokio::time::timeout;
use super::analytics::mount_analytics_capture;
use super::analytics::wait_for_matching_analytics_event;
#[cfg(target_os = "macos")]
const READ_TIMEOUT: Duration = Duration::from_secs(60);
#[cfg(not(target_os = "macos"))]
@@ -113,17 +110,11 @@ async fn exercise_executor_skill(scenario: ExecutorSkillScenario) -> Result<()>
} else {
("never", "")
};
let analytics_config = if scenario == ExecutorSkillScenario::ExplicitOnly {
format!("chatgpt_base_url = \"{}\"", server.uri())
} else {
String::new()
};
std::fs::write(
codex_home.path().join("config.toml"),
format!(
r#"
model = "mock-model"
{analytics_config}
approval_policy = "{approval_policy}"
{sandbox_config}
model_provider = "mock_provider"
@@ -143,9 +134,6 @@ stream_max_retries = 0
server.uri()
),
)?;
if scenario == ExecutorSkillScenario::ExplicitOnly {
mount_analytics_capture(&server, codex_home.path()).await?;
}
let local_skill_dir = codex_home.path().join("skills/local-deploy");
std::fs::create_dir_all(&local_skill_dir)?;
std::fs::write(
@@ -471,18 +459,6 @@ stream_max_retries = 0
app_server.read_stream_until_notification_message("turn/completed"),
)
.await??;
if scenario == ExecutorSkillScenario::ExplicitOnly {
for invocation_type in ["explicit", "implicit"] {
let event = wait_for_matching_analytics_event(&server, READ_TIMEOUT, |event| {
event["event_type"] == "skill_invocation"
&& event["event_params"]["invoke_type"] == invocation_type
})
.await?;
assert_eq!(event["event_params"]["plugin_id"], authority_id);
assert_eq!(event["event_params"]["skill_scope"], "user");
}
}
let requests = response_mock.requests();
let request = &requests[0];
if scenario == ExecutorSkillScenario::VisibleWithBudgetWarning {