@@ -116,16 +116,14 @@ runs:
116116 if : ${{ env.patch_otel_java == 'true' }}
117117 shell : bash
118118 run : |
119- echo "=== OPENTELEMETRY-JAVA BUILD FAILURE DEBUG ==="
119+ echo "=== OPENTELEMETRY-JAVA ERRORS ONLY ==="
120120 cd opentelemetry-java || exit 1
121- echo "Directory contents:"
122- ls -la
123- echo "=== GRADLE BUILD LOGS ==="
124- find . -name "*.log" -type f | head -10 | xargs -I {} sh -c 'echo "=== {} ===" && tail -50 "{}"'
125- echo "=== GRADLE DAEMON LOGS ==="
126- find ~/.gradle/daemon -name "*.log" -type f | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && tail -20 "{}"'
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'
127125 echo "=== BUILD SCAN URL ==="
128- grep -r "https://gradle.com/s/" . || echo "No build scan URL found"
126+ grep -r "https://gradle.com/s/" . | head -1 | | echo "No build scan URL found"
129127
130128 - name : cleanup opentelemetry-java
131129 run : rm -rf opentelemetry-java
@@ -150,19 +148,16 @@ runs:
150148 if : ${{ env.patch_otel_java_contrib == 'true' }}
151149 shell : bash
152150 run : |
153- echo "=== OPENTELEMETRY-JAVA-CONTRIB BUILD FAILURE DEBUG ==="
151+ echo "=== OPENTELEMETRY-JAVA-CONTRIB ERRORS ONLY ==="
154152 cd opentelemetry-java-contrib || exit 1
155- echo "Directory contents:"
156- ls -la
157- echo "=== GRADLE BUILD LOGS ==="
158- find . -name "*.log" -type f | head -10 | xargs -I {} sh -c 'echo "=== {} ===" && tail -50 "{}"'
159- echo "=== TEST FAILURE REPORTS ==="
160- find . -path "*/build/reports/tests/*/index.html" | head -5 | xargs -I {} dirname {} | xargs -I {} find {} -name "*.html" | head -10
161- find . -name "TEST-*.xml" | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 5 "failure\|error" "{}"'
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'
162157 echo "=== COMPILATION ERRORS ==="
163- find . -name "*.log" -exec grep -l "compilation failed\|cannot find symbol\|package does not exist " {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 10 -B 5 "compilation failed\|cannot find symbol\|package does not exist " "{}"'
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 '
164159 echo "=== BUILD SCAN URL ==="
165- grep -r "https://gradle.com/s/" . || echo "No build scan URL found"
160+ grep -r "https://gradle.com/s/" . | head -1 | | echo "No build scan URL found"
166161
167162 - name : cleanup opentelemetry-java-contrib
168163 run : rm -rf opentelemetry-java-contrib
@@ -180,20 +175,16 @@ runs:
180175 if : ${{ env.patch_otel_java_instrumentation == 'true' }}
181176 shell : bash
182177 run : |
183- echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION BUILD FAILURE DEBUG ==="
178+ echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION ERRORS ONLY ==="
184179 cd opentelemetry-java-instrumentation || exit 1
185- echo "Directory contents:"
186- ls -la
187- echo "=== GRADLE BUILD LOGS ==="
188- find . -name "*.log" -type f | head -10 | xargs -I {} sh -c 'echo "=== {} ===" && tail -50 "{}"'
189- echo "=== DEPENDENCY RESOLUTION ERRORS ==="
190- find . -name "*.log" -exec grep -l "Could not resolve\|Could not find\|dependency.*failed" {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 10 -B 5 "Could not resolve\|Could not find\|dependency.*failed" "{}"'
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'
191184 echo "=== COMPILATION ERRORS ==="
192- find . -name "*.log" -exec grep -l "compilation failed\|cannot find symbol\|package does not exist" {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 10 -B 5 "compilation failed\|cannot find symbol\|package does not exist" "{}"'
193- echo "=== MAVEN LOCAL CONTENTS ==="
194- ls -la ~/.m2/repository/io/opentelemetry/ || echo "No opentelemetry artifacts in maven local"
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'
195186 echo "=== BUILD SCAN URL ==="
196- grep -r "https://gradle.com/s/" . || echo "No build scan URL found"
187+ grep -r "https://gradle.com/s/" . | head -1 | | echo "No build scan URL found"
197188
198189 - name : cleanup opentelmetry-java-instrumentation
199190 run : rm -rf opentelemetry-java-instrumentation
0 commit comments