feat: add chaos/contract/load tests for issues #810 #811 #812 #805 - #832
Open
Ebuka042-pixel wants to merge 1 commit into
Open
Conversation
…styleseze#811 harystyleseze#812 harystyleseze#805 harystyleseze#810 – Chaos: x402 facilitator network partition mid-payment - shared/__tests__/x402-network-partition-chaos.test.ts - Partitions after verify-but-before-settle → 503, no phantom settlement - checkFacilitatorHealth flips healthy→false; protected routes 503+Retry-After - No order/tx recorded when settle cannot be confirmed - Partition healing: health check restores healthy state and routes resume - Facilitator errors not swallowed by global unhandledRejection handler harystyleseze#811 – Chaos: audit-log disk pressure during rotation - shared/__tests__/audit-log-disk-pressure-chaos.test.ts - renameSync failure (ENOSPC) during rotation: hash chain stays valid - appendFileSync ENOSPC surfaces to stderr; records not silently dropped - Post-rotation-failure appends continue on existing file - Verify path detects gap/tamper introduced by interrupted rotation - Recovery: rotation succeeds once space returns; chain remains continuous harystyleseze#812 – Contract test: x402 Facilitator getSupported payment-kinds - shared/__tests__/x402-get-supported-contract.test.ts - Pins OZ x402 Facilitator getSupported fixture (kinds/scheme/network shape) - Empty or missing kinds array triggers boot-time fail-closed path - Missing required fields (network, scheme) fail the contract - Configured NETWORK must match at least one supported kind - Provider-change detection: rename of 'kinds'/'scheme' caught in CI - Documents how to refresh the fixture (curl + jq one-liner in header) harystyleseze#805 – k6 load test: POST /agent/dispute-letter PDF generation - load/dispute-letter.js - Ramps VUs posting realistic audit results to /agent/dispute-letter - Thresholds: p95 < 8000 ms, zero 5xx, zero empty/partial PDFs - Health-check probe per iteration detects memory pressure / leaks - Parameterized by BASE_URL, CAREGIVER_TOKEN, P95_LATENCY_MS - Documented for manual and CI runs; three audit result variants .gitignore: add generated/temp/snapshot/profile exclusions - k6 results, vitest snapshots, test-data-*, PDFs, heap profiles
|
@Ebuka042-pixel 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! 🚀 |
|
@Ebuka042-pixel is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#810 – Chaos: x402 facilitator network partition mid-payment
#811 – Chaos: audit-log disk pressure during rotation
#812 – Contract test: x402 Facilitator getSupported payment-kinds
#805 – k6 load test: POST /agent/dispute-letter PDF generation
.gitignore: add generated/temp/snapshot/profile exclusions
Closes #
closes #810
closes #811
closes #812
closes #805
What changed
How to test
Checklist
data/spending.json,data/orders.json) committed