Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 480dc1da53
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| #[tokio::test] | ||
| async fn create_claim_v2_reservation_expires_and_is_reclaimed() { | ||
| std::env::remove_var("EVIDENCEOS_INSECURE_SYNTHETIC_HOLDOUT"); |
There was a problem hiding this comment.
Restore synthetic holdout env var after test
Clearing EVIDENCEOS_INSECURE_SYNTHETIC_HOLDOUT here mutates process-global state and is never restored, so when unit tests run concurrently this test can flip behavior in other tests that rely on that variable (for example the synthetic-holdout tests in the same module), creating new order-dependent flakes. Please save the prior value and restore it at test end (or guard all such tests behind a shared lock).
Useful? React with 👍 / 👎.
Motivation
create_claim_v2reservation expiry test.UnknownvsUnavailable.Description
EVIDENCEOS_INSECURE_SYNTHETIC_HOLDOUTat test start incrates/evidenceos-daemon/src/server/core.rs.crates/evidenceos-daemon/tests/transport_hardening_system.rsso TLS failures are accepted when they occur either during.connect()or on the first RPC, and acceptCode::UnavailableorCode::Unknownas failure codes.crates/evidenceos-daemon/tests/vault_execution.rsto (a) rename and convert the null-accuracy test to assert no panic/fail-closed behavior for edge values, (b) replace the structured payload with a valid CBRN schema payload, and (c) compute canonical output length and assert exact-limit success and one-byte-below failure (VaultError::OutputTooLarge).Testing
cargo test -p evidenceos-daemon server::tests::create_claim_v2_reservation_expires_and_is_reclaimed -- --nocaptureand it passed.cargo test -p evidenceos-daemon --test transport_hardening_system -- --nocaptureandcargo test -p evidenceos-daemon --test vault_execution -- --nocaptureand both passed.cargo test -p evidenceos-daemon --lib,cargo fmt --all && cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings, andcargo test --workspaceall completed with no failures reported.Codex Task