Skip to content

Commit acaadfe

Browse files
author
Elrond
committed
ci: run community archive regressions in unit lanes
Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
1 parent eb438c7 commit acaadfe

2 files changed

Lines changed: 20 additions & 8 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
@@ -401,8 +402,10 @@ test-unit:
401402
# suites are otherwise absent from the infra-free unit lane.
402403
cargo nextest run -p buzz-media --lib \
403404
-E 'test(=bucket_index::tests::bucket_snapshot_json_round_trip_preserves_community_keys)'
405+
# buzz-admin: storage-snapshot worker plus the community archive
406+
# command parser, validation, and propagation-evidence tests.
404407
cargo nextest run -p buzz-admin \
405-
-E 'test(storage_snapshot)'
408+
-E 'test(storage_snapshot) + test(/^communities::tests::/) + test(/^tests::communities_/)'
406409
# Multi-tenant conformance gate (buzz-conformance): the independent
407410
# replay checker + golden fixtures. No infra — pure in-process trace
408411
# replay — so it belongs in the unit job. Run all targets (lib + the
@@ -477,7 +480,7 @@ test-unit:
477480
# because they live in the binary target; the nested
478481
# `tests::postgres_tests::` stays in the PostgreSQL lane.
479482
cargo nextest run -p buzz-relay --lib --bin buzz-relay \
480-
-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(=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::/))'
483+
-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(=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(=connection::tests::send_loop_sends_policy_close_when_community_is_archived) + 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::/))'
481484
# Note on audio::join::tests scope: the full suite is infra-free (no DB,
482485
# no Redis). The infra-free audio/FI regression witnesses — bootstrap
483486
# ordering barrier, CommitConfirmed arm, pending-close invisibility,

‎scripts/run-tests.sh‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ run_unit_tests() {
8787
run_test_step "buzz-auth unit tests" \
8888
cargo test -p buzz-auth --lib -- --nocapture
8989

90-
# S4 cross-pod NIP-FI disconnect payload tests (infra-free). Mirrors
91-
# `just test-unit`.
92-
run_test_step "buzz-pubsub conn_control NIP-FI tests" \
93-
cargo test -p buzz-pubsub --lib conn_control::tests::nip_fi_disconnect_ -- --nocapture
90+
# Cross-pod disconnect payload tests (NIP-FI and community archive fence;
91+
# infra-free). Mirrors `just test-unit`.
92+
run_test_step "buzz-pubsub conn_control tests" \
93+
cargo test -p buzz-pubsub --lib conn_control::tests:: -- --nocapture
9494

9595
run_test_step "buzz-voice tests" \
9696
cargo test -p buzz-voice --lib -- --nocapture
@@ -130,6 +130,9 @@ run_unit_tests() {
130130
run_test_step "buzz-admin storage snapshot tests" \
131131
cargo test -p buzz-admin storage_snapshot -- --nocapture
132132

133+
run_test_step "buzz-admin community archive command tests" \
134+
cargo test -p buzz-admin communities -- --nocapture
135+
133136
# Multi-tenant conformance gate: independent replay checker + golden
134137
# fixtures (buzz-conformance). Pure in-process trace replay, no infra.
135138
run_test_step "buzz-conformance tests" \
@@ -226,6 +229,12 @@ run_unit_tests() {
226229
run_test_step "buzz-relay admission regression test" \
227230
cargo test -p buzz-relay --lib state::tests::neither_a_confirmed_inactive_community_nor_a_failed_lookup_admits_the_socket -- --nocapture
228231

232+
run_test_step "buzz-relay archive revalidation fence test" \
233+
cargo test -p buzz-relay --lib state::tests::periodic_revalidation_disconnects_inside_the_fenced_callback -- --exact --nocapture
234+
235+
run_test_step "buzz-relay archived close-reason test" \
236+
cargo test -p buzz-relay --lib connection::tests::send_loop_sends_policy_close_when_community_is_archived -- --exact --nocapture
237+
229238
run_test_step "buzz-relay router tests" \
230239
cargo test -p buzz-relay --lib router::tests:: -- --nocapture
231240

0 commit comments

Comments
 (0)