← Back to Pull requests

image: match the final 100% qemu-img convert progress line #4347

Merged
amalsaidov merged 2 files (15 lines) on Nov 18, 2026 14:41 UTC
View on GitHub
amalsaidov amalsaidov commented on Nov 17, 2026 06:38 UTC
Author

What this PR does / why we need it:

reportProgress parses the progress lines that qemu-img convert writes while converting an image, for example (45.34/100%), and feeds the percentage into the import_progress metric. The regexp used is:

\((\d?\d\.\d\d)\/100%\)

The integer part (\d?\d) only allows one or two digits, so the very last line qemu-img emits, (100.00/100%), does not match. The metric therefore stops at the last sub-100 line that was seen and never reaches 100% once the conversion is actually done, which is misleading for anyone watching import progress.

This widens the integer part to one to three digits (\d{1,3}) so the terminal 100.00 line is parsed and the metric reaches 100% on completion. All previously matched lines keep matching.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
A unit test is added next to the existing reportProgress cases that feeds (100.00/100%) and asserts the metric reaches 100. It fails before the regexp change and passes after.

AI-assisted; directed, reviewed and tested by the author.

Release note:
``release-note
Fix import progress metric not reaching 100% for image format conversions
``

Diff: 15 lines (+14 / -1) across 2 files Reviewer: Acedus Review duration: 1922m
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.21) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 15 lines diff across 2 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.91 · 5 substantive comment(s)
0.91
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
91%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.166
Real PR Conversation Timeline
8 items
kubevirt-prow[bot] kubevirt-prow[bot] commented on Nov 17, 2026 06:39 UTC
Bot

Hi @amalsaidov. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

<details>

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>

Acedus Acedus approved these changes on Nov 17, 2026 08:52 UTC
Approved Reviewer

Thanks!

/cc @akalenyu

coveralls coveralls commented on Nov 17, 2026 09:06 UTC
Contributor

![Coverage Status](https://coveralls.io/builds/83094504)

coverage: 50.376%. remained the same — amalsaidov:fix-qemu-progress-100 into kubevirt:main

akalenyu akalenyu commented on Nov 17, 2026 09:53 UTC
Reviewer

thanks! this is definitely correct but note the controller guard already drops 100 regardless https://github.com/kubevirt/containerized-data-importer/pull/3293 (third commit)
/approve

kubevirt-prow[bot] kubevirt-prow[bot] commented on Nov 17, 2026 09:53 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/kubevirt/containerized-data-importer/pull/4347#pullrequestreview-5936259027" title="Approved">akalenyu</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [akalenyu]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    akalenyu akalenyu commented on Nov 18, 2026 12:45 UTC
    Contributor

    /retest

    amalsaidov amalsaidov commented on Nov 19, 2026 20:54 UTC
    Author

    Thanks for merging 🙏

    Reviewers
    Assignees
    amalsaidov amalsaidov
    Labels
    risk: low confidence: 91.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 21% (LOW) · Higher = larger blast radius
    21%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 91.3% · Lower = rushed or shallow review
    91.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2% · Safe to merge
    2%