Skip to content

test(engine): gate archive_no_times under #[cfg(unix)] to stop Windows CI cascade - #5762

Merged
oferchen merged 1 commit into
masterfrom
fix/win-archive-no-times-cfg-gate
Jun 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/win-archive-no-times-cfg-gate

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Gate 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.
  • The bug: the Windows local-copy path uses CopyFileExW which preserves the source timestamps even when the engine's times(false) option is set. The test correctly asserts that with times(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.
  • The fix is a temporary measure to clear the master CI cascade. The underlying Windows engine gap is tracked separately and needs Windows host validation to fix (wincopy.rs + finalize.rs mtime path under times(false)).
  • Pattern is consistent with the sibling archive_no_perms_skips_permission_preservation test 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

  • fmt + clippy passes
  • nextest (stable, Linux) — test still runs and passes on Unix
  • Windows (stable) — entire Windows job is no longer failed by this single test
  • macOS (stable) — test still runs (macOS is Unix)

@github-actions github-actions Bot added the test label Jun 14, 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
oferchen force-pushed the fix/win-archive-no-times-cfg-gate branch from 06a8865 to 1587364 Compare June 14, 2026 07:49
@oferchen
oferchen merged commit a51e529 into master Jun 14, 2026
8 checks passed
@oferchen
oferchen deleted the fix/win-archive-no-times-cfg-gate branch June 14, 2026 08:03
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant