@@ -116,14 +116,9 @@ runs:
116116 if : ${{ env.patch_otel_java == 'true' }}
117117 shell : bash
118118 run : |
119- echo "=== OPENTELEMETRY-JAVA ERRORS ONLY ==="
119+ echo "=== OPENTELEMETRY-JAVA LAST 15000 LINES ==="
120120 cd opentelemetry-java || exit 1
121- echo "=== CRITICAL ERRORS ==="
122- find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception\|BUILD FAILED" {} \; | head -3 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 3 -B 1 "FAILED\|ERROR\|Exception\|BUILD FAILED" "{}" | head -20'
123- echo "=== COMPILATION FAILURES ==="
124- find . -name "*.log" -exec grep -l "compilation failed\|cannot find symbol" {} \; | head -2 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 2 "compilation failed\|cannot find symbol" "{}" | head -15'
125- echo "=== BUILD SCAN URL ==="
126- grep -r "https://gradle.com/s/" . | head -1 || echo "No build scan URL found"
121+ find . -name "*.log" -type f | head -1 | xargs -I {} tail -15000 "{}" || echo "No log files found"
127122
128123 - name : cleanup opentelemetry-java
129124 run : rm -rf opentelemetry-java
@@ -148,16 +143,9 @@ runs:
148143 if : ${{ env.patch_otel_java_contrib == 'true' }}
149144 shell : bash
150145 run : |
151- echo "=== OPENTELEMETRY-JAVA-CONTRIB ERRORS ONLY ==="
146+ echo "=== OPENTELEMETRY-JAVA-CONTRIB LAST 15000 LINES ==="
152147 cd opentelemetry-java-contrib || exit 1
153- echo "=== CRITICAL ERRORS ==="
154- find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception\|BUILD FAILED" {} \; | head -3 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 3 -B 1 "FAILED\|ERROR\|Exception\|BUILD FAILED" "{}" | head -20'
155- echo "=== TEST FAILURES ==="
156- find . -name "TEST-*.xml" | head -3 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 3 -B 1 "failure\|error" "{}" | head -10'
157- echo "=== COMPILATION ERRORS ==="
158- find . -name "*.log" -exec grep -l "compilation failed\|cannot find symbol" {} \; | head -2 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 2 "compilation failed\|cannot find symbol" "{}" | head -15'
159- echo "=== BUILD SCAN URL ==="
160- grep -r "https://gradle.com/s/" . | head -1 || echo "No build scan URL found"
148+ find . -name "*.log" -type f | head -1 | xargs -I {} tail -15000 "{}" || echo "No log files found"
161149
162150 - name : cleanup opentelemetry-java-contrib
163151 run : rm -rf opentelemetry-java-contrib
@@ -175,16 +163,9 @@ runs:
175163 if : ${{ env.patch_otel_java_instrumentation == 'true' }}
176164 shell : bash
177165 run : |
178- echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION ERRORS ONLY ==="
166+ echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION LAST 15000 LINES ==="
179167 cd opentelemetry-java-instrumentation || exit 1
180- echo "=== CRITICAL ERRORS ==="
181- find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception\|BUILD FAILED" {} \; | head -3 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 3 -B 1 "FAILED\|ERROR\|Exception\|BUILD FAILED" "{}" | head -20'
182- echo "=== DEPENDENCY ERRORS ==="
183- find . -name "*.log" -exec grep -l "Could not resolve\|Could not find" {} \; | head -2 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 2 "Could not resolve\|Could not find" "{}" | head -15'
184- echo "=== COMPILATION ERRORS ==="
185- find . -name "*.log" -exec grep -l "compilation failed\|cannot find symbol" {} \; | head -2 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 2 "compilation failed\|cannot find symbol" "{}" | head -15'
186- echo "=== BUILD SCAN URL ==="
187- grep -r "https://gradle.com/s/" . | head -1 || echo "No build scan URL found"
168+ find . -name "*.log" -type f | head -1 | xargs -I {} tail -15000 "{}" || echo "No log files found"
188169
189170 - name : cleanup opentelmetry-java-instrumentation
190171 run : rm -rf opentelemetry-java-instrumentation
0 commit comments