Skip to content

Commit 0130601

Browse files
committed
ci: fix debug output steps to show full file contents
- Capture kitchen.log before running kitchen diagnose to avoid truncation - Use cat instead of tail/head to show complete file contents - Fix client.rb search path to /home/runner/.dokken/kitchen_sandbox where dokken stores the generated sandbox files - Capture all per-instance logs from .kitchen/logs/*.log, not just kitchen.log Signed-off-by: Lance Albertson <lance@osuosl.org>
1 parent 54d307e commit 0130601

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/integration.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,25 @@ jobs:
3333
bundle install
3434
- name: Verify Dokken
3535
run: bundle exec kitchen verify
36-
- name: Run kitchen diagnose on failure
37-
if: failure()
38-
run: bundle exec kitchen diagnose --all || true
3936
- name: Capture kitchen.log on failure
4037
if: failure()
4138
run: |
4239
if [ -f .kitchen/logs/kitchen.log ]; then
43-
echo "=== Kitchen Log ==="
44-
tail -200 .kitchen/logs/kitchen.log
40+
echo "=== .kitchen/logs/kitchen.log ==="
41+
cat .kitchen/logs/kitchen.log
4542
fi
43+
for f in .kitchen/logs/*.log; do
44+
[ -f "$f" ] || continue
45+
echo "=== $f ==="
46+
cat "$f"
47+
done
48+
- name: Run kitchen diagnose on failure
49+
if: failure()
50+
run: bundle exec kitchen diagnose --all || true
4651
- name: Show generated client.rb on failure
4752
if: failure()
4853
run: |
49-
find .kitchen -name "client.rb" -o -name "solo.rb" | while read f; do
50-
if [ -f "$f" ]; then
51-
echo "=== $f ==="
52-
head -50 "$f"
53-
fi
54+
find /home/runner/.dokken/kitchen_sandbox -name "client.rb" -o -name "solo.rb" 2>/dev/null | while read f; do
55+
echo "=== $f ==="
56+
cat "$f"
5457
done || true

0 commit comments

Comments
 (0)