Skip to content

fix(v2v-helper): drain CopyDisk progress goroutine before closing pipe - #2323

Open
spai-p9 wants to merge 1 commit into
mainfrom
private/main/ghi-2139
Open

fix(v2v-helper): drain CopyDisk progress goroutine before closing pipe#2323
spai-p9 wants to merge 1 commit into
mainfrom
private/main/ghi-2139

Conversation

@spai-p9

@spai-p9 spai-p9 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it

CopyDisk closed the progress pipe via defer before its background progress-scanner goroutine had finished draining it, racing the goroutine and occasionally truncating the final read (e.g. the last 100% update). Wait for the goroutine before returning so progress logging always reflects the real completion state (#2139).

Which issue(s) this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)

fixes #2139

Special notes for your reviewer

Testing done

please add testing details (logs, screenshots, etc.)

CopyDisk closed the progress pipe via defer before its background
progress-scanner goroutine had finished draining it, racing the goroutine
and occasionally truncating the final read (e.g. the last 100% update).
Wait for the goroutine before returning so progress logging always
reflects the real completion state (#2139).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Vulnerability Summary

No change in security posture

📊 Overall Changes

Metric Count
Total Added 0
Total Fixed 0
Net Change 0

🔍 Detailed Breakdown

📦 Gosec (Static Analysis)

Current Baseline Added Fixed Method
0 0 0 0 artifact

📦 Trivy (Dependency Scan)

Current Baseline Added Fixed Method
92 92 0 0 artifact

📋 Baseline Methods

  • 📦 artifact: Used stored report from main branch
  • 🔄 live_scan: Scanned base branch in real-time
  • ⚠️ no_baseline: No baseline available (all vulnerabilities treated as new)

Only HIGH and CRITICAL severity vulnerabilities are tracked
Baseline: 29134c894d55e8571260619b87ca0ea4b68b84e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant