Skip to content

test: isolate safe-write parity from concurrent Windows process spawns #1849

Closed

Description

@zackees

Observed failure

Windows Rust job 120156380454 on d7966e46d passed the new application build contracts, then failed tests::platform::platform_file_parity::safe_write_matches_the_c_file:

  • existing target: true
  • temporary extension: tmp
  • backup extension: none
  • BOM marker: false
  • C oracle returned true; Rust returned false

The utility suite finished with 698 passed / 1 failed. The stack points to rust/obs-util/tests/platform/platform_file_parity.rs:397.

Investigation

The test runs its complete safe-write/replacement matrix directly in the parallel utility harness. It does not call the existing common::isolated helper. The testing policy explicitly requires file-replacement parity checks to re-exec: a concurrent Windows child may inherit an open C stdio handle and prevent replacement after the original process closes it. This failure is consistent with that documented race; the hosted log does not expose the underlying Win32 error, so it is not proof of a production algorithm defect.

Required fix

Run this existing case in an exact-selector child through common::isolated(concat!(module_path!(), "::safe_write_matches_the_c_file")), retaining every oracle/file-content assertion. Do not retry, skip, serialize the whole suite, change production file behavior, or create a new test binary. Verify the same parity test locally and on Windows CI. This blocks #1844 / #1332.

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Claiming: isolate the existing safe-write parity case with the repository exact-selector helper, preserve its full matrix/assertions, and validate locally plus Windows CI as the focused blocker fix in #1844. Hosted failure is the RED evidence; no new worktree, test binary, or production-code change.

  2. added
    claimed
    on Oct 22, 2026
  3. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Pushed 23049778a in #1844. Windows job 120156380454 on the preceding head passed the new language-standard/helper contracts, then hit the separate safe-write parity failure recorded in this issue.

    The existing safe-write parity case now uses common::isolated with its exact module selector, as required by the testing policy. All 64 combinations and all oracle/file-content assertions remain intact; no retries/skips or production changes. The same case passes locally, Clippy and formatting pass, and the same primary review is clean. Following current-head Windows CI for native confirmation.

  4. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Native Windows confirmation on 23049778a: job 120160576131 passed. safe_write_matches_the_c_file passed with its exact-selector child guard; the full utility suite passed 699 tests with zero failures. The application category also passed 52 tests, including both new C++ contracts, and Clippy passed.

    Log retained at /tmp/obs-1332-cpp-ci-2304-windows-rust.log. No assertions, combinations, retries or skips changed. #1844 still awaits the remaining required platform jobs before normal merge queue admission.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions