Skip to content

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Jan 9, 2026

Problem

CI failed on main with this test failure:

The test_list_full_working_tree_conflicts test expected the Status column to show ! ✗ (working tree conflict + dirty) but got ! ↓ (working tree conflict + behind) instead. This indicates git didn't detect the modified file.

Root Cause

Git's mtime-based change detection wasn't catching the file modification in Ubuntu CI. The test already had a 100ms sleep for Windows (added in #485), but Linux CI environments with tmpfs can have the same timestamp precision issues.

Fix

Remove the #[cfg(target_os = "windows")] conditional and apply the 100ms sleep unconditionally. This ensures git has time to detect the file change on all platforms.

Testing

  • Ran the test 5 times locally - all passed
  • Unit tests pass
  • Waiting for CI to confirm

This is an automated fix for human review.

The test_list_full_working_tree_conflicts test was failing intermittently
in CI on Ubuntu due to filesystem timestamp precision issues. Git's
mtime-based change detection wasn't catching the modified file because the
modification happened within the same filesystem timestamp window.

The test already had a 100ms sleep for Windows, but Linux CI environments
(especially with tmpfs) can have the same issue. The fix is to apply the
sleep unconditionally across all platforms.

Fixes CI failure from 71b7ea3
Run: https://github.com/max-sixty/worktrunk/actions/runs/20857104231

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@max-sixty max-sixty merged commit 270b9ec into main Jan 9, 2026
19 checks passed
@max-sixty max-sixty deleted the fix/ci-timing-test-sleep branch January 9, 2026 16:02
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