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
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:
@@ -73,8 +73,6 @@ impl Fixture {
|
||||
cli_auth_credentials_store = "file"
|
||||
check_for_update_on_startup = false
|
||||
model_provider = "local"
|
||||
[analytics]
|
||||
enabled = false
|
||||
[model_providers.local]
|
||||
name = "local test"
|
||||
base_url = "http://127.0.0.1:9/v1"
|
||||
@@ -621,7 +619,7 @@ async fn feedback_with_logs_does_not_execute_path_helpers() -> Result<()> {
|
||||
let fixture = Fixture::new()?;
|
||||
let proxy = TcpListener::bind("127.0.0.1:0").await?;
|
||||
let proxy_uri = format!("http://{}", proxy.local_addr()?);
|
||||
// Reject all outbound traffic locally, including the final feedback upload.
|
||||
// Reject all outbound traffic locally; feedback collection must not need the network.
|
||||
let proxy_task = tokio::spawn(async move {
|
||||
while let Ok((stream, _)) = proxy.accept().await {
|
||||
let mut stream = BufReader::new(stream);
|
||||
@@ -664,20 +662,24 @@ async fn feedback_with_logs_does_not_execute_path_helpers() -> Result<()> {
|
||||
])
|
||||
.build_initialized_with_timeout(Duration::from_secs(/*secs*/ 30))
|
||||
.await?;
|
||||
// Feedback is only ever saved locally; collecting its diagnostics must not run PATH helpers.
|
||||
let save_path = fixture.root.path().join("feedback.zip");
|
||||
let request_id = app_server
|
||||
.send_raw_request(
|
||||
"feedback/upload",
|
||||
"feedback/save",
|
||||
Some(json!({
|
||||
"classification": "bug", "includeLogs": true
|
||||
"classification": "bug",
|
||||
"includeLogs": true,
|
||||
"savePath": save_path.to_string_lossy(),
|
||||
})),
|
||||
)
|
||||
.await?;
|
||||
let error = timeout(
|
||||
timeout(
|
||||
Duration::from_secs(/*secs*/ 45),
|
||||
app_server.read_stream_until_error_message(RequestId::Integer(request_id)),
|
||||
app_server.read_stream_until_response_message(RequestId::Integer(request_id)),
|
||||
)
|
||||
.await??;
|
||||
assert!(error.error.message.contains("failed to upload feedback"));
|
||||
assert!(save_path.exists(), "feedback must be saved locally");
|
||||
assert!(!fixture.marker.exists(), "feedback executed a PATH helper");
|
||||
timeout(
|
||||
Duration::from_secs(/*secs*/ 10),
|
||||
|
||||
Reference in New Issue
Block a user