Skip to content

Commit

Permalink
print e2e logs (#365)
Browse files Browse the repository at this point in the history
* keep origin pre and post logs

* print origin pre and post logs
  • Loading branch information
bakito authored Jul 8, 2024
1 parent c32ed90 commit 3625395
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ jobs:

- name: Install Helm Chart
run: ./testdata/e2e/bin/install-chart.sh ${{ matrix.build.mode }}
- name: Wait for pod to start
run: ./testdata/e2e/bin/wait-for-start.sh ${{ matrix.build.protocol }}
- name: Show origin pre Logs
run: ./testdata/e2e/bin/show-origin-logs.sh pre
- name: Wait for sync to finish
run: ./testdata/e2e/bin/wait-for-sync.sh ${{ matrix.build.protocol }}
- name: Show origin Logs
run: ./testdata/e2e/bin/show-origin-logs.sh
- name: Show origin post Logs
run: ./testdata/e2e/bin/show-origin-logs.sh post
- name: Show Replica Logs
run: ./testdata/e2e/bin/show-replica-logs.sh
- name: Show Sync Logs
Expand Down
2 changes: 1 addition & 1 deletion testdata/e2e/bin/show-origin-logs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

echo "## Pod adguardhome-origin logs" >> $GITHUB_STEP_SUMMARY
echo "## Pod adguardhome-origin ${1} logs" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
kubectl logs adguardhome-origin >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
3 changes: 3 additions & 0 deletions testdata/e2e/bin/wait-for-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

kubectl wait --for=jsonpath='{.status.phase}'=Running pod/adguardhome-sync --timeout=1m
2 changes: 0 additions & 2 deletions testdata/e2e/bin/wait-for-sync.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

kubectl wait --for=jsonpath='{.status.phase}'=Running pod/adguardhome-sync --timeout=1m

kubectl port-forward pod/adguardhome-sync 9090:9090 &

for i in {1..6}; do
Expand Down

0 comments on commit 3625395

Please sign in to comment.