[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] tools/tests: Make E2BIG non-fatal to xenstore unit test
On 15.10.21 15:16, Ian Jackson wrote: Kevin Stefanov writes ("[PATCH v2] tools/tests: Make E2BIG non-fatal to xenstore unit test"):Xenstore's unit test fails on read and write of big numbers if quota-maxsize is set to a lower number than those test cases use. Output a special warning instead of a failure message in such cases and make the error non-fatal to the unit test.I realise that I am late to this, but I'm not sure I agree with the basic principle of this change. In general tolerating particular errors in a test, and simply abandoning the test if they occcur, is normally not the best approach. Questions that come to my mind (and which aren't answered in the commit message and probably should be) include: Why does test-xenstore using these large numbers for its tests ? For testing large data packets. Why would you run the tests with a quota too low for the tests ? Good question. Might this test change not in principle miss genuine bugs ? Yes, e.g. if a test returns E2BIG even if it shouldn't. So I agree to being more cautious here. Maybe a parameter could be added to limit the allowed data size? Then the "large data" test could be adjusted to not send more data than allowed (it should be noted that the node size quota is including data, names of children, and access right entries, so the pure node data should be selected with some spare size in mind, e.g. 100 bytes smaller than the quota). Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |