-22
@@ -24,30 +24,8 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: debug-inotify
|
|
||||||
image: gitea.violin-work.online/registry/maven:3.9-eclipse-temurin-22
|
|
||||||
security_context:
|
|
||||||
apparmor_profile: runtime/unconfined
|
|
||||||
commands:
|
|
||||||
- grep Seccomp /proc/self/status || true
|
|
||||||
- cat /proc/self/attr/current || true
|
|
||||||
- python3 -c "import ctypes; libc=ctypes.CDLL('libc.so.6'); fd=libc.inotify_init(); print('inotify_init:', fd); ret=libc.inotify_add_watch(fd, b'/tmp', 1); print('add_watch:', ret)" 2>&1 || true
|
|
||||||
- ulimit -n
|
|
||||||
- cat /proc/self/limits | grep "Max open files"
|
|
||||||
- apt-get update && apt-get install -y strace
|
|
||||||
- strace -e trace=inotify_add_watch -f -o /tmp/inotify.log
|
|
||||||
mvn clean install -DskipTests -B --no-transfer-progress
|
|
||||||
-Dmaven.watcher.disabled=true || true
|
|
||||||
- grep "inotify_add_watch" /tmp/inotify.log | wc -l
|
|
||||||
- head -50 /tmp/inotify.log
|
|
||||||
|
|
||||||
- name: compile
|
- name: compile
|
||||||
image: gitea.violin-work.online/registry/maven:3.9-eclipse-temurin-22
|
image: gitea.violin-work.online/registry/maven:3.9-eclipse-temurin-22
|
||||||
environment:
|
|
||||||
MAVEN_OPTS: >-
|
|
||||||
-Dmaven.watcher.disabled=true
|
|
||||||
-Dmaven.compiler.useIncrementalCompilation=false
|
|
||||||
-Xmx2g
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /root/.m2
|
- mkdir -p /root/.m2
|
||||||
- cp /config/settings.xml /root/.m2/settings.xml
|
- cp /config/settings.xml /root/.m2/settings.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user