← Back to Pull requests

Remove redundant ImageStream entry from containerdisk env labels test #4264

Merged
akalenyu merged 1 files (17 lines) on Sep 03, 2026 19:46 UTC
View on GitHub
akalenyu akalenyu commented on Aug 31, 2026 12:43 UTC
Author

<!-- Thanks for sending a pull request! Here are some tips for you:
1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->

What this PR does / why we need it:
The ImageStream entry exercises the same label propagation code path
as the regular node pull entry - the env extraction, termination
message, and PVC label writing are all identical regardless of
whether the source uses .Registry.URL or .Registry.ImageStream.

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 #

Special notes for your reviewer:

Release note:
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
2. If no release note is required, just write "NONE".
-->
``release-note
NONE
``

Diff: 17 lines (+3 / -14) across 1 files Reviewer: dsanatar Review duration: 4742m
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.20) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.20 · 17 lines diff across 1 files
0.20
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.90 · 5 substantive comment(s)
0.90
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
90%
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.173
Real PR Conversation Timeline
17 items
awels awels commented on Aug 31, 2026 12:55 UTC
Contributor

Just trying to reduce the number of tests? Or are we concerned about environments that do not have ImageStreams?

akalenyu akalenyu commented on Aug 31, 2026 12:57 UTC
Author

Just trying to reduce the number of tests? Or are we concerned about environments that do not have ImageStreams?

It started failing on external environments because of missing setup but it got me thinking it has no extra value so might as well remove

coveralls coveralls commented on Aug 31, 2026 12:57 UTC
Contributor

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

coverage: 49.752%. remained the same — akalenyu:rm-imagestream-entry into kubevirt:main

dsanatar dsanatar commented on code on Aug 31, 2026 13:07 UTC
Code Review
tests/import_test.go:1

this one also suffers a similar fate of the invalid imagesream url and is currently in quarantine d/s, how do you think we should proceed with this?

akalenyu akalenyu commented on code on Aug 31, 2026 13:20 UTC
Code Review
tests/import_test.go:1

I think we need to consider actually creating an ImageStream as part of the setup for this test so the whole * annotation thing clicks.
I would not remove this test though since I think it's our only e2e ImageStream test?

We could arguably stop testing the imagestream bit and just assert some stuff on the pod via unit tests but anyways not something I want to tackle here

akalenyu akalenyu commented on Aug 31, 2026 13:22 UTC
Author

/test pull-cdi-linter

dsanatar dsanatar commented on code on Aug 31, 2026 13:28 UTC
Code Review
tests/import_test.go:1

yea that's fair, I was also considering extending the setup to init an ImageStream however, wouldn't we need to gate it on whether the cluster is ocp since the resource is specific to openshift?

akalenyu akalenyu commented on code on Aug 31, 2026 13:35 UTC
Code Review
tests/import_test.go:1

yeah you would label the test as openshift only via ginkgo labels and filter it out on upstream test lane setup. this is what kubevirt does iirc

dsanatar dsanatar commented on code on Aug 31, 2026 13:37 UTC
Code Review
tests/import_test.go:1

gotcha yea I've seen something like that before, just wasn't sure if that was still considered good practice

dsanatar dsanatar commented on Aug 31, 2026 13:37 UTC
Contributor

/lgtm

awels awels commented on Sep 03, 2026 14:15 UTC
Contributor

/approve

kubevirt-prow[bot] kubevirt-prow[bot] commented on Sep 03, 2026 14:15 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/kubevirt/containerized-data-importer/pull/4264#issuecomment-5527124173" title="Approved">awels</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~~ [awels]
  • 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":[]} -->

    dsanatar dsanatar commented on Sep 16, 2026 13:04 UTC
    Contributor

    /cherry-pick release-v1.65

    kubevirt-bot kubevirt-bot commented on Sep 16, 2026 13:05 UTC
    Bot

    @dsanatar: new pull request created: #4284

    <details>

    In response to this:

    >/cherry-pick release-v1.65

    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>

    alromeros alromeros commented on Sep 24, 2026 15:33 UTC
    Contributor

    /cherry-pick release-v1.66

    kubevirt-bot kubevirt-bot commented on Sep 24, 2026 15:34 UTC
    Bot

    @alromeros: new pull request created: #4294

    <details>

    In response to this:

    >/cherry-pick release-v1.66

    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>

    Reviewers
    Assignees
    akalenyu akalenyu
    Labels
    risk: low confidence: 90.9% 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: 20.3% (LOW) · Higher = larger blast radius
    20.3%
    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: 90.9% · Lower = rushed or shallow review
    90.9%
    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%