@@ -111,8 +111,17 @@ jobs:
111111 - name : Print replay logs for ${{ matrix.library }}
112112 if : always()
113113 run : |
114+ log_dir=./drift/instrumentation/${{ matrix.library }}/e2e-tests/.tusk/logs
115+ if ! sudo test -d "$log_dir"; then
116+ echo "No replay log directory found"
117+ exit 0
118+ fi
119+
120+ sudo chmod -R a+rX "$log_dir" || true
121+ sudo chown -R "$(id -u):$(id -g)" "$log_dir" || true
122+
114123 shopt -s nullglob
115- logs=(./drift/instrumentation/${{ matrix.library }}/e2e-tests/.tusk/logs /*)
124+ logs=("$log_dir" /*)
116125 if [ ${#logs[@]} -eq 0 ]; then
117126 echo "No replay logs found"
118127 exit 0
@@ -128,7 +137,7 @@ jobs:
128137 uses : actions/upload-artifact@v4
129138 with :
130139 name : e2e-${{ matrix.library }}-replay-logs
131- path : ./drift/instrumentation/${{ matrix.library }}/e2e-tests/.tusk/logs/*
140+ path : ./drift/instrumentation/${{ matrix.library }}/e2e-tests/.tusk/logs
132141 if-no-files-found : ignore
133142
134143 - name : Cleanup Docker resources
@@ -212,8 +221,17 @@ jobs:
212221 - name : Print replay logs for ${{ matrix.test }}
213222 if : always()
214223 run : |
224+ log_dir=./drift/stack-tests/${{ matrix.test }}/.tusk/logs
225+ if ! sudo test -d "$log_dir"; then
226+ echo "No replay log directory found"
227+ exit 0
228+ fi
229+
230+ sudo chmod -R a+rX "$log_dir" || true
231+ sudo chown -R "$(id -u):$(id -g)" "$log_dir" || true
232+
215233 shopt -s nullglob
216- logs=(./drift/stack-tests/${{ matrix.test }}/.tusk/logs /*)
234+ logs=("$log_dir" /*)
217235 if [ ${#logs[@]} -eq 0 ]; then
218236 echo "No replay logs found"
219237 exit 0
@@ -229,7 +247,7 @@ jobs:
229247 uses : actions/upload-artifact@v4
230248 with :
231249 name : stack-${{ matrix.test }}-replay-logs
232- path : ./drift/stack-tests/${{ matrix.test }}/.tusk/logs/*
250+ path : ./drift/stack-tests/${{ matrix.test }}/.tusk/logs
233251 if-no-files-found : ignore
234252
235253 - name : Cleanup Docker resources
@@ -306,8 +324,17 @@ jobs:
306324 - name : Print replay logs for requests smoke test
307325 if : always()
308326 run : |
327+ log_dir=./drift/instrumentation/requests/e2e-tests/.tusk/logs
328+ if ! sudo test -d "$log_dir"; then
329+ echo "No replay log directory found"
330+ exit 0
331+ fi
332+
333+ sudo chmod -R a+rX "$log_dir" || true
334+ sudo chown -R "$(id -u):$(id -g)" "$log_dir" || true
335+
309336 shopt -s nullglob
310- logs=(./drift/instrumentation/requests/e2e-tests/.tusk/logs /*)
337+ logs=("$log_dir" /*)
311338 if [ ${#logs[@]} -eq 0 ]; then
312339 echo "No replay logs found"
313340 exit 0
@@ -323,7 +350,7 @@ jobs:
323350 uses : actions/upload-artifact@v4
324351 with :
325352 name : requests-smoke-replay-logs
326- path : ./drift/instrumentation/requests/e2e-tests/.tusk/logs/*
353+ path : ./drift/instrumentation/requests/e2e-tests/.tusk/logs
327354 if-no-files-found : ignore
328355
329356 - name : Cleanup Docker resources
0 commit comments