test(relay): run startup_steps, telemetry and config tests in CI

The new startup_steps::tests and the telemetry/config log-capture tests
ran in no CI lane: just test-unit selects buzz-relay lib tests by module
and none of these modules were listed. Add them to the infra-free relay
stanza (anchoring ^config:: so it does not also pick up nip_fi_config)
and mirror them in scripts/run-tests.sh, single-threaded for the two
env-mutating modules because libtest shares one process.

Also correct the tracing_dispatch_lock doc: the thread_window failure
Postgres test installs a dispatcher without the lock too.

Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
This commit is contained in:
Elrond
2026-10-07 06:53:53 -04:00
parent d19b920237
commit f4d3244eb9
3 changed files with 21 additions and 3 deletions

View File

@@ -203,6 +203,19 @@ run_unit_tests() {
run_test_step "buzz-relay NIP-FI shadow session tests" \
cargo test -p buzz-relay --lib nip_fi_shadow_session::tests:: -- --nocapture
run_test_step "buzz-relay startup step tests" \
cargo test -p buzz-relay --lib startup_steps::tests:: -- --nocapture
# telemetry and config tests mutate process env. libtest runs one process
# with many threads (nextest, used by `just test-unit`, isolates each test),
# so run them single-threaded here. `--skip` keeps the substring filter
# `config::tests::` from also selecting nip_fi_config, which runs above.
run_test_step "buzz-relay telemetry tests" \
cargo test -p buzz-relay --lib telemetry::tests:: -- --test-threads=1 --nocapture
run_test_step "buzz-relay config tests" \
cargo test -p buzz-relay --lib config::tests:: -- --skip nip_fi_config:: --test-threads=1 --nocapture
# Mirror the NIP-FI (S3) stanza from `just test-unit`: module filters, then
# each exact name. Keep this list in step with that stanza's `test(=...)`s.
run_test_step "buzz-relay NIP-FI config tests" \