-
Notifications
You must be signed in to change notification settings - Fork 20
Fix test atime and ctime instabilities #34
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
Conversation
`test.test_app_actions.TestMove.test_file` sometimes failed due to st_ctime and st_mtime attributes are affected by tests.
`test.test_scrapbook_cache.TestStaticSiteGenerator.test_update01` sometimes failed on linux. Likely checking file existence updates `st_atime` attribute.
I cannot reproduce this issue on Linux Ubuntu. What is the OS you are using? |
It is not a frequent issue. After I noticed it accidentally, I have to run tests in a loop and to wait for some time but usually less than a minute.
I have seen the issue with Ubuntu-18.04 and python-3.6 as well. In both cases I use LXC containers running on Ubuntu-18.04 host. File system: ext4 with relatime,user_xattr,acl options, kernel 5.4.0-58 x86_64 |
@maxnikulin This is an old issue. Can you help confirm whether the issue persists in the latest version? |
I do not run tests regularly last time. I have not tried hard and the environment is a bit specific, but I do not see failures any more. Since the code has changed and conflicts have arisen, it would be better to create new issues if I think, you have addressed the issue while fixing #53, see cd2c704#diff-6b0a0a722560defbce2f85c299f9e1bc53b31f304fb78a1fbf5f32d9f06f73c6L3044, and in the course of some refactoring a91fb11#diff-f2a49b1a8d351fe0c6456427c8f8cd831372aa6413030a5b355ba272da8f5cd0L128 P.S. I have got a couple of other failures. I will look closer at them if you ask. Just for the case that you may guess the reason and may fix it promptly:
I have not filed a dedicated issue since I suspect that it may be caused by my test environment. |
It seems like your system has something wrong about mimetypes definitions. Do you have custom mimetypes? If not, it may be an issue as the tests are mostly designed to work on any devices. |
Thank you for the hint. I have filed #75. |
Some tests failed from time to time due to
st_atime
orst_ctime
stat
attributes. I do not see any reason to check them during of comparison of files since they depend on precise timings of file system operations.Maybe there is a better way to fix the tests.