-
Notifications
You must be signed in to change notification settings - Fork 177
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
test fail in writev: basic blocking #726
Comments
Am I correct in understanding that this error occurs only sometimes, but the tests usually pass? I vaguely recall us having occasional problems with this test here in the main repo as well. I will try to debug this test in detail. However, will this test occasionally failing be an ongoing problem for your package? E.g., will the tests run on every install, or only during packaging, when you are able to make a decision to ignore a flakey test? |
Yes, it happens only sometimes. I think just once. If a package fails to build (a failed built-in In the buildsevice packages will be scheduled for rebuild if their dependencies changed for whatever reason. The |
I'll try to reproduce this issue, but I might not be able to fix it in a reasonable amount of time, because it has been very rare for me. So, I suggest to go on with it unfixed for now. In the past, I considered it not a problem, because only Lwt developers were running the test suite. Hence the multiple test bugs you've reported :) However, I'll now focus on fixing spurious test failures whenever I observe them, so the tests can be reliable in more contexts. |
I've instrumented the tests in the above commit, so that they can be fixed the next time the error is observed. If they are failing, they will now print something like:
I'm going to close this issue to keep the repo tidy. The underlying problem will get a fix whenever we observe it again. |
I did the same for all other tests that fail occasionally. |
Is there supposed to be some debug for the reported failure? I get nothing but the error result:
|
Yes, there should be. I may be overlooking something, but... This is the final condition for that test: lwt/test/unix/test_lwt_unix.cppo.ml Lines 481 to 483 in 336566d
lwt/test/unix/test_lwt_unix.cppo.ml Lines 307 to 310 in 336566d
The same for lwt/test/unix/test_lwt_unix.cppo.ml Lines 329 to 336 in 336566d
Can you confirm that this code is present in the ref you are using? |
Ah my bad, I see the instrumentation is in the wrong function! These functions are shadowed later. I will add a commit. |
Thanks. It was just failing a few times and I wonder if perhaps some other path failed. I will add a patch to my pkg once it is ready. |
The latest |
current failure: aarch64 |
|
Just want to confirm that I'm working on this, it just looks like it will take some time due to the rarity of the problem. I can reproduce it occasionally, once every few hours of testing. I'm trying to get it to happen more frequently at the moment. I also made some other tests more reliable or instrumented them in hopes of doing so if they fail again later, the commits for that are now in |
By the way, the three |
In case the junk is important, should it perhaps print some sort of hexdump? |
I'm almost 100% sure the junk isn't important, at least not for the present bug. |
I got this spurious error in devel:languages:ocaml/ocaml-lwt with ocaml-4.05 on x86_64:
On other hosts, and other ocaml versions,
runtest
succeeded.The text was updated successfully, but these errors were encountered: