Author rbcollins
Recipients ezio.melotti, michael.foord, pitrou, rbcollins
Date 2012-12-18.02:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355797737.36.0.999533489695.issue16709@psf.upfronthosting.co.za>
In-reply-to
Content
Openstack recently switched from nose to using discover. discover walks the filesystem using os.listdir(), and that is just a thin layer over readdir. On ext3/ext4 filesystems, readdir is in an arbitrary order dependent on file insertion into the directory if dir_index is enabled (which is the default).

This means that files are loaded in an order that isn't reproducable by other developers, so bad tests that have isolation issues can be very tricky to track down.

Just wrapping the os.listdir() in sorted() would be sufficient to make this robust and repeatable, and avoid the headache.
History
Date User Action Args
2012-12-18 02:28:57rbcollinssetrecipients: + rbcollins, pitrou, ezio.melotti, michael.foord
2012-12-18 02:28:57rbcollinssetmessageid: <1355797737.36.0.999533489695.issue16709@psf.upfronthosting.co.za>
2012-12-18 02:28:57rbcollinslinkissue16709 messages
2012-12-18 02:28:55rbcollinscreate