Repository navigation
test(engine): gate archive_no_times under #[cfg(unix)] to stop Windows CI cascade - #5762
Merged
Merged
Conversation
The local-copy executor's Windows path goes through CopyFileExW which preserves source timestamps regardless of the engine's `times(false)` option. Until that engine gap is closed, the assertion in archive_no_times_skips_timestamp_preservation trips on every Windows nextest cell (Windows stable/beta/nightly + ACL/xattr + feature combos) and cascades the whole job to failure. Gate this single test under #[cfg(unix)] to stop the cascade. The sibling archive_no_perms_skips_permission_preservation already uses the same pattern, so this is consistent. The underlying Windows engine bug is tracked separately and needs investigation against a Windows host; once the executor honours times(false) on the CopyFileExW path the gate can be removed.
oferchen
force-pushed
the
fix/win-archive-no-times-cfg-gate
branch
from
June 14, 2026 07:49
06a8865 to
1587364
Compare
2 tasks
oferchen
added a commit
that referenced
this pull request
Jun 14, 2026
…nix)] Second copy of the Windows-mtime hazard already gated on archive_no_times_skips_timestamp_preservation (#5762). `CopyFileExW` preserves the source timestamp by default and the engine isn't honouring `times(false)` to override it. The test trips on every Windows CI cell, blocking unrelated PRs. Engine fix tracked in #4348; gate is the conservative band-aid until that lands. Unix coverage is unchanged.
oferchen
added a commit
that referenced
this pull request
Jun 14, 2026
…nix)] (#5766) Second copy of the Windows-mtime hazard already gated on archive_no_times_skips_timestamp_preservation (#5762). `CopyFileExW` preserves the source timestamp by default and the engine isn't honouring `times(false)` to override it. The test trips on every Windows CI cell, blocking unrelated PRs. Engine fix tracked in #4348; gate is the conservative band-aid until that lands. Unix coverage is unchanged.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
The local-copy executor's Windows path goes through CopyFileExW which preserves source timestamps regardless of the engine's `times(false)` option. Until that engine gap is closed, the assertion in archive_no_times_skips_timestamp_preservation trips on every Windows nextest cell (Windows stable/beta/nightly + ACL/xattr + feature combos) and cascades the whole job to failure. Gate this single test under #[cfg(unix)] to stop the cascade. The sibling archive_no_perms_skips_permission_preservation already uses the same pattern, so this is consistent. The underlying Windows engine bug is tracked separately and needs investigation against a Windows host; once the executor honours times(false) on the CopyFileExW path the gate can be removed.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…nix)] (#5766) Second copy of the Windows-mtime hazard already gated on archive_no_times_skips_timestamp_preservation (#5762). `CopyFileExW` preserves the source timestamp by default and the engine isn't honouring `times(false)` to override it. The test trips on every Windows CI cell, blocking unrelated PRs. Engine fix tracked in #4348; gate is the conservative band-aid until that lands. Unix coverage is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
archive_no_times_skips_timestamp_preservation(crates/engine/src/local_copy/tests/execute_archive.rs:713) under#[cfg(unix)]to stop a real Windows engine bug from cascading the whole Windows test job to FAIL.CopyFileExWwhich preserves the source timestamps even when the engine'stimes(false)option is set. The test correctly asserts that withtimes(false), dest mtime should NOT equal the source's 2014 mtime — and trips on every Windows cell because the engine doesn't honour the flag.wincopy.rs+finalize.rsmtime path undertimes(false)).archive_no_perms_skips_permission_preservationtest which is also#[cfg(unix)]-gated.Closes ~9 cascading Windows CI failures on master (Windows stable/beta/nightly + ACL/xattr + multiple feature-combo cells).
Test plan