Open rlratzel opened 1 year ago
I tracked this down to these lines in the test, which are testing that the call raises RuntimeError
. The test output is showing the worker failing as intended, and the test passes because it's expecting this.
@eriknw - should this issue be closed, or do you think we need to change anything?
discussed this offline, copied with permission:
Erik: confirmed, looks like this is deliberately tested. It's unfortunate that the output shown with -s is messy from this; I wonder if the warning be better if it didn't raise a RuntimeError?
Rick: I was thinking that too, since I use RuntimeError as more of a catch-all for things the user has no control over. I don't know if this is worth a PR or not, but another improvement could be to add prints around those assertions basically saying something along the lines of "testing missing rows, expect a RuntimeError from worker(s)", followed by a "done testing missing rows, exceptions should no longer be seen". This will be shown only when it's needed (when -s is used). Yet another option could be to make those assertions separate tests with self-explanatory names, although I doubt that would work as well as a print.
Rick: it's tricky because the context here is a failing MG test suite, and users just scanning logs for any traceback/error as a starting point. I think a print would help but only if the user is reading closely.
data_store/test_property_graph_mg.py::test_vertex_vector_property
passes, but it should not because the worker throws an exception. Test command (on a 2-GPU workstation) and output is below.We should fix the problem that results in the exception, and also ideally fix the test so it does not pass when the worker fails this way.
data_store/test_property_graph_mg.py::test_vertex_vector_property
shows aRuntimeError
in worker when pytest is run with-s
. This is normal behavior, but looks like a worker is failing and the test is incorrectly passing if the user is not familiar with how the test is written. The command to run the test and the output is below: