Skip to content

test(repro): reproduce partition catch-all collision and missing deletion audit entries - #1

Open
frodoHost wants to merge 2 commits into
mainfrom
repro/partition-and-audit-findings
Open

test(repro): reproduce partition catch-all collision and missing deletion audit entries#1
frodoHost wants to merge 2 commits into
mainfrom
repro/partition-and-audit-findings

Conversation

@frodoHost

Copy link
Copy Markdown
Owner

Reproduction only, not a fix. Two new #[ignore = "requires Postgres"] tests wired into the existing Backend Integration CI job:

  • current_month_partition_is_never_created_once_a_future_catchall_exists (buzz-db)
  • standard_deletion_writes_no_audit_entry (buzz-relay)

Opened against this fork's own main purely to trigger Actions in isolation -- not intended for upstream block/buzz.

Buzz Provenance Investigation added 2 commits July 31, 2026 23:07
…tion audit entries

Two new #[ignore = "requires Postgres"] integration tests, wired into the
existing Backend Integration CI job against its own ephemeral Postgres/Redis:

- buzz-db::partition::tests::current_month_partition_is_never_created_once_a_future_catchall_exists
  schema/schema.sql and migrations/0001_initial_schema.sql both hardcode
  monthly partitions only through 2026-06, then attach events_p_future /
  delivery_log_p_future FROM ('2026-07-01') TO (MAXVALUE). Confirms
  ensure_future_partitions neither creates a dedicated partition for the
  current month nor surfaces any error once that catch-all exists.

- buzz-relay::handlers::event::tests::pubsub_fanout::standard_deletion_writes_no_audit_entry
  Dispatches a real signed kind:5 NIP-09 deletion through handle_side_effects
  (the same entry point handlers/ingest.rs uses in production), confirms the
  target is genuinely soft-deleted, and asserts no 'event_deleted' row lands
  in audit_log -- while the same event's creation, audited moments earlier in
  the same test run, does.

Reproduction only, not a fix. Neither test's failure mode is expected to
change existing behavior; they exist to give the corresponding bug reports
CI evidence from a real build, isolated from any production deployment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant