Skip to content

Commit 1b35409

Browse files
committed
Add verbose permission logging to debug wstest artifact uploads
Log directory permissions before and after chown to verify the permission fix is actually working. Note: This work was completed with AI assistance (Claude Code).
1 parent dd2931b commit 1b35409

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/wstest.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,23 @@ jobs:
209209
- name: Fix permissions on client reports
210210
if: always()
211211
run: |
212+
echo "==> Current user: $(id)"
213+
echo ""
214+
echo "==> BEFORE chown - clients-with-nvx:"
215+
ls -la .wstest/clients-with-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
216+
echo ""
217+
echo "==> BEFORE chown - clients-without-nvx:"
218+
ls -la .wstest/clients-without-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
219+
echo ""
220+
echo "==> Running: sudo chown -R $(id -u):$(id -g) .wstest/clients-*/"
212221
sudo chown -R $(id -u):$(id -g) .wstest/clients-with-nvx/ 2>/dev/null || true
213222
sudo chown -R $(id -u):$(id -g) .wstest/clients-without-nvx/ 2>/dev/null || true
223+
echo ""
224+
echo "==> AFTER chown - clients-with-nvx:"
225+
ls -la .wstest/clients-with-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
226+
echo ""
227+
echo "==> AFTER chown - clients-without-nvx:"
228+
ls -la .wstest/clients-without-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
214229
215230
- name: Upload client reports (with-nvx)
216231
uses: wamp-proto/wamp-cicd/actions/upload-artifact-verified@main
@@ -430,8 +445,23 @@ jobs:
430445
- name: Fix permissions on server reports
431446
if: always()
432447
run: |
448+
echo "==> Current user: $(id)"
449+
echo ""
450+
echo "==> BEFORE chown - servers-with-nvx:"
451+
ls -la .wstest/servers-with-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
452+
echo ""
453+
echo "==> BEFORE chown - servers-without-nvx:"
454+
ls -la .wstest/servers-without-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
455+
echo ""
456+
echo "==> Running: sudo chown -R $(id -u):$(id -g) .wstest/servers-*/"
433457
sudo chown -R $(id -u):$(id -g) .wstest/servers-with-nvx/ 2>/dev/null || true
434458
sudo chown -R $(id -u):$(id -g) .wstest/servers-without-nvx/ 2>/dev/null || true
459+
echo ""
460+
echo "==> AFTER chown - servers-with-nvx:"
461+
ls -la .wstest/servers-with-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
462+
echo ""
463+
echo "==> AFTER chown - servers-without-nvx:"
464+
ls -la .wstest/servers-without-nvx/ 2>/dev/null | head -5 || echo "Directory not found"
435465
436466
- name: Upload server reports (with-nvx)
437467
uses: wamp-proto/wamp-cicd/actions/upload-artifact-verified@main

0 commit comments

Comments
 (0)