fix: scope revert to tested mod and add pvemanager version to issue reports
Co-authored-by: Meliox <5264368+Meliox@users.noreply.github.com>
This commit is contained in:
parent
8a9b7568a7
commit
2ae9708c4e
14
.github/workflows/weekly-patch-test.yml
vendored
14
.github/workflows/weekly-patch-test.yml
vendored
@ -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>"
|
||||||
|
|||||||
@ -121,7 +121,7 @@ test_one_mod() {
|
|||||||
if [[ $ok -eq 0 ]]; then
|
if [[ $ok -eq 0 ]]; then
|
||||||
info "Reverting patches for '$mod'..."
|
info "Reverting patches for '$mod'..."
|
||||||
local revert_log
|
local revert_log
|
||||||
revert_log="$("$REVERT" 2>&1)"
|
revert_log="$("$REVERT" "$mod" 2>&1)"
|
||||||
echo "$revert_log"
|
echo "$revert_log"
|
||||||
if echo "$revert_log" | grep -qE "could not be reverted cleanly|reported an error"; then
|
if echo "$revert_log" | grep -qE "could not be reverted cleanly|reported an error"; then
|
||||||
warn "revert-patches.sh reported an unclean revert for mod '$mod'"
|
warn "revert-patches.sh reported an unclean revert for mod '$mod'"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user