Skip to content

Commit b73963f

Browse files
committed
Try fixing silent E2E test failures by tweaking limits
1 parent f24a823 commit b73963f

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/e2e.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,25 @@ jobs:
2929
matrix:
3030
# Test with different SurrealDB versions
3131
surrealdb-version: ["v3.0.0-alpha.5", "v2.3.3", "v2.2.3"]
32-
env:
33-
SURREALDB_VERSION: ${{ matrix.surrealdb-version }}
34-
TIMEOUT_SECONDS: ${{ github.event.inputs.timeout_seconds || '1200' }}
3532
steps:
3633
- name: Checkout repository
3734
uses: actions/checkout@v4
3835

36+
- name: Configure system limits for dagger
37+
run: |
38+
echo "Current system limits:"
39+
echo " inotify max_user_instances: $(cat /proc/sys/fs/inotify/max_user_instances)"
40+
echo " inotify max_user_watches: $(cat /proc/sys/fs/inotify/max_user_watches)"
41+
echo " ulimit -n: $(ulimit -n)"
42+
43+
echo "Configuring system limits for better dagger performance..."
44+
echo fs.inotify.max_user_instances=8192 | sudo tee -a /etc/sysctl.conf
45+
echo fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf
46+
sudo sysctl -p
47+
3948
- name: Run end-to-end tests in dev container
4049
timeout-minutes: 30
4150
uses: devcontainers/[email protected]
42-
env:
43-
SURREALDB_VERSION: ${{ matrix.surrealdb-version }}
44-
TIMEOUT_SECONDS: ${{ github.event.inputs.timeout_seconds || '1200' }}
4551
with:
4652
subFolder: .
4753
env: |
@@ -52,6 +58,16 @@ jobs:
5258
echo "SurrealDB version: $SURREALDB_VERSION"
5359
echo "Timeout: $TIMEOUT_SECONDS seconds"
5460
61+
echo "=== Environment Information ==="
62+
echo "Container environment:"
63+
echo " Available memory: $(free -h)"
64+
echo " Available disk space: $(df -h /)"
65+
echo " Docker version: $(docker --version)"
66+
echo " System limits:"
67+
echo " ulimit -n: $(ulimit -n)"
68+
echo " inotify instances: $(cat /proc/sys/fs/inotify/max_user_instances 2>/dev/null || echo 'unavailable')"
69+
echo " inotify watches: $(cat /proc/sys/fs/inotify/max_user_watches 2>/dev/null || echo 'unavailable')"
70+
5571
echo "=== Running end-to-end test ==="
5672
# Run the end-to-end test script
5773
./scripts/e2e-test.sh

0 commit comments

Comments
 (0)