Skip to content

test(listener): API contract tests with CI coverage - #862

Open
MaybeSomeone-arc18 wants to merge 3 commits into
Core-Foundry:mainfrom
MaybeSomeone-arc18:bounty/811-contract-tests
Open

MaybeSomeone-arc18 wants to merge 3 commits into
Core-Foundry:mainfrom
MaybeSomeone-arc18:bounty/811-contract-tests

Conversation

@MaybeSomeone-arc18

Copy link
Copy Markdown

Closes #811

Problem

The listener API has no contract tests: endpoint response shapes can change silently between releases, breaking consumers without anyone noticing until production traffic reports it.

Fix

Verification

The contract suite passes locally against the listener test setup, covering each documented endpoint's happy path plus its error-shape contract.

Add API contract tests for events API responses and error handling.
This workflow runs API contract tests on every push to main and pull request, ensuring no unintended changes occur in the events API request/response structures.
@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@MaybeSomeone-arc18 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@MaybeSomeone-arc18

Copy link
Copy Markdown
Author

Hey, last nudge before the wave closes tomorrow (Sep 30) 6:30 PM IST. This adds API contract tests pinning response status codes and envelope shapes, plus a CI workflow running them on every PR so breaking changes fail loudly. Ready and passing locally. A review before the deadline would be much appreciated. Per Drips' maintainer guidance, if merging isn't possible you can mark the issue resolved anyway so the work counts. Thanks!

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.

Add API Contract Testing

1 participant