Skip to content

Phase 4 remaining ports: serializers, config-file, platform, threading, pipe, task, profiler #44

Closed

Description

@zackees

#7 closed when feature PR #33 merged, but PR #38 landed only the characterization tests (file-serializer, config-file, threading, task, pipe, profiler, platform). No Phase 4 code was ported.

Remaining:

  • Port each of: file-serializer, buffered-file-serializer, config-file, platform (per OS), threading (posix/windows), pipe, task, profiler. Tier 2 must pass on Linux, macOS and Windows.
  • The 100-runs-without-a-flake requirement for threading/task can't be met from the grind integrator: role caps block direct container runs, and validate.sh has no repeat option. Add a --repeat until-fail:N option to the Tier 2 harness, or a CI job, and run it.

Refs #4, #7, #38

Activity

  1. chriscoveries commented on Oct 10, 2026

    @chriscoveries
    Contributor

    Decisions: two opposite conventions for the same non-UTF-8 path conversion

    Two in-flight ports now handle a Windows path that is not valid UTF-8 in opposite
    ways, so this needs a maintainer decision before either merges:

    What libobs does, for reference: os_fopen (libobs/util/platform.c:55-71)
    calls os_utf8_to_wcs_ptr (platform.c:445-456) and discards its return
    value
    . The conversion ends at utf8_to_wchar (libobs/util/utf8.c:47), which
    calls MultiByteToWideChar(CP_UTF8, 0, …) — flags 0, no
    MB_ERR_INVALID_CHARS. On Vista and later that substitutes U+FFFD and returns

    0, so the conversion never fails and libobs always attempts the mangled path.

    The two sides differ only when the U+FFFD-substituted path names an existing
    file, which is precisely the case where libobs reads or writes a file the caller
    never named. libobs has no way to detect the mangling at all — it is an
    unchecked side effect, not a behavior.

    Recommendation: mirror C (lossy U+FFFD substitution) in both ports, unless
    the maintainers want to treat the refusal as a deliberate safety fix, in which
    case the same choice should be made once, stated here, and applied to both —
    along with the exclusions each port's parity test must then list. What should be
    avoided is merging one of each, which makes the port set inconsistent in a way a
    user could observe (a non-UTF-8 path working in one libobs subsystem and failing
    in another).

    Recorded as an intentional difference in rust/obs-util/tests/file_serializer_parity.rs
    per the testing policy, pending this decision. See also #84 for the oracle stub
    that made the differential test unable to tell us any of this in the first place.

  2. 40 remaining items

  3. chriscoveries commented on Oct 10, 2026

    @chriscoveries
    Contributor

    Phase 4 unit status (fleet tracker):

    Unit Status PR
    file-serializer merged #66 (+ #82 fix)
    buffered-file-serializer merged #76
    config-file merged #77
    pipe (+pipe-posix) merged #78
    task merged #87
    profiler-snapshot (extract) merged —
    profiler.c in progress —
    threading-posix in progress (rebasing on master) —
    platform (per OS) queued, POSIX first —

    Second checkbox still open: the 100-runs-without-a-flake Tier 2 requirement for threading/task — --repeat 100 --tests 'test_threading|test_task' exists in rust/tools/linux-validate/run.sh; still needs a clean 100-run attestation on each OS.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions