Skip to content

[Storage] add vTPM for vm from memory dump test#4685

Open
acinko-rh wants to merge 10 commits into
RedHatQE:mainfrom
acinko-rh:add_vtpm_to_win_machines_memory_dump
Open

[Storage] add vTPM for vm from memory dump test#4685
acinko-rh wants to merge 10 commits into
RedHatQE:mainfrom
acinko-rh:add_vtpm_to_win_machines_memory_dump

Conversation

@acinko-rh

@acinko-rh acinko-rh commented Apr 30, 2026

Copy link
Copy Markdown
Contributor
Short description:

Adding Win 2022 and vTPM using instance types and preferences into tests/storage/memory_dump module

More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:

Co-authored: Claude Code
https://redhat.atlassian.net/browse/CNV-51351

jira-ticket:

Summary by CodeRabbit

  • New Features

    • Updated Windows VM test coverage to use a newer Windows Server 2022 template flow with vTPM support.
    • Memory-dump and hotplug scenarios now run against the updated VM setup, improving coverage for modern Windows configurations.
  • Bug Fixes

    • Adjusted Windows memory-dump verification to match the new VM naming and setup, keeping dump detection and cleanup checks reliable.

@coderabbitai

coderabbitai Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b0598307-44c3-4e85-ad25-5968a8cff032

📥 Commits

Reviewing files that changed from the base of the PR and between 47971f3 and cfcd6b3.

📒 Files selected for processing (4)
  • tests/storage/memory_dump/conftest.py
  • tests/storage/memory_dump/test_memory_dump.py
  • tests/storage/test_hotplug.py
  • tests/utils.py
 _________________________________
< All your bugs are belong to us. >
 ---------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Apr 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.65%. Comparing base (a2dc143) to head (af93ccb).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4685      +/-   ##
==========================================
- Coverage   98.67%   98.65%   -0.03%     
==========================================
  Files          25       25              
  Lines        2487     2449      -38     
==========================================
- Hits         2454     2416      -38     
  Misses         33       33              
Flag Coverage Δ
utilities 98.65% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

Report bugs in Issues

Welcome! 🎉

This pull request will be automatically processed with the following features:

🔄 Automatic Actions

  • Reviewer Assignment: Reviewers are automatically assigned based on the OWNERS file in the repository root
  • Size Labeling: PR size labels (XS, S, M, L, XL, XXL) are automatically applied based on changes
  • Issue Creation: A tracking issue is created for this PR and will be closed when the PR is merged or closed
  • Branch Labeling: Branch-specific labels are applied to track the target branch
  • Auto-verification: Auto-verified users have their PRs automatically marked as verified
  • Labels: Enabled categories: branch, can-be-merged, cherry-pick, has-conflicts, hold, needs-rebase, size, verified, wip

📋 Available Commands

PR Status Management

  • /wip - Mark PR as work in progress (adds WIP: prefix to title)
  • /wip cancel - Remove work in progress status
  • /hold - Block PR merging (approvers only)
  • /hold cancel - Unblock PR merging
  • /verified - Mark PR as verified
  • /verified cancel - Remove verification status
  • /reprocess - Trigger complete PR workflow reprocessing (useful if webhook failed or configuration changed)
  • /regenerate-welcome - Regenerate this welcome message

Review & Approval

  • /lgtm - Approve changes (looks good to me)
  • /approve - Approve PR (approvers only)
  • /assign-reviewers - Assign reviewers based on OWNERS file
  • /assign-reviewer @username - Assign specific reviewer
  • /check-can-merge - Check if PR meets merge requirements

Testing & Validation

  • /retest tox - Run Python test suite with tox
  • /retest build-container - Rebuild and test container image
  • /retest verify-bugs-are-open - verify-bugs-are-open
  • /retest all - Run all available tests

Container Operations

  • /build-and-push-container - Build and push container image (tagged with PR number)
    • Supports additional build arguments: /build-and-push-container --build-arg KEY=value

Cherry-pick Operations

  • /cherry-pick <branch> - Schedule cherry-pick to target branch when PR is merged
    • Multiple branches: /cherry-pick branch1 branch2 branch3

Label Management

  • /<label-name> - Add a label to the PR
  • /<label-name> cancel - Remove a label from the PR

✅ Merge Requirements

This PR will be automatically approved when the following conditions are met:

  1. Approval: /approve from at least one approver
  2. LGTM Count: Minimum 2 /lgtm from reviewers
  3. Status Checks: All required status checks must pass
  4. No Blockers: No wip, hold, has-conflicts labels and PR must be mergeable (no conflicts)
  5. Verified: PR must be marked as verified

📊 Review Process

Approvers and Reviewers

Approvers:

  • dshchedr
  • jpeimer
  • myakove
  • rnetser
  • vsibirsk

Reviewers:

  • Ahmad-Hafe
  • RoniKishner
  • acinko-rh
  • dalia-frank
  • dshchedr
  • ema-aka-young
  • geetikakay
  • josemacassan
  • jpeimer
  • kgoldbla
  • kshvaika
  • rnetser
  • vsibirsk
Available Labels
  • hold
  • verified
  • wip
  • lgtm
  • approve
AI Features
  • Cherry-Pick Conflict Resolution: Enabled (claude/claude-opus-4-6[1m])

💡 Tips

  • WIP Status: Use /wip when your PR is not ready for review
  • Verification: The verified label is removed on new commits unless the push is detected as a clean rebase
  • Cherry-picking: Cherry-pick labels are processed when the PR is merged
  • Container Builds: Container images are automatically tagged with the PR number
  • Permission Levels: Some commands require approver permissions
  • Auto-verified Users: Certain users have automatic verification and merge privileges

For more information, please refer to the project documentation or contact the maintainers.

@acinko-rh

Copy link
Copy Markdown
Contributor Author

/wip

@openshift-virtualization-qe-bot-5 openshift-virtualization-qe-bot-5 changed the title [Storage] add vTPM for vm from memory dump test WIP: [Storage] add vTPM for vm from memory dump test Apr 30, 2026
@openshift-virtualization-qe-bot-2

Copy link
Copy Markdown
Contributor

Clean rebase detected — no code changes compared to previous head (37a4245).

@openshift-virtualization-qe-bot

Copy link
Copy Markdown

Clean rebase detected — no code changes compared to previous head (10e5472).
The following labels were preserved: commented-vsibirsk.

acinko-rh added 4 commits May 22, 2026 09:44
Signed-off-by: Adam Cinko <acinko@redhat.com>
Signed-off-by: Adam Cinko <acinko@redhat.com>
Signed-off-by: Adam Cinko <acinko@redhat.com>
Signed-off-by: Adam Cinko <acinko@redhat.com>
@acinko-rh

Copy link
Copy Markdown
Contributor Author

/wip cancel

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

Auto-triggered: Files in this PR were modified by merged PR #4954.

Overlapping files

tests/utils.py

@openshift-virtualization-qe-bot-4

Copy link
Copy Markdown

Clean rebase detected — no code changes compared to previous head (7ad9644).

@josemacassan

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

Auto-triggered: Files in this PR were modified by merged PR #4916.

Overlapping files

tests/utils.py

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

Auto-triggered: Files in this PR were modified by merged PR #5135.

Overlapping files

tests/utils.py

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

Clean rebase detected — no code changes compared to previous head (cf550e6).

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

Auto-triggered: Files in this PR were modified by merged PR #4994.

Overlapping files

tests/storage/test_hotplug.py

@Ahmad-Hafe

Copy link
Copy Markdown
Contributor

/lgtm

dshchedr
dshchedr previously approved these changes Jun 26, 2026
@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

Auto-triggered: Files in this PR were modified by merged PR #5320.

Overlapping files

tests/storage/memory_dump/conftest.py
tests/storage/test_hotplug.py

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":500,"request":{"method":"PATCH","url":"https://api.github.com/repos/RedHatQE/openshift-virtualization-tests/issues/comments/4352144699","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- review_stack_entry_start -->\n\n[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/RedHatQE/openshift-virtualization-tests/pull/4685?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)\n\n<!-- review_stack_entry_end -->\n<!-- walkthrough_start -->\n\n<details>\n<summary>📝 Walkthrough</summary>\n\n<!--review_stack_artifact\n\n-->\n\n## Walkthrough\n\nRenames two Windows 2022 helper context managers in `tests/utils.py` (`create_windows2022_dv_from_registry` → `create_windows2022_dv_template_from_registry`, `create_windows2022_vm_with_vtpm_from_registry` → `create_windows2022_vm_with_vtpm`, `dv_dict` → `dv_template`). Memory dump conftest replaces `windows_vm_for_memory_dump` with a new `windows_vm_with_vtpm_for_memory_dump` fixture, rewiring all dependent fixtures. The hotplug test is updated to call the renamed helpers.\n\n## Changes\n\n**Windows vTPM helper rename and fixture rewire**\n\n| Layer / File(s) | Summary |\n|---|---|\n| **Rename DV and VM helper context managers** <br> `tests/utils.py` | Renames `create_windows2022_dv_from_registry` to `create_windows2022_dv_template_from_registry` and `create_windows2022_vm_with_vtpm_from_registry` to `create_windows2022_vm_with_vtpm`; renames parameter `dv_dict` to `dv_template` and updates `data_volume_template=` wiring accordingly. |\n| **Replace windows_vm_for_memory_dump with vTPM fixture** <br> `tests/storage/memory_dump/conftest.py` | Removes `windows_vm_for_memory_dump` (template + `running_vm` based) and introduces `windows_vm_with_vtpm_for_memory_dump` using the new helpers; rewires `windows_vm_memory_dump`, `windows_vm_memory_dump_completed`, `consumer_pod_for_verifying_windows_memory_dump`, and `windows_vm_memory_dump_deletion` to the new fixture, and updates the filename assertion regex. |\n| **Simplify test_windows_memory_dump** <br> `tests/storage/memory_dump/test_memory_dump.py` | Removes `pytest.mark.parametrize` and `pytest_testconfig`/`WINDOWS_LATEST` imports; test now accepts `windows_vm_with_vtpm_for_memory_dump` directly and calls `wait_for_memory_dump_status_removed` with the new fixture name. |\n| **Update hotplug fixtures to renamed helpers** <br> `tests/storage/test_hotplug.py` | Replaces old helper imports and updates `windows_dv_from_registry_scope_class` to call `create_windows2022_dv_template_from_registry` and `vm_instance_from_template_multi_storage_scope_class` to call `create_windows2022_vm_with_vtpm(dv_template=...)`. |\n\n## Estimated code review effort\n\n🎯 2 (Simple) | ⏱️ ~10 minutes\n\n## Possibly related PRs\n\n- [RedHatQE/openshift-virtualization-tests#4761](https://github.com/RedHatQE/openshift-virtualization-tests/pull/4761): Introduces the same `create_windows2022_dv_template_from_registry` and `create_windows2022_vm_with_vtpm` helpers in `tests/utils.py` and rewires Windows VM hotplug fixtures to consume them — directly parallel work to this PR's memory dump rewire.\n\n## Suggested reviewers\n\n- josemacassan\n- Ahmad-Hafe\n- dalia-frank\n\n</details>\n\n<!-- walkthrough_end -->\n<!-- pre_merge_checks_walkthrough_start -->\n\n---\n\n<!-- pre_merge_checks_override_start -->\n> [!CAUTION]\n> ## Pre-merge checks failed\n> \n> Please resolve all errors before merging. Addressing warnings is optional.\n> \n> - [ ] <!-- {\"checkboxId\": \"override-pre-merge-checks\"} --> Ignore\n<!-- pre_merge_checks_override_end -->\n\n### ❌ Failed checks (1 error)\n\n|     Check name    | Status  | Explanation                                                                                                              | Resolution                                                                                                                                      |\n| :---------------: | :------ | :----------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------- |\n| Description check | ❌ Error | The description misses the required template sections and leaves the issue-fix and jira-ticket fields effectively empty. | Fill in the required headings exactly, add a clear What/Why summary, list fixed issue(s), and place the Jira full-ticket URL under jira-ticket. |\n\n<details>\n<summary>✅ Passed checks (4 passed)</summary>\n\n|         Check name         | Status   | Explanation                                                                                                                        |\n| :------------------------: | :------- | :--------------------------------------------------------------------------------------------------------------------------------- |\n|         Title check        | ✅ Passed | The title is specific, under 120 characters, and matches the vTPM Windows memory-dump test changes.                                |\n|     Linked Issues check    | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                           |\n| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                           |\n|      Stp Link Required     | ✅ Passed | No new `tests/test_*.py` files or added `def test_*` functions were introduced; the memory-dump test is modified, not newly added. |\n\n</details>\n\n<!-- pre_merge_checks_walkthrough_end -->\n<!-- finishing_touch_checkbox_start -->\n\n<details>\n<summary>✨ Finishing Touches</summary>\n\n<details>\n<summary>🧪 Generate unit tests (beta)</summary>\n\n- [ ] <!-- {\"checkboxId\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\", \"radioGroupId\": \"utg-output-choice-group-unknown_comment_id\"} -->   Create PR with unit tests\n\n</details>\n\n</details>\n\n<!-- finishing_touch_checkbox_end -->\n<!-- This is an auto-generated comment: resource warnings by coderabbit.ai -->\n\n> [!WARNING]\n> ## Review ran into problems\n> \n> <details>\n> <summary>🔥 Problems</summary>\n> \n> Linked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped `RedHatQE/openshift-virtualization-tests-design-docs`.\n> \n> </details>\n\n<!-- end of auto-generated comment: resource warnings by coderabbit.ai -->\n<!-- tips_start -->\n\n---\n\nThanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=RedHatQE/openshift-virtualization-tests&utm_content=4685)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.\n\n<details>\n<summary>❤️ Share</summary>\n\n- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)\n- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)\n- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)\n- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)\n\n</details>\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands.</sub>\n\n<!-- tips_end -->"},"request":{"retryCount":3,"signal":{},"retries":3,"retryAfter":16}}}

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/storage/test_hotplug.py (1)

87-105: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Fix the renamed helper references in this module.

Ruff still resolves both names as undefined at Line 87 and Line 104. Until the import block brings create_windows2022_dv_template_from_registry and create_windows2022_vm_with_vtpm into scope under those names, this test module will not import/collect.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/storage/test_hotplug.py` around lines 87 - 105, The test module is
still referencing renamed helpers that are not in scope, so update the imports
in this file to bring create_windows2022_dv_template_from_registry and
create_windows2022_vm_with_vtpm in under the exact names used by the fixtures.
Check the fixture definitions that call
create_windows2022_dv_template_from_registry and
vm_instance_from_template_multi_storage_scope_class, and make the import block
match those symbols so Ruff can resolve them during collection.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/storage/memory_dump/conftest.py`:
- Around line 23-35: The memory-dump conftest is still importing outdated
Windows helper names, so test collection fails before the fixture can run.
Update the `tests.utils` import used by `conftest.py` to the renamed helpers
that match `create_windows2022_dv_template_from_registry` and
`create_windows2022_vm_with_vtpm`, and make sure the fixture setup continues to
reference those same symbols consistently.

In `@tests/utils.py`:
- Around line 708-715: The PR template content is incomplete and the required
sections are missing meaningful text, especially “What this PR does / why we
need it:”. Restore the full template structure and add a substantive explanation
for the vTPM/helper rewire so all required PR sections are present. Use the
surrounding helper context in create_windows2022_dv_template_from_registry as
the place to ensure the template-driven output preserves the expected sections
before merge.

---

Outside diff comments:
In `@tests/storage/test_hotplug.py`:
- Around line 87-105: The test module is still referencing renamed helpers that
are not in scope, so update the imports in this file to bring
create_windows2022_dv_template_from_registry and create_windows2022_vm_with_vtpm
in under the exact names used by the fixtures. Check the fixture definitions
that call create_windows2022_dv_template_from_registry and
vm_instance_from_template_multi_storage_scope_class, and make the import block
match those symbols so Ruff can resolve them during collection.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b0598307-44c3-4e85-ad25-5968a8cff032

📥 Commits

Reviewing files that changed from the base of the PR and between 47971f3 and cfcd6b3.

📒 Files selected for processing (4)
  • tests/storage/memory_dump/conftest.py
  • tests/storage/memory_dump/test_memory_dump.py
  • tests/storage/test_hotplug.py
  • tests/utils.py

Comment on lines +23 to +35
create_windows2022_dv_template_from_registry(
dv_name="windows-2022-dv",
namespace=namespace.name,
client=unprivileged_client,
storage_class=py_config["default_storage_class"],
) as dv_template,
create_windows2022_vm_with_vtpm(
vm_name="windows-2022-vm",
namespace=namespace.name,
client=unprivileged_client,
dv_template=dv_template,
cpu_model=modern_cpu_for_migration,
) as vm,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Import the renamed Windows helpers.

create_windows2022_dv_template_from_registry and create_windows2022_vm_with_vtpm are unresolved at Line 23 and Line 29, so this module will fail during collection before any memory-dump fixture runs. Update the tests.utils import to match the renamed helpers.

Suggested import update
-from tests.utils import create_windows2022_dv_from_registry, create_windows2022_vm_with_vtpm_from_registry
+from tests.utils import create_windows2022_dv_template_from_registry, create_windows2022_vm_with_vtpm
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
create_windows2022_dv_template_from_registry(
dv_name="windows-2022-dv",
namespace=namespace.name,
client=unprivileged_client,
storage_class=py_config["default_storage_class"],
) as dv_template,
create_windows2022_vm_with_vtpm(
vm_name="windows-2022-vm",
namespace=namespace.name,
client=unprivileged_client,
dv_template=dv_template,
cpu_model=modern_cpu_for_migration,
) as vm,
from tests.utils import create_windows2022_dv_template_from_registry, create_windows2022_vm_with_vtpm
🧰 Tools
🪛 Ruff (0.15.20)

[error] 23-23: Undefined name create_windows2022_dv_template_from_registry

(F821)


[error] 29-29: Undefined name create_windows2022_vm_with_vtpm

(F821)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/storage/memory_dump/conftest.py` around lines 23 - 35, The memory-dump
conftest is still importing outdated Windows helper names, so test collection
fails before the fixture can run. Update the `tests.utils` import used by
`conftest.py` to the renamed helpers that match
`create_windows2022_dv_template_from_registry` and
`create_windows2022_vm_with_vtpm`, and make sure the fixture setup continues to
reference those same symbols consistently.

Source: Linters/SAST tools

Comment thread tests/utils.py
Comment on lines +708 to +715
def create_windows2022_dv_template_from_registry(
dv_name: str,
namespace: str,
client: DynamicClient,
storage_class: str,
) -> Generator[dict]:
"""
Creates a Windows Server 2022 DataVolume from registry container disk.
Creates a Windows Server 2022 DataVolume template from registry container disk.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Restore the required PR template sections.

The PR summary says the description still lacks meaningful content for ##### What this PR does / why we need it: and does not preserve the required template sections. Please restore the template and explain why this vTPM/helper rewire is needed before merge. As per path instructions, What this PR does / why we need it: must have meaningful content and all required sections must be present.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/utils.py` around lines 708 - 715, The PR template content is incomplete
and the required sections are missing meaningful text, especially “What this PR
does / why we need it:”. Restore the full template structure and add a
substantive explanation for the vTPM/helper rewire so all required PR sections
are present. Use the surrounding helper context in
create_windows2022_dv_template_from_registry as the place to ensure the
template-driven output preserves the expected sections before merge.

Source: Path instructions

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.