-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jj_realistic_needs_to_be_more_clever
failure is not limited to CI
#1575
Comments
Thanks a lot for making me aware!
It could be that I executed the fixture on a shared drive, and not on the local VM drive. And even if it was the local VM drive, it's also just a simulated disk after all - maybe it's related to that. Maybe as a quick fix, there could be a PR that skips this test on Windows entirely (so it won't be impeding you ), until it's clear what the problem is. |
This conditionally marks the `jj_realistic_needs_to_be_more_clever` test as ignored, when the target is Windows. But the test is still build on Windows, and can be run with: cargo nextest run -p gix -- --ignored jj_realistic_needs_to_be_more_clever This is a workaround for GitoxideLabs#1575. When run on Windows, the test previously checked if it was running on CI and skipped its contents. This removes that logic, since the test no longer runs by default on CI or otherwise.
I've opened #1584 for this. |
This conditionally marks the `jj_realistic_needs_to_be_more_clever` test as ignored, when the target is Windows. But the test is still built on Windows, and can be run with: cargo nextest run -p gix -- --ignored jj_realistic_needs_to_be_more_clever This is a workaround for GitoxideLabs#1575. When run on Windows, the test previously checked if it was running on CI and skipped its contents. This removes that logic, since the test no longer runs by default on CI or otherwise.
Current behavior 😯
The test case
jj_realistic_needs_to_be_more_clever
was added in 7ef1e88 (#1529). It was known to fail in Windows on CI:https://github.com/Byron/gitoxide/blob/d69c6175574f34d6df92b4488ed2c9a85df12c89/gix/tests/object/tree/diff.rs#L396-L401
As indicated in the comment there, it was found pass when run locally on some Windows system. However, it fails when I run in on my main Windows 10 (x86-64) development system. So the failure is not limited to CI.
This run is from the current tip of main, but I believe it has always failed on this system, ever since it was introduced in #1529. (I just didn't get around to reporting it until now.)
All other tests pass on this system. Here's a full run.
Expected behavior 🤔
All tests, including
jj_realistic_needs_to_be_more_clever
, should pass.However, I am not opening this to advocate that the test also be skipped locally or marked as ignored. Probably the fixture or whatever is causing the problem should be fixed, rather than modifying the test to run in even fewer circumstances, since local failures are less of a problem for development in other areas of the project than CI failures would be.
(I am opening this issue in part to report the problem, which does not seem previously to have been known to occur outside CI, but in part so there is an issue to link to when showing full test runs, to explain the presence of this test failure when it is not related to the main topic of an issue or PR.)
Git behavior
I don't know of anything that directly corresponds to this in Git or its test suite, but it could well be that investigation of the fixture would reveal an area where the behavior of gitoxide undesirably differs from that of Git. The existing code comment suggests that the problem is instead in the fixture script or the way it is run, however.
Steps to reproduce 🕹
I do not know what distinguishes my local Windows system from the Windows virtual machine on which the test was found to pass.
The failure occurs every time I run the test on Windows, either together with other tests:
Or by itself:
The text was updated successfully, but these errors were encountered: