diff --git a/.github/ensure-tester/action.yml b/.github/ensure-tester/action.yml index d96e117e3c0..47dc913627e 100644 --- a/.github/ensure-tester/action.yml +++ b/.github/ensure-tester/action.yml @@ -18,6 +18,7 @@ inputs: default: BestEffort runs: # define an action, runs in OS of caller + # ami-052a1e16394277fdf is an ubuntu 22.04.4 jammy using: composite steps: - name: Select Instance Type and AMI diff --git a/.github/ensure-tester/run b/.github/ensure-tester/run index bb40831c515..947e799872d 100755 --- a/.github/ensure-tester/run +++ b/.github/ensure-tester/run @@ -5,7 +5,6 @@ ttl=$1 scripts/run_on_tester " set -eu; sudo shutdown -P $ttl; - sudo sysctl fs.inotify.max_user_watches=65536 function clone { if ! [ -d ~/run-$RUN_ID ]; then mkdir -p ~/run-$RUN_ID; @@ -18,6 +17,12 @@ scripts/run_on_tester " } export RUN_ID GIT_COMMIT export -f clone + + # update fs limits for k8s + sudo sysctl -w fs.inotify.max_user_watches=65536 + sudo sysctl -w fs.inotify.max_user_instances=65536 + ulimit -n 32768 + flock /var/lock/clone.lock bash -c clone cd ~/run-$RUN_ID # reuse script from ensure-builder, but don't set up chron