You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rebuilding 1.52.0 against Python 3.12 with fixes applied as described in #139, I observed discard/test-discard.pl failing (works with Python 3.11):
./discard/test-discard.pl: looks like the -o discard mount option did not work
FAIL discard/test-discard.pl (exit status: 2)
It's unclear to me what the perl script has to do with our Python rebuild (nearly everything is rebuilt against Python 3.12 in that build environment), or whether this is just a flaky test, so I am going to disable it for now.
It sort of seems unlikely this would be caused by changing the Python version.
What the test is doing is creating a filesystem with the -o discard mount option, creating a large file, then deleting the large file, and checking that trims made it all the way through to the host backing file.
You can see that pretty clearly in the log. The final (trimmed) size should be much smaller if trimming is happening properly:
$ grep blocks test-discard.pl.log
original size: 0 (blocks)
full size: 28544 (blocks)
trimmed size: 28544 (blocks)
Possible reasons:
It's a random failure, and happened coincidentally with you updating Python.
It's a bug in the host kernel or qemu which also changed at the same time you updated Python.
The backing filesystem (where you are running the libguestfs tests) doesn't support trims, eg it's not something "ordinary" like ext4 or xfs, but is something weird like fat or ext2.
BTW you might want to skip tests that are unreliable (although this is not one that I have had to skip). You can do this by setting the appropriate environment variable, eg:
Hi! 👋
When rebuilding 1.52.0 against Python 3.12 with fixes applied as described in #139, I observed
discard/test-discard.pl
failing (works with Python 3.11):It's unclear to me what the perl script has to do with our Python rebuild (nearly everything is rebuilt against Python 3.12 in that build environment), or whether this is just a flaky test, so I am going to disable it for now.
test-suite.log
test-discard.pl.log
The text was updated successfully, but these errors were encountered: