increase fs.inotify.max_user_watches to run wb2 tests
authorPeter Amstutz <peter.amstutz@curii.com>
Tue, 16 Jan 2024 20:33:17 +0000 (15:33 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 16 Jan 2024 20:33:17 +0000 (15:33 -0500)
refs #21393

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

jenkins/packer-images/jenkins-image-arvados-tests.sh
jenkins/packer-images/jenkins-image-with-docker.sh

index 5fadb5d5be3f829231d18e08dde27da36a8a17a8..5736ed1fbc5d75b6538ac42df35908ea2c36c11d 100755 (executable)
@@ -36,6 +36,10 @@ sudo go run ./cmd/arvados-server install -type test
 # This is used in our test suite.
 echo user_allow_other | sudo tee -a /etc/fuse.conf
 
+# React uses a lot of filesystem watchers (via inotify). Increase the default
+# so we have a higher limit at runtime.
+echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
+
 # Our Jenkins jobs use this directory to store the temporary files for the tests
 mkdir /home/jenkins/tmp
 
index cb279567810ba65156ef7b46b302fd0b9f03a067..a24c23de0001faf62ae8e8862e92de3815335b08 100755 (executable)
@@ -20,3 +20,7 @@ sudo mv packer /usr/local/bin/
 cd /usr/local
 sudo git clone --depth 1 https://github.com/arvados/arvados-dev
 sudo chown -R jenkins:jenkins /usr/local/arvados-dev/
+
+# React uses a lot of filesystem watchers (via inotify). Increase the default
+# so we have a higher limit at runtime.
+echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf