Skip to content

Commit 3de9d7a

Browse files
committed
apply limit on cloudbuild.yaml
1 parent ce6c2f6 commit 3de9d7a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cloudbuild/run_zonal_tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ echo '--- Setting up environment variables on VM ---'
2323
export ZONAL_BUCKET=${_ZONAL_BUCKET}
2424
export RUN_ZONAL_SYSTEM_TESTS=True
2525
echo '--- Running Zonal tests on VM ---'
26-
ulimit -n 1048576
2726
pytest -vv -s --log-format='%(asctime)s %(levelname)s %(message)s' --log-date-format='%H:%M:%S' tests/system/test_zonal.py

cloudbuild/zb-system-tests-cloudbuild.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ steps:
5252
args:
5353
- "-c"
5454
- |
55+
ulimit -Sn 4096
56+
# Double-check the limit was applied
57+
CURRENT_LIMIT=$(ulimit -n)
58+
if [ "$CURRENT_LIMIT" -lt 4096 ]; then
59+
echo "ERROR: Failed to set ulimit to 4096. Current limit is $CURRENT_LIMIT "
60+
exit 1
61+
fi
5562
set -e
5663
# Wait for the VM to be fully initialized and SSH to be ready.
5764
for i in {1..10}; do

0 commit comments

Comments
 (0)