Skip to content

Commit 381b4f2

Browse files
committed
Split artifacts in two archives and improve timeout counting
1 parent 0f98013 commit 381b4f2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/incus.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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'

utils/incus_report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo
1212
for 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

0 commit comments

Comments
 (0)