Skip to content

Phase 4: stateful, I/O and platform utilities (file serializers, config-file, platform, threading, pipe, task, profiler) #7

Closed

Description

@zackees

Part of the roadmap meta issue. Requires Phase 2 (cross-platform CI) and Phase 3 (dstr, bmem).

Context

file-serializer.c, buffered-file-serializer.c, config-file.c, platform.c, platform-nix*.c, platform-windows.c, threading-posix.c/-windows.c, pipe*.c, task.c, profiler.c, source-profiler.c. They touch the filesystem, threads, processes and per-OS APIs, so tests must be deterministic and Tier 2 must pass on all three OSes.

Proposal

  1. Characterization cmocka tests first, using a per-test temp directory. No sleeps: synchronize on events/semaphores.
  2. Tier 3 parity for I/O code runs both implementations against separate temp dirs and compares the resulting files byte for byte, plus return values.
  3. Platform files are ported per OS. A port isn't done until that OS's Tier 2 passes in CI.
  4. Threading and task: add a loom or stress-style Rust test on top of the parity tests.

Acceptance criteria

  • Characterization tests merged before each port; deterministic (100 consecutive CI runs with no flakes for threading tests).
  • Each port: RED → GREEN, Tier 2 OFF/ON on Linux, Windows, macOS, Tier 3 parity, mutation check.
  • config-file: round-trip parity on arbitrary INI input, including malformed lines.
  • Exported-symbol sets identical OFF vs ON on every OS.

Decisions

  • Per-OS files are ported per OS, not all at once.

Activity

  1. added
    enhancement
    on Oct 8, 2026
  2. added 2 commits that reference this issue on Oct 9, 2026
  3. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Landed on feature branch grind/meta-4-9b41 via #38; closes when feature PR #33 merges into master.

  4. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Closed by feature PR #33, but this phase landed only partially. The remaining work is tracked in #44 (a sub-issue of #4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions