Skip to content

Commit

Permalink
dump logs of containerd if optimzer test fails
Browse files Browse the repository at this point in the history
The optimzer test occasionally fails, let's see what bad happens.

Signed-off-by: Changwei Ge <[email protected]>
  • Loading branch information
changweige committed Jun 27, 2023
1 parent 9e555b8 commit 4652ef5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/optimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
sudo make install-optimizer
sudo install -D -m 755 misc/example/optimizer-nri-plugin.conf /etc/nri/conf.d/02-optimizer-nri-plugin.conf
sudo systemctl restart containerd
systemctl status containerd --no-pager -l
systemctl status containerd --no-pager -l
- name: Generate accessed files list
run: |
sed -i "s|host_path: script|host_path: $(pwd)/misc/optimizer/script|g" misc/optimizer/nginx.yaml
Expand All @@ -90,4 +90,11 @@ jobs:
cat misc/optimizer/script/file_list.txt
exit 1
fi
cat /opt/nri/optimizer/results/library/nginx:1.23.3.csv
cat /opt/nri/optimizer/results/library/nginx:1.23.3.csv
- name: Dump logs
if: failure()
continue-on-error: true
run: |
systemctl status containerd --no-pager -l
journalctl -xeu containerd --no-pager

0 comments on commit 4652ef5

Please sign in to comment.