Skip to content

fix: better logging when file hash compare fails#8503

Merged
timmy-wright merged 9 commits into
mainfrom
timmy/fix-file-hash
May 13, 2026
Merged

fix: better logging when file hash compare fails#8503
timmy-wright merged 9 commits into
mainfrom
timmy/fix-file-hash

Conversation

@timmy-wright
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Windows VHD content validation PowerShell script used by the VHD builder test pipeline, aiming to improve diagnostics when cached file hash comparisons fail.

Changes:

  • Reformats multiple PowerShell function/loop blocks to use a consistent brace style.
  • Enhances the hash-mismatch error output in Test-FilesToCacheOnVHD to include more context.

Copilot AI review requested due to automatic review settings May 13, 2026 03:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1 Outdated
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1 Outdated
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Copilot AI review requested due to automatic review settings May 13, 2026 03:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Copilot AI review requested due to automatic review settings May 13, 2026 04:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

vhdbuilder/packer/test/windows-vhd-content-test.ps1:200

  • Same issue as above: in the catch path $invalidFiles is overwritten ($invalidFiles = $mcURL) instead of appended, which can hide other invalid files discovered earlier in the run.
                catch {
                    Write-ErrorWithTimestamp "$mcURL is invalid"
                    $invalidFiles = $mcURL
                    continue

Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
Comment thread vhdbuilder/packer/test/windows-vhd-content-test.ps1
@timmy-wright timmy-wright enabled auto-merge (squash) May 13, 2026 05:31
@timmy-wright timmy-wright merged commit 7cf0dbe into main May 13, 2026
30 checks passed
@timmy-wright timmy-wright deleted the timmy/fix-file-hash branch May 13, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants