You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #125 (section 4 — roadmap layers). The chaos suite now covers scheduler-interleaving and 100% of the API surface, but I/O edge cases remain untested: partial reads, EAGAIN storms, mid-stream RST, backpressure, slow FIN, malformed/garbage payloads, a peer that accepts then never reads.
Approach
In-process EvilPeer rather than Toxiproxy — to avoid adding an external dev/CI dependency. A small PHP peer under fuzzy-tests/io_chaos/ driven by a seeded fault table. Toxiproxy may be layered on later as an optional extra.
Scope
new fuzzy-tests/io_chaos/ directory + harness (separate from the scenario harness)
fault toxics:
latency (with jitter)
slicer — chop the TCP stream into random small chunks (exposes partial-read bugs)
reset_peer — RST after N ms / N bytes
bandwidth / limit_data — backpressure scenarios
slow_close — delayed FIN
timeout — stall after N bytes
malformed / garbage payloads
target topics: stream, socket, curl
invariants for every interleaving: no lost wakeups, no double uv_close, partial reads reassembled correctly, cancellation-during-read cleans up handles, no refcount leaks
Reference
FUZZ_TESTING.md — Layer 2 (I/O chaos) describes the full strategy, including the Toxiproxy toxics list and the EvilPeer fallback rationale.
Activity
[-]Layer 2: I/O chaos testing for ext/async (stream / socket / curl)[/-][+]I/O chaos testing[/+]#127 io-chaos: EvilPeer foundation — sliced/dripped payload delivery
#127 io-chaos: EvilPeer abrupt-close (reset) toxic
#127 io-chaos: cross transport chaos with logic chaos + chaos event log
#127 fix: Channel(0) split-brain on close racing a parked send()
#127 docs: README — I/O chaos axes, chaos event log, freezing failures
#127 ci: dedicated _FUZZ build so the chaos seed matrix is live
docs: move #136 fuzzy-tests entries out of main CHANGELOG.md