Skip to content

Add async ingestion and backpressure integration coverage #55

@darthfork

Description

@darthfork

Parent issue: #52

Summary

Add integration tests for the async event processor so queueing, overload behavior, and eventual metric updates are validated under realistic request flow.

Scope

  • Exercise async webhook ingestion over HTTP.
  • Validate queue success and queue-full behavior.
  • Validate dropped-event and processing metrics.
  • Validate shutdown behavior with in-flight work where feasible.

Scenarios

  • Accepted events are eventually reflected in /metrics.
  • Queue saturation returns the expected non-success response.
  • Dropped event counters increment when the queue is full.
  • Processing failure metrics increment on handler panic/failure paths.
  • Shutdown behavior is documented and covered by at least one test.

Design notes

  • Use bounded waiting/polling to avoid flaky timing assumptions.
  • Keep deterministic control over worker count and queue size.
  • Focus on observable behavior, not goroutine internals.

Acceptance criteria

  • Async behavior is covered through request/metrics observation.
  • Backpressure and error visibility are validated.
  • Tests are reliable in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions