@@ -29,19 +29,25 @@ jobs:
29
29
matrix :
30
30
# Test with different SurrealDB versions
31
31
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' }}
35
32
steps :
36
33
- name : Checkout repository
37
34
uses : actions/checkout@v4
38
35
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
+
39
48
- name : Run end-to-end tests in dev container
40
49
timeout-minutes : 30
41
50
uses :
devcontainers/[email protected]
42
- env :
43
- SURREALDB_VERSION : ${{ matrix.surrealdb-version }}
44
- TIMEOUT_SECONDS : ${{ github.event.inputs.timeout_seconds || '1200' }}
45
51
with :
46
52
subFolder : .
47
53
env : |
52
58
echo "SurrealDB version: $SURREALDB_VERSION"
53
59
echo "Timeout: $TIMEOUT_SECONDS seconds"
54
60
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
+
55
71
echo "=== Running end-to-end test ==="
56
72
# Run the end-to-end test script
57
73
./scripts/e2e-test.sh
0 commit comments