Ned Batchelder: Bug #915: please help!
CRANK

Sunday 12 January 2020I just released coverage.py 5.0.3, with two bug fixes. There was another bug I really wanted to fix, but it has stumped me. I’m hoping someone can figure it out.Bug #915 describes a disk I/O failure. Thanks to some help from Travis support, Chris Caron has provided instructions for reproducing it in Docker, and they work: I can generate disk I/O errors at will. What I can’t figure out is what coverage.py is doing wrong that causes the errors.To reproduce it, start a Travis-based docker image:cid=$(docker run -dti --privileged=true --entrypoint=/sbin/init \-v /sys/fs/cgroup:/sys/fs/cgroup:ro \travisci/ci-sardonyx:packer-1542104228-d128723)docker exec -it $cid /bin/bashThen in the container, run these commands:su - travisgit clone --depth=1 --branch=nedbat/debug-915  apprise-apisource ~/virtualenv/python3.6/bin/activatepip install toxtox -e bad,goodThis will run two tox environments, called good and bad. Bad will fail with a disk I/O error, good will succeed. The…

nedbatchelder.com
Related Topics: