[New-bugs-announce] [issue33655] test_posix_fallocate fails on FreeBSD buildbots with ZFS file systems

Ned Deily report at bugs.python.org
Sat May 26 15:52:51 EDT 2018


New submission from Ned Deily <nad at python.org>:

Seen on some of the various FreeBSD buildbots:

======================================================================
ERROR: test_posix_fallocate (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.7.koobs-freebsd-current/build/Lib/test/test_posix.py", line 342, in test_posix_fallocate
    posix.posix_fallocate(fd, 0, 10)
OSError: [Errno 22] Invalid argument
----------------------------------------------------------------------

As discussed in Issue31106 msg312453 and successors, the failure is due to posix_fallocate not being implemented on ZFS and the difficulty of determining in a platform-independent way what kind of file system a given file resides on.  The test already ignores EINVAL ("Invalid argument") errors when run on Solaris-type platforms due to the common use of ZFS there.  In lieu of a more precise test for fs type, we should also ignore EINVAL errors in this test when run on *BSD platforms.  Also, rather than silently ignoring the error, it may be better to use a SkipTest message.

----------
assignee: ned.deily
components: FreeBSD
messages: 317763
nosy: koobs, ned.deily
priority: normal
severity: normal
stage: patch review
status: open
title: test_posix_fallocate fails on FreeBSD buildbots with ZFS file systems
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33655>
_______________________________________


More information about the New-bugs-announce mailing list