Skip to content

Commit 1972b7d

Browse files
feat(admin): add community archive commands (#7107)
1 parent d742fc5 commit 1972b7d

12 files changed

Lines changed: 2036 additions & 181 deletions

File tree

‎Justfile‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,9 @@ test-unit:
366366
if command -v cargo-nextest &>/dev/null; then
367367
cargo nextest run -p buzz-core -p buzz-auth --lib
368368
cargo nextest run -p buzz-audit --lib
369-
# S4 cross-pod NIP-FI disconnect payload tests (infra-free).
370-
cargo nextest run -p buzz-pubsub --lib -E 'test(/^conn_control::tests::nip_fi_disconnect_/)'
369+
# Cross-pod disconnect payload tests (NIP-FI and community archive
370+
# fence); all infra-free.
371+
cargo nextest run -p buzz-pubsub --lib -E 'test(/^conn_control::tests::/)'
371372
# buzz-auth NIP-FI verifier doctests. The sealed-authority
372373
# `compile_fail` doctests prove the default-feature public API alone
373374
# cannot forge the issuer→JWKS authority; nextest does not run
@@ -406,8 +407,10 @@ test-unit:
406407
# suites are otherwise absent from the infra-free unit lane.
407408
cargo nextest run -p buzz-media --lib \
408409
-E 'test(=bucket_index::tests::bucket_snapshot_json_round_trip_preserves_community_keys)'
410+
# buzz-admin: storage-snapshot worker plus the community archive
411+
# command parser, validation, and propagation-evidence tests.
409412
cargo nextest run -p buzz-admin \
410-
-E 'test(storage_snapshot)'
413+
-E 'test(storage_snapshot) + test(/^communities::tests::/) + test(/^tests::communities_/)'
411414
# Multi-tenant conformance gate (buzz-conformance): the independent
412415
# replay checker + golden fixtures. No infra — pure in-process trace
413416
# replay — so it belongs in the unit job. Run all targets (lib + the
@@ -486,7 +489,7 @@ test-unit:
486489
# are infra-free; config parses env into a struct and never connects.
487490
# `^config::` is anchored so it does not also select nip_fi_config.
488491
cargo nextest run -p buzz-relay --lib --bin buzz-relay \
489-
-E 'test(/^api::admin::/) + test(/^handlers::channel_authz::/) + test(/^handlers::moderation_authz::/) + test(/^handlers::side_effects::tests::/) + test(/^storage_sweep::tests::/) + test(/^nip_fi_core::tests::/) + test(/^nip_fi_http::tests::/) + test(/^nip_fi_config::tests::/) + test(/^readiness::tests::/) + test(/^router::tests::/) + test(/^api::parse_query_tests::/) + test(/^api::git::transport::off_mode_precedence_tests::/) + test(/^audio::join::tests::/) + test(/^audio::handler::tests::/) + test(/^nip_fi_gate::tests::/) + test(/^nip_fi_session::tests::/) + test(/^nip_fi_shadow::tests::/) + test(/^nip_fi_shadow_session::tests::/) + test(/^startup_steps::tests::/) + test(/^telemetry::tests::/) + test(/^config::tests::/) + test(=state::tests::neither_a_confirmed_inactive_community_nor_a_failed_lookup_admits_the_socket) + test(=handlers::req::tests::timed_out_historical_read_deregisters_before_closed) + test(=handlers::req::tests::superseded_timeout_leaves_replacement_intact) + test(=handlers::req::tests::search_claim_retires_live_and_yields_to_replacement) + test(=handlers::req::tests::concurrent_claims_and_stale_teardowns_keep_the_last_owner) + test(=handlers::req::tests::timeout_closed_is_emitted_before_a_replacement_can_claim) + test(=handlers::req::tests::revoke_then_replacement_keeps_replacement_whole) + test(=handlers::req::tests::claims_after_connection_cleanup_are_refused) + test(=handlers::req::tests::dropped_terminal_frame_cancels_connection) + test(=handlers::req::tests::revoke_dropped_terminal_frame_cancels_connection) + (kind(bin) & (test(/^tests::/) + test(/^composition_tests::/) + test(/^env_filter_tests::/)) - test(/^tests::postgres_tests::/))'
492+
-E 'test(/^api::admin::/) + test(/^handlers::channel_authz::/) + test(/^handlers::moderation_authz::/) + test(/^handlers::side_effects::tests::/) + test(/^storage_sweep::tests::/) + test(/^nip_fi_core::tests::/) + test(/^nip_fi_http::tests::/) + test(/^nip_fi_config::tests::/) + test(/^readiness::tests::/) + test(/^router::tests::/) + test(/^api::parse_query_tests::/) + test(/^api::git::transport::off_mode_precedence_tests::/) + test(/^audio::join::tests::/) + test(/^audio::handler::tests::/) + test(/^nip_fi_gate::tests::/) + test(/^nip_fi_session::tests::/) + test(/^nip_fi_shadow::tests::/) + test(/^nip_fi_shadow_session::tests::/) + test(/^startup_steps::tests::/) + test(/^telemetry::tests::/) + test(/^config::tests::/) + test(=state::tests::neither_a_confirmed_inactive_community_nor_a_failed_lookup_admits_the_socket) + test(=state::tests::periodic_revalidation_disconnects_inside_the_fenced_callback) + test(=state::tests::bare_community_disconnect_fails_closed_when_the_fence_is_unavailable) + test(=connection::tests::send_loop_sends_policy_close_when_community_is_archived) + test(=state::tests::community_disconnect_then_nip_fi_keeps_community_deleted_reason) + test(=state::tests::disconnect_community_wins_reason_losing_nip_fi_does_not_enqueue_frame) + test(=handlers::req::tests::timed_out_historical_read_deregisters_before_closed) + test(=handlers::req::tests::superseded_timeout_leaves_replacement_intact) + test(=handlers::req::tests::search_claim_retires_live_and_yields_to_replacement) + test(=handlers::req::tests::concurrent_claims_and_stale_teardowns_keep_the_last_owner) + test(=handlers::req::tests::timeout_closed_is_emitted_before_a_replacement_can_claim) + test(=handlers::req::tests::revoke_then_replacement_keeps_replacement_whole) + test(=handlers::req::tests::claims_after_connection_cleanup_are_refused) + test(=handlers::req::tests::dropped_terminal_frame_cancels_connection) + test(=handlers::req::tests::revoke_dropped_terminal_frame_cancels_connection) + (kind(bin) & (test(/^tests::/) + test(/^composition_tests::/) + test(/^env_filter_tests::/)) - test(/^tests::postgres_tests::/))'
490493
# Note on audio::join::tests scope: the full suite is infra-free (no DB,
491494
# no Redis). The infra-free audio/FI regression witnesses — bootstrap
492495
# ordering barrier, CommitConfirmed arm, pending-close invisibility,

0 commit comments

Comments
 (0)