TestInotifyOverflow test fails on newer host systems

Bug #1971967 reported by Markus Ueberall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-fsnotify (Ubuntu)
New
Undecided
Unassigned

Bug Description

The included TestInotifyOverflow test unexpectedly fails on newer host systems if the host system's fs.inotify.max_queued_events is greater than 128*1024:

[2022-05-06T11:15:11+0200] ubuntu@pbuilder-amd64:/var/cache/pbuilder/tmp/podman_buildah_skopeo% grep FAIL golang-fsnotify_151-2_all.log__REDO
--- FAIL: TestInotifyOverflow (0.91s)
FAIL
FAIL github.com/fsnotify/fsnotify 9.762s
FAIL

[2022-05-06T11:18:18+0200] root@desktop01:~# sysctl fs.inotify.max_queued_events
fs.inotify.max_queued_events = 1048576

In order to rebuild the package, it's necessary to temporarily modify said system value (e.g., using "sysctl -w fs.inotify.max_queued_events=16384"), which is rather cumbersome -- cf. https://<email address hidden>/msg04669.html

It would be best to remove the above test (or maybe keep it but replace the threshold with an absurdly high number?)

----
[2022-05-06T11:18:25+0200] root@desktop01:~# lsb_release -rd
Description: Ubuntu 20.04.4 LTS
Release: 20.04

[2022-05-06T11:25:45+0200] ubuntu@pbuilder-amd64:/var/cache/pbuilder/tmp/podman_buildah_skopeo% _hgrep dget | grep fsnotify
 9911 [2022-05-06T11:06:06+0200] dget http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-fsnotify/golang-fsnotify_1.5.1-1.dsc
[2022-05-06T11:25:53+0200] ubuntu@pbuilder-amd64:/var/cache/pbuilder/tmp/podman_buildah_skopeo% ll original/*fsnotify*
-rw-rw-r-- 1 ubuntu ubuntu 3588 2022-05-06 10:05:47 original/golang-fsnotify_1.5.1-1.debian.tar.xz
-rw-rw-r-- 1 ubuntu ubuntu 2228 2022-05-06 10:05:46 original/golang-fsnotify_1.5.1-1.dsc
-rw-rw-r-- 1 ubuntu ubuntu 32691 2022-05-06 10:05:46 original/golang-fsnotify_1.5.1.orig.tar.gz
----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.