diff --git a/.github/workflows/vidiff-linux-container.yml b/.github/workflows/vidiff-linux-container.yml index d543272..b3c3a59 100644 --- a/.github/workflows/vidiff-linux-container.yml +++ b/.github/workflows/vidiff-linux-container.yml @@ -65,6 +65,20 @@ jobs: echo "::endgroup::" done + - name: Debug generated reports + if: steps.changed-vis.outputs.has_changes == 'true' + run: | + REPORT_DIR="${{ github.workspace }}/pr/vidiff-reports" + echo "Report directory: $REPORT_DIR" + if [ -d "$REPORT_DIR" ]; then + echo "Contents of $REPORT_DIR:" + find "$REPORT_DIR" -maxdepth 5 -type f | sort + HTML_COUNT=$(find "$REPORT_DIR" -type f -name '*.html' | wc -l) + echo "HTML report count: $HTML_COUNT" + else + echo "Report directory does not exist: $REPORT_DIR" + fi + - name: Upload VIDiff reports if: steps.changed-vis.outputs.has_changes == 'true' uses: actions/upload-artifact@v4 diff --git a/.github/workflows/vidiff-windows-container.yml b/.github/workflows/vidiff-windows-container.yml index 58bd9d1..effc529 100644 --- a/.github/workflows/vidiff-windows-container.yml +++ b/.github/workflows/vidiff-windows-container.yml @@ -68,6 +68,22 @@ jobs: } - name: Upload VIDiff reports + if: steps.changed-vis.outputs.has_changes == 'true' + shell: pwsh + run: | + $reportDir = Join-Path "${{ github.workspace }}" "pr\vidiff-reports" + Write-Host "Workspace root: ${{ github.workspace }}" + Write-Host "Expected report directory: $reportDir" + if (Test-Path $reportDir) { + Write-Host "Contents of ${reportDir}:" + Get-ChildItem -Path $reportDir -Recurse | Select-Object FullName, Length + } else { + Write-Host "Expected report directory does not exist." + } + Write-Host "VIDiff report directories discovered under PR checkout:" + Get-ChildItem -Path (Join-Path "${{ github.workspace }}" "pr") -Directory -Recurse -Filter "vidiff-reports" | Select-Object FullName + + - name: Upload VIDiff reports artifact if: steps.changed-vis.outputs.has_changes == 'true' uses: actions/upload-artifact@v4 with: diff --git a/examples/cicd-examples/Test-VIs/ArthOps.vi b/examples/cicd-examples/Test-VIs/ArthOps.vi index d45a17e..f763fa8 100644 Binary files a/examples/cicd-examples/Test-VIs/ArthOps.vi and b/examples/cicd-examples/Test-VIs/ArthOps.vi differ diff --git a/examples/cicd-examples/Test-VIs/CreateNewProj.vi b/examples/cicd-examples/Test-VIs/CreateNewProj.vi index 79b48a1..5766e4b 100644 Binary files a/examples/cicd-examples/Test-VIs/CreateNewProj.vi and b/examples/cicd-examples/Test-VIs/CreateNewProj.vi differ