Skip to content

fuzzy chaos test coverage #125

Closed

Description

@EdmondDantes

Follow-up to #102 / PR #110, which landed the chaos harness (Gherkin DSL, per-scenario .phpt generator, Layer-1 scheduler fuzz hook in internal/fuzz.c). Remaining work tracked here.

1. API coverage gaps

fuzzy-tests/COVERAGE.md reports 94 / 167 (56.3%). Uncovered surfaces:

  • CircuitBreaker 0/4, CircuitBreakerStrategy 0/3
  • Context 0/8 (get/set/find/has + *Local variants)
  • CompositeException 0/2, RemoteException 0/2
  • Pool 3/13 (acquire/release/tryAcquire/activeCount/idleCount/getState/recover/activate/deactivate/setCircuitBreakerStrategy)
  • Coroutine introspection: getAwaitingInfo, getContext, getSpawn*/getSuspend* location accessors, asHiPriority, isQueued
  • Scope: asNotSafely, awaitAfterCancellation, disposeAfterTimeout, getChildScopes, setChildScopeExceptionHandler
  • TaskGroup/TaskSet: getResults, getErrors, getIterator, spawnWithKey, joinAll/joinAny/joinNext, suppressErrors
  • ThreadPool counters: getCompletedCount/getPendingCount/getRunningCount/getWorkerCount
  • Channel capacity/getIterator, ThreadChannel capacity, FileSystemWatcher getIterator, Future/FutureState location accessors

2. Known feature-file gaps

  • await/await_any.feature — reinstate the omitted | F2 | 2 | Examples row (blocked on inline-fire asymmetry; the await_any_or_fail deadlocks when only later futures complete #103 fix shipping start_waker_events replay unblocks it).
  • thread_channel/multi_thread.feature — not yet written; needs a harness extension to model Async\spawn_thread() bodies (a coroutine planned to run inside a child thread).

3. CI wiring

No per-PR / nightly seed-matrix workflow exists yet. Wire the Layer-1 scheduler matrix (fifo + several random:SEED) into CI as documented in FUZZ_TESTING.md.

4. Roadmap layers (stretch)

  • Layer 2 — I/O chaos (Toxiproxy / in-process EvilPeer) under fuzzy-tests/io_chaos/.
  • Layer 5 — allocator fault injection (emalloc wrapper, ASYNC_ALLOC_FAULT_RATE).
  • PCT scheduler mode — finish the depth-bounded algorithm stubbed in internal/fuzz.c (priority-change-points).

Activity

  1. added
    enhancement
    on May 21, 2026
  2. changed the title [-]Continue fuzzy/chaos test coverage for ext/async (follow-up to #102)[/-] [+]fuzzy chaos test coverage[/+] on May 21, 2026
  3. self-assigned this
    on May 21, 2026
  4. added this to the TrueAsync 0.7.0 milestone on May 21, 2026
  5. added 12 commits that reference this issue on May 21, 2026
  6. linked a pull request that will close this issue125 fuzzy chaos test coverage #126on May 21, 2026
  7. added
    tests
    and removed
    enhancement
    on May 21, 2026
  8. added 2 commits that reference this issue on May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions