Skip to content

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Jan 9, 2026

Fixes Windows CI failure from commit 53d6409 (#481).

Problem

The test_list_full_working_tree_conflicts test was failing on Windows CI because git's mtime-based change detection wasn't reliably seeing file modifications. The test would show status (behind) instead of (would conflict) because the working tree conflict detection was falling back to commit-level checking.

Root Cause

Windows has lower timestamp resolution in some environments (especially CI), which can cause git to miss file changes when they happen quickly after a previous operation. The test writes a file, but git doesn't see it as modified because the mtime matches the index entry.

Solution

  1. Add 100ms sleep on Windows before git update-index --refresh to ensure mtime differs from index
  2. Add diagnostic assertion to verify git detects the change (will help catch similar issues)
  3. Update comment to mention Windows alongside macOS for mtime issues

Testing

  • ✅ Test passes on Linux (tested locally)
  • ⏳ Waiting for Windows CI to confirm fix

Related


This is an automated fix. Please review the approach and test on Windows before merging.

…licts test

The test_list_full_working_tree_conflicts test was failing on Windows CI
because git's mtime-based change detection wasn't reliably seeing the file
modification. This is due to Windows having lower timestamp resolution in
some environments (especially CI).

Changes:
- Add 100ms sleep on Windows before git update-index refresh
- Add diagnostic assertion to verify git detects the change
- Update comment to mention Windows alongside macOS

Fixes CI failure from commit 53d6409.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@max-sixty max-sixty merged commit 3d11820 into main Jan 9, 2026
19 checks passed
@max-sixty max-sixty deleted the fix/ci-windows-mtime-detection branch January 9, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants