Skip to content

Commit 4e61130

Browse files
committed
test
1 parent 3fe4891 commit 4e61130

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/actions/patch-dependencies/action.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runs:
8585

8686
# - name: Build opentelemetry-java-contrib with tests
8787
# uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa #v2
88-
# if: ${{ env.patch_otel_java_contrib == 'true' && inputs.run_tests != 'true' }}
88+
# if: ${{ env.patch_otel_java_contrib == 'true' && inputs.run_tests != 'false' }}
8989
# with:
9090
# arguments: build publishToMavenLocal --scan --no-daemon
9191
# build-root-directory: opentelemetry-java-contrib
@@ -97,6 +97,16 @@ runs:
9797
arguments: publishToMavenLocal --scan --no-daemon
9898
build-root-directory: opentelemetry-java-contrib
9999

100+
- name: Show opentelemetry-java-contrib build failures
101+
if: ${{ failure() && env.patch_otel_java_contrib == 'true' }}
102+
shell: bash
103+
run: |
104+
echo "=== OPENTELEMETRY-JAVA-CONTRIB BUILD FAILURES ==="
105+
cd opentelemetry-java-contrib
106+
find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception" {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 5 "FAILED\|ERROR\|Exception" "{}"'
107+
echo "=== GRADLE BUILD SCAN URL ==="
108+
grep -o "https://gradle.com/s/[a-zA-Z0-9]*" build.log || echo "No build scan URL found"
109+
100110
- name: cleanup opentelemetry-java-contrib
101111
run: rm -rf opentelemetry-java-contrib
102112
if: ${{ env.patch_otel_java_contrib == 'true' }}
@@ -109,13 +119,33 @@ runs:
109119
arguments: check -x spotlessCheck publishToMavenLocal --scan --no-daemon
110120
build-root-directory: opentelemetry-java-instrumentation
111121

122+
- name: Show opentelemetry-java-instrumentation build failures
123+
if: ${{ failure() && env.patch_otel_java_instrumentation == 'true' }}
124+
shell: bash
125+
run: |
126+
echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION BUILD FAILURES ==="
127+
cd opentelemetry-java-instrumentation
128+
find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception" {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 5 "FAILED\|ERROR\|Exception" "{}"'
129+
echo "=== GRADLE BUILD SCAN URL ==="
130+
grep -o "https://gradle.com/s/[a-zA-Z0-9]*" build.log || echo "No build scan URL found"
131+
112132
- name: Build opentelemetry java instrumentation
113133
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa #v2
114134
if: ${{ env.patch_otel_java_instrumentation == 'true' && inputs.run_tests == 'true' }}
115135
with:
116136
arguments: publishToMavenLocal --scan --no-daemon
117137
build-root-directory: opentelemetry-java-instrumentation
118138

139+
- name: Show opentelemetry java instrumentation build failures
140+
if: ${{ failure() && env.patch_otel_java_instrumentation == 'true' }}
141+
shell: bash
142+
run: |
143+
echo "=== OPENTELEMETRY-JAVA-INSTRUMENTATION BUILD FAILURES ==="
144+
cd opentelemetry-java-instrumentation
145+
find . -name "*.log" -exec grep -l "FAILED\|ERROR\|Exception" {} \; | head -5 | xargs -I {} sh -c 'echo "=== {} ===" && grep -A 5 -B 5 "FAILED\|ERROR\|Exception" "{}"'
146+
echo "=== GRADLE BUILD SCAN URL ==="
147+
grep -o "https://gradle.com/s/[a-zA-Z0-9]*" build.log || echo "No build scan URL found"
148+
119149
- name: cleanup opentelmetry-java-instrumentation
120150
run: rm -rf opentelemetry-java-instrumentation
121151
if: ${{ env.patch_otel_java_instrumentation == 'true' }}

0 commit comments

Comments
 (0)