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:
@@ -1,9 +1,9 @@
|
||||
#[cfg(test)]
|
||||
use super::*;
|
||||
use crate::GuardianAssessment;
|
||||
use crate::GuardianReviewFailureReason;
|
||||
use crate::GuardianReviewResponse;
|
||||
use crate::GuardianReviewSessionOutcome;
|
||||
use codex_analytics::GuardianReviewFailureReason;
|
||||
use codex_protocol::protocol::GuardianAssessmentOutcome;
|
||||
use codex_protocol::protocol::GuardianRiskLevel;
|
||||
use codex_protocol::protocol::GuardianUserAuthorization;
|
||||
@@ -186,7 +186,7 @@ async fn stale_authorization_uses_the_shared_attempt_budget(
|
||||
let mut attempts = 0;
|
||||
let started_at = Instant::now();
|
||||
let deadline = ReviewDeadline::from_timeout(timeout);
|
||||
let (outcome, analytics, evidence) = run_with_retry(
|
||||
let (outcome, details, evidence) = run_with_retry(
|
||||
GuardianReviewSessionLimits {
|
||||
max_attempts: 3,
|
||||
deadline,
|
||||
@@ -204,7 +204,7 @@ async fn stale_authorization_uses_the_shared_attempt_budget(
|
||||
} else {
|
||||
GuardianReviewOutcome::Error(GuardianReviewError::StaleAuthorization)
|
||||
},
|
||||
GuardianReviewAnalyticsResult::without_session(),
|
||||
GuardianReviewDetails::without_session(),
|
||||
Some(attempt),
|
||||
)
|
||||
}
|
||||
@@ -226,7 +226,7 @@ async fn stale_authorization_uses_the_shared_attempt_budget(
|
||||
}
|
||||
let expected_attempts = success_on_attempt.min(3);
|
||||
assert_eq!(
|
||||
(attempts, analytics.attempt_count, evidence),
|
||||
(attempts, details.attempt_count, evidence),
|
||||
(
|
||||
expected_attempts,
|
||||
expected_attempts,
|
||||
@@ -239,7 +239,7 @@ async fn stale_authorization_uses_the_shared_attempt_budget(
|
||||
async fn stale_authorization_does_not_extend_the_deadline() {
|
||||
let deadline = ReviewDeadline::At(Instant::now() + Duration::from_secs(/*secs*/ 1));
|
||||
let mut attempts = 0;
|
||||
let (outcome, analytics, _) = run_with_retry(
|
||||
let (outcome, details, _) = run_with_retry(
|
||||
GuardianReviewSessionLimits {
|
||||
max_attempts: 3,
|
||||
deadline,
|
||||
@@ -253,7 +253,7 @@ async fn stale_authorization_does_not_extend_the_deadline() {
|
||||
deadline.wait().await;
|
||||
(
|
||||
GuardianReviewOutcome::Error(GuardianReviewError::StaleAuthorization),
|
||||
GuardianReviewAnalyticsResult::without_session(),
|
||||
GuardianReviewDetails::without_session(),
|
||||
None::<()>,
|
||||
)
|
||||
}
|
||||
@@ -264,5 +264,5 @@ async fn stale_authorization_does_not_extend_the_deadline() {
|
||||
outcome,
|
||||
GuardianReviewOutcome::Error(GuardianReviewError::Timeout)
|
||||
));
|
||||
assert_eq!((attempts, analytics.attempt_count), (1, 1));
|
||||
assert_eq!((attempts, details.attempt_count), (1, 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user