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
{{ message }}
Repository navigation
test: isolate safe-write parity from concurrent Windows process spawns #1849
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.
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.
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.
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.
Activity
zackees commentedon Oct 22, 2026
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.
zackees commentedon Oct 22, 2026
Pushed
23049778ain #1844. Windows job120156380454on 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::isolatedwith 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.zackees commentedon Oct 23, 2026
Native Windows confirmation on
23049778a: job 120160576131 passed.safe_write_matches_the_c_filepassed 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.