From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 13D8125782 for ; Thu, 25 Jul 2019 07:33:47 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H8bZNe1WFIJh for ; Thu, 25 Jul 2019 07:33:47 -0400 (EDT) Received: from smtp18.mail.ru (smtp18.mail.ru [94.100.176.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id C99C325775 for ; Thu, 25 Jul 2019 07:33:46 -0400 (EDT) From: "Alexander V. Tikhonov" Subject: [tarantool-patches] [PATCH v2] travis-ci: fix OSX max files limits Date: Thu, 25 Jul 2019 14:33:24 +0300 Message-Id: <30ac1e9bb5e123ffb69b5a004e88fa2178a43b47.1563995445.git.avtikhon@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Kirill Yukhin Cc: "Alexander V. Tikhonov" , tarantool-patches@freelists.org Increased the maximum number of open file descriptors on macOS. Travis-ci: needed the "ulimit -n " call, because found that the tests fail without it even with launchctl limit tool set. Gitlab-ci: needed the "launchctl limit maxfiles " call, because under gitlib-ci it is needed the password to change the limits and we call the sudo tool which separates the local set of the environment. Closes #4373 --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4373-travis-osx-files Issue: https://github.com/tarantool/tarantool/issues/4373 .travis.mk | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.travis.mk b/.travis.mk index 7d349bc21..6e0afc0b1 100644 --- a/.travis.mk +++ b/.travis.mk @@ -134,22 +134,21 @@ build_osx: make -j test_osx_no_deps: build_osx - # Increase the maximum number of open file descriptors on macOS - echo tarantool | sudo -S echo "Initialize sudo for the next commands..." : - sudo sysctl -w kern.maxfiles=${MAX_FILES} || echo tarantool | sudo -S sysctl -w kern.maxfiles=${MAX_FILES} || : - sysctl -w kern.maxfiles || : - sudo sysctl -w kern.maxfilesperproc=${MAX_FILES} || echo tarantool | sudo -S sysctl -w kern.maxfilesperproc=${MAX_FILES} || : - sysctl -w kern.maxfilesperproc || : - sudo launchctl limit maxfiles ${MAX_FILES} || echo tarantool | sudo -S launchctl limit maxfiles ${MAX_FILES} || : - launchctl limit maxfiles || : - sudo ulimit -S -n ${MAX_FILES} || echo tarantool | sudo -S ulimit -S -n ${MAX_FILES} || : - ulimit -S -n || : - sudo ulimit -H -n ${MAX_FILES} || echo tarantool | sudo -S ulimit -H -n ${MAX_FILES} || : - ulimit -H -n - # temporary excluded replication/ suite with some tests from other suites by issues #4357 and #4370 - cd test && ./test-run.py --force $(TEST_RUN_EXTRA_PARAMS) \ - app/ app-tap/ box/ box-py/ box-tap/ engine/ engine_long/ long_run-py/ luajit-tap/ \ - replication-py/ small/ sql/ sql-tap/ swim/ unit/ vinyl/ wal_off/ xlog/ xlog-py/ + # Limits: Increase the maximum number of open file descriptors on macOS: + # Travis-ci needs the "ulimit -n " call + # Gitlab-ci needs the "launchctl limit maxfiles " call + # Also gitlib-ci needs the password to change the limits, while + # travis-ci runs under root user. Limit setup must be in the same + # call as tests runs call. + # Tests: Temporary excluded replication/ suite with some tests + # from other suites by issues #4357 and #4370 + echo tarantool | sudo -S launchctl limit maxfiles ${MAX_FILES} || : ; \ + launchctl limit maxfiles || : ; \ + ulimit -n ${MAX_FILES} || : ; \ + ulimit -n ; \ + cd test && ./test-run.py --force $(TEST_RUN_EXTRA_PARAMS) \ + app/ app-tap/ box/ box-py/ box-tap/ engine/ engine_long/ long_run-py/ luajit-tap/ \ + replication-py/ small/ sql/ sql-tap/ swim/ unit/ vinyl/ wal_off/ xlog/ xlog-py/ test_osx: deps_osx test_osx_no_deps -- 2.17.1