feat(ci): Capture and report Proxmox package versions in weekly patch test issues (#314)

Co-authored-by: Meliox <na>
This commit is contained in:
Meliox 2026-08-22 20:50:22 +02:00 committed by GitHub
parent d99d08cf5f
commit 7cb9aefced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,16 @@ jobs:
- name: Fetch upstream Proxmox files - name: Fetch upstream Proxmox files
run: bash build/test/fetch-proxmox-files.sh run: bash build/test/fetch-proxmox-files.sh
- name: Capture upstream package versions
id: pve_versions
run: |
PVE_MANAGER_VERSION=$(dpkg-query -W -f='${Version}' pve-manager 2>/dev/null || echo "unknown")
PWT_VERSION=$(dpkg-query -W -f='${Version}' proxmox-widget-toolkit 2>/dev/null || echo "unknown")
echo "pve_manager=${PVE_MANAGER_VERSION}" >> "$GITHUB_OUTPUT"
echo "proxmox_widget_toolkit=${PWT_VERSION}" >> "$GITHUB_OUTPUT"
echo "pve-manager: ${PVE_MANAGER_VERSION}"
echo "proxmox-widget-toolkit: ${PWT_VERSION}"
- name: Install built package - name: Install built package
run: apt-get install -y ../pve-mod_*.deb run: apt-get install -y ../pve-mod_*.deb
@ -112,6 +122,10 @@ jobs:
{ {
echo "The weekly patch test failed for mod \`${MOD}\` against the latest Proxmox VE files." echo "The weekly patch test failed for mod \`${MOD}\` against the latest Proxmox VE files."
echo "" echo ""
echo "**Proxmox versions tested:**"
echo "- pve-manager: \`${{ steps.pve_versions.outputs.pve_manager }}\`"
echo "- proxmox-widget-toolkit: \`${{ steps.pve_versions.outputs.proxmox_widget_toolkit }}\`"
echo ""
echo "Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" echo "Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "" echo ""
echo "<details><summary>Test log</summary>" echo "<details><summary>Test log</summary>"
@ -131,8 +145,9 @@ jobs:
--jq ".[] | select(.title==\"$TITLE\") | .number" | head -n1) --jq ".[] | select(.title==\"$TITLE\") | .number" | head -n1)
if [[ -n "$EXISTING" ]]; then if [[ -n "$EXISTING" ]]; then
gh issue edit "$EXISTING" --body-file issue-body.md
gh issue comment "$EXISTING" --body-file issue-body.md gh issue comment "$EXISTING" --body-file issue-body.md
echo "Commented on existing issue #$EXISTING" echo "Updated and commented on existing issue #$EXISTING"
else else
gh issue create --title "$TITLE" --label patch-break --body-file issue-body.md gh issue create --title "$TITLE" --label patch-break --body-file issue-body.md
echo "Opened new issue for mod $MOD" echo "Opened new issue for mod $MOD"