File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ jobs:
5555 bash utils/incus_report.sh >> $GITHUB_STEP_SUMMARY
5656 - name : Recover artifacts from containers
5757 run : |
58- mkdir artifacts
59- cd artifacts/
60- bash ../utils/incus_artifacts.sh
61- - name : ' Upload Artifacts'
58+ bash utils/incus_artifacts.sh
59+ - name : ' Upload puppet reports'
6260 uses : actions/upload-artifact@v6
6361 with :
64- name : puppet-apply-artifacts
65- path : artifacts/*
62+ name : puppet-reports
63+ path : ' *.prom'
64+ - name : ' Upload puppet journals'
65+ uses : actions/upload-artifact@v6
66+ with :
67+ name : puppet-reports
68+ path : ' *.json'
Original file line number Diff line number Diff line change 1212for nodename in $( incus list -c n -f csv) ; do
1313 echo -n " ### ${nodename} "
1414 failures=$( incus exec ${puppet_server} -- grep ' name="Failure"' /var/lib/node_exporter/puppet_report_${nodename} .prom | cut -d' ' -f2)
15- timeout=$( incus exec $nodename -- journalctl -u puppet -p3..4 | grep -i ' command exceeded timeout' | wc -l)
15+ timeout=$( incus exec $nodename -- journalctl -u puppet -p3..3 | grep -i ' command exceeded timeout' | grep -o " ([^)]*) " | sort | uniq | wc -l)
1616 if (( $failures - $timeout > 0 )) ; then
1717 echo " FAILED"
1818 cat << - EOF
You can’t perform that action at this time.
0 commit comments