The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(observability): keep main's file-wide reporting lock alongside the private hub\n\nMy merge resolution in 57d1708f5 dropped `lock_reporting_state()` from\n`captured_events_for`, reasoning that a client bound to a private hub touches no\nprocess-global state so the guard was redundant. CI disproved it:\n`reporting_a_genuine_wallet_failure_still_emits_error` failed on the merge head\nwith an empty capture — exactly the failure 05d50e3df added the file-wide lock\nto close.\n\nThe private hub removes the *client* binding; it does not remove the need to\nserialise. `sentry-tracing`'s layer lives in the global subscriber stack, so\nwhile a client is current on the paging thread a `tracing::error!` raised by\n`capture_reporting` on another thread can be consumed by that layer instead of\nreaching its fmt subscriber.\n\nBoth fixes are needed and both are now present: the private hub for the paging\nenvelope count, main's file-wide lock for the capture. The doc comment that\nclaimed no serialisation was needed is corrected rather than left contradicting\nthe code.\n\nWorth recording that six green local runs preceded the CI failure, and six more\nfollowed this fix — for a race, a passing run is weak evidence either way. The\nreason to trust this one is that it restores the configuration 05d50e3df already\nvalidated, not the run count.\n
M3gA-Mind45cfc2090a0c
diff --git a/tests/observability_wallet_expected_e2e.rs b/tests/observability_wallet_expected_e2e.rsindex b8abd7ad93..368134c4a9 100644--- a/tests/observability_wallet_expected_e2e.rs+++ b/tests/observability_wallet_expected_e2e.rs@@ -289,9 +289,23 @@ mod paging {/// a sibling test's `report_error_or_expected` on another thread landed in/// this transport too — `left: 2` for a genuine failure, deterministic/// under the product feature set, invisible under the contributor default- /// set where this module does not compile. No process-global state is- /// touched, so the tests need no serialisation.+ /// set where this module does not compile.+ ///+ /// The private hub removes the *client* binding, but it does not remove the+ /// need to serialise. `sentry-tracing`'s layer sits in the global+ /// subscriber stack, so while a client is current on this thread a+ /// `tracing::error!` raised by `capture_reporting` on ANOTHER thread can be+ /// consumed by that layer instead of reaching its fmt subscriber — the+ /// capture then comes back empty and+ /// `reporting_a_genuine_wallet_failure_still_emits_error` fails for a+ /// reason unrelated to the behaviour under test. That is `main`'s+ /// `d0509bb17` finding, and it still holds here: an earlier revision of+ /// this merge dropped the guard on the reasoning that a private hub made it+ /// redundant, and CI reproduced exactly that failure. Both fixes are+ /// needed — the private hub for the paging count, the file-wide lock for+ /// the capture.fn captured_events_for(message: &str) -> usize {+ let _guard = lock_reporting_state();let transport = sentry::test::TestTransport::new();let transport_for_factory = transport.clone();let options = sentry::ClientOptions {