File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ inputs:
18
18
default : BestEffort
19
19
runs :
20
20
# define an action, runs in OS of caller
21
+ # ami-052a1e16394277fdf is an ubuntu 22.04.4 jammy
21
22
using : composite
22
23
steps :
23
24
- name : Select Instance Type and AMI
Original file line number Diff line number Diff line change 5
5
scripts/run_on_tester "
6
6
set -eu;
7
7
sudo shutdown -P $ttl ;
8
- sudo sysctl fs.inotify.max_user_watches=65536
9
8
function clone {
10
9
if ! [ -d ~/run-$RUN_ID ]; then
11
10
mkdir -p ~/run-$RUN_ID ;
@@ -18,6 +17,12 @@ scripts/run_on_tester "
18
17
}
19
18
export RUN_ID GIT_COMMIT
20
19
export -f clone
20
+
21
+ # update fs limits for k8s
22
+ sudo sysctl -w fs.inotify.max_user_watches=65536
23
+ sudo sysctl -w fs.inotify.max_user_instances=65536
24
+ ulimit -n 32768
25
+
21
26
flock /var/lock/clone.lock bash -c clone
22
27
cd ~/run-$RUN_ID
23
28
# reuse script from ensure-builder, but don't set up chron
You can’t perform that action at this time.
0 commit comments