Skip to content

Test Failure on Windows 11 ARM64: misc::sort_accessed Output Order Mismatch Due to Access Time Handling #3071

@vishvanatarajan

Description

@vishvanatarajan

Please tick this box to confirm you have reviewed the above.

  • I have a different issue.

What version of ripgrep are you using?

ripgrep 14.1.1 (rev 4649aa9)

Features:

  • pcre2

SIMD:

  • compile: +NEON
  • runtime: +NEON

Note: PCRE2 is not available in this build of ripgrep.

How did you install ripgrep?

Built from source.

What operating system are you using ripgrep on?

OS: Microsoft Windows 11 Home (Build 10.0.26100)
Architecture: ARM64

Describe your bug.

When running cargo test --all, the following two tests fail:

misc::sort_accessed – consistently fails on the system.
misc::sortr_accessed – fails intermittently on the system.

The failure appears to be related to differences in how file access times are handled on Windows ARM64, possibly due to NTFS behavior or platform-specific metadata handling.

What are the steps to reproduce the behavior?

  1. Clone the ripgrep repository.

  2. Build the project using cargo build.

  3. Run the full test suite with:
    cargo test --all

What is the actual behavior?

The test misc::sort_accessed fails due to a mismatch in expected vs actual output order. The expected output assumes a specific access time order that is not preserved on this platform.

https://gist.github.com/vishvanatarajan/a2c3301b52f11be9b98ec4a411c62761

What is the expected behavior?

All the tests must pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rollupA PR that has been merged with many others in a rollup.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions