Skip to content

test(relay): exercise operator listener delivery over HTTP - #7934

Draft
jsibbison-square wants to merge 1 commit into
mainfrom
jsib-260928-test-listener-delivery-http
Draft

jsibbison-square wants to merge 1 commit into
mainfrom
jsib-260928-test-listener-delivery-http

Conversation

@jsibbison-square

Copy link
Copy Markdown
Contributor

Summary

  • Remove the single-implementation DeliveryStore and DeliveryTransport traits and their mocks.
  • Send operator-listener notifications directly through reqwest and the existing database methods.
  • Replace the hand-rolled HTTP parser with local axum delivery tests. The handler verifies NIP-98 against the received URL, POST method, and body. Tests assert persisted success, retry, terminal failure, redirect, and unroutable-claim behavior.

Follow-up to review point 4 on #7793.

Validation

  • cargo test -p buzz-relay --lib operator_listener::tests:: -- --include-ignored with the repository's configured local database: 7 passed.
  • . ./bin/activate-hermit && just ci: exit 1. Formatting and clippy passed; buzz-acp tests failed on three environment-sensitive cases (session_new_forwards_complete_git_block_without_duplicate_names, allowed_respond_to_full_path_unset_allows_all, test_session_policy_default_is_channel).
  • . ./bin/activate-hermit && just test: exit 1. The same three buzz-acp cases failed, plus buzz-db's p0_pool_acquisitions_use_typed_operation_pairs_without_other source check and two workspace integration tests (oauth_missing_token_uses_configured_model_then_retries_discovery, non_auth_discovery_failure_uses_configured_model_without_caching_fallback). These failures also appear in the prior follow-up's logs.

Draft pending agent review and human behavior verification.

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is c4c86006f2d67b2ea9055780129ee7ce95c54e0a...752648577cc01255b60c439182e671af640a807b.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 752648577cc01255b60c439182e671af640a807b to authorize a new review.
Any previous review applies only to its recorded range.

Signed-off-by: Implementor <691cca7a870db1dad6990d5938d1b4a2a2ca9647ca81290b536c17b06b2e473f@buzz.block.builderlab.xyz>
@jsibbison-square
jsibbison-square force-pushed the jsib-260928-test-listener-delivery-http branch from 4afaf55 to 7526485 Compare September 28, 2026 05:35

This branch has not been deployed

No deployments
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