Skip to content

net, libs: Refactor random ip address helpers - #4944

Open
azhivovk wants to merge 1 commit into
RedHatQE:mainfrom
azhivovk:net-ip-cidr-refactor
Open

net, libs: Refactor random ip address helpers#4944
azhivovk wants to merge 1 commit into
RedHatQE:mainfrom
azhivovk:net-ip-cidr-refactor

Conversation

@azhivovk

@azhivovk azhivovk commented May 20, 2026

Copy link
Copy Markdown
Member
What this PR does / why we need it:

The random_ipv4_address and random_ipv6_address helpers previously returned plain strings, requiring callers to manually append prefix lengths and making the type opaque.

Returning IPv4Interface/IPv6Interface gives callers access to the structured IP data (.ip for the bare address, .network for the subnet) without string parsing, and lets subnet_length be explicit and validated.

Callers that need a non-standard mask, may call subnet_length= with the requested cidr.

Which issue(s) this PR fixes: -
Special notes for reviewer:

Reuested follow-up PR by approvers

jira-ticket: -

Summary by CodeRabbit

  • New Features

    • Added configurable subnet lengths for generated IPv4 and IPv6 addresses.
    • Network address generation now preserves IP and prefix information for CIDR-based configurations.
  • Bug Fixes

    • Standardized network configurations to use plain IP addresses where required.
    • Corrected subnet, endpoint, DHCP range, secondary-interface, and cloud-init address formatting.
    • Improved handling of IPv4 and IPv6 addresses across network and VM configuration workflows.
    • Added validation for supported subnet-length ranges.

@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:

  • EdDev
  • dshchedr
  • myakove
  • rnetser
  • vsibirsk

Reviewers:

  • Anatw
  • EdDev
  • RoniKishner
  • azhivovk
  • dshchedr
  • frenzyfriday
  • hmeir
  • nirdothan
  • orelmisan
  • rlobillo
  • rnetser
  • servolkov
  • vsibirsk
  • yossisegev
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.

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1566c227-294b-4b42-8317-0b91bceb3eea

📥 Commits

Reviewing files that changed from the base of the PR and between 58fef31 and bca7853.

📒 Files selected for processing (1)
  • tests/network/flat_overlay/conftest.py
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • RedHatQE/openshift-virtualization-tests-design-docs (manual)

📝 Walkthrough

Walkthrough

The IP utilities now return typed IPv4Interface and IPv6Interface objects with configurable prefix lengths. Network fixtures, cloud-init models, VM deserialization, address pools, and subnet consumers now handle typed interfaces or extract bare IP values as required.

Changes

Typed IP interface migration

Layer / File(s) Summary
IP generation contract
libs/net/ip.py
IPv4 and IPv6 generators validate subnet lengths and return typed interfaces. CIDR generation is implemented directly, and the obsolete helper is removed.
Typed network data serialization
libs/net/apimachinery.py, libs/vm/vm.py, tests/network/libs/cloudinit.py
Normalization stringifies interface values in lists. VM deserialization casts cloud-init addresses to typed interfaces. Ethernet device fields use typed interface annotations.
Typed fixture and helper propagation
tests/network/l2_bridge/..., tests/network/localnet/..., tests/network/sriov/..., tests/network/upgrade/...
Bridge, localnet, SR-IOV, and upgrade helpers accept typed interfaces. Address pools return typed interfaces, and consumers use .ip when bare values are required.
Network fixture address consumers
tests/network/{bgp,bond,connectivity,evpn,flat_overlay,general,jumbo_frame,macspoof,migration,nmstate,user_defined_network}/..., tests/storage/cdi_upload/conftest.py
Cloud-init, endpoint, subnet, DHCP, MPLS, and connectivity configurations stop manually appending CIDR suffixes or use generated CIDR interfaces directly.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested labels: new-tests

Suggested reviewers: eddev, yossisegev, servolkov, rnetser, vsibirsk


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Stp Scenario Coverage ❌ Error HIGH: The EVPN STP link remains valid and seven scenarios align, but its Tier 2/P2 upgrade scenario has no test declaration or documented exclusion. Add upgrade coverage or document intentional exclusion with a follow-up Jira link; report: | upgrade connectivity | Tier 2/P2 | missing |.
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is under 120 characters and clearly describes the refactoring of the random IP address helpers.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Pr Template Sections ✅ Passed The PR body contains all four required headings, and the main section has meaningful technical content about the IP helper changes.
Stp Link Required ✅ Passed The diff adds no test files and no def test_* functions under tests/; all changed test paths are modifications, so the STP/RFE/Jira link check does not apply.
✨ 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.

Comment thread libs/net/ip.py Outdated
Comment thread libs/net/apimachinery.py
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr=4944

echo '=== PR refs and changed files ==='
gh pr view "$pr" --repo "$repo" --json baseRefName,baseRefOid,headRefOid,files \
  --jq '{base:.baseRefName,baseOid:.baseRefOid,headOid:.headRefOid,files:[.files[].path]}'

echo '=== Diff hunk headers ==='
gh pr diff "$pr" --repo "$repo" --patch | grep -E '^(diff --git|@@)' | head -160

echo '=== Modified definitions in shared libraries ==='
git diff --unified=0 "origin/$(gh pr view "$pr" --repo "$repo" --json baseRefName --jq .baseRefName)"...HEAD -- 'libs/**' |
  grep -E '^[+-][[:space:]]*(def |class )' || true

echo '=== Shared helper outline and relevant implementations ==='
ast-grep outline libs/net/ip.py --items all
rg -n -A35 -B8 '^def (random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family|random_ip_addresses_by_family)\b' libs/net/ip.py || true

echo '=== Current helper callers in tests and conftest ==='
rg -n -C2 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family|random_ip_addresses_by_family)\s*\(' tests --glob '*.py' || true

echo '=== Fixture teardown/context wrapper evidence ==='
rg -n -C3 '(`@pytest`\.fixture|`@contextmanager`|yield from|yield\b|random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)' tests/conftest.py tests --glob 'conftest.py' || true

echo '=== Smoke and gating marker files ==='
rg -l '`@pytest`\.mark\.smoke' tests --glob '*.py' || true
printf '%s\n' '--- gating ---'
rg -l '`@pytest`\.mark\.gating' tests --glob '*.py' || true

echo '=== Direct marker/helper overlap ==='
for f in $(rg -l '`@pytest`\.mark\.(smoke|gating)' tests --glob '*.py' || true); do
  if rg -q '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\s*\(' "$f"; then
    echo "$f"
  fi
done

echo '=== First changed file patch ==='
first_file=$(gh pr view "$pr" --repo "$repo" --json files --jq '.files[0].path')
printf 'first_file=%s\n' "$first_file"
gh pr diff "$pr" --repo "$repo" --patch -- "$first_file" | sed -n '1,180p'

Length of output: 178114


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr=4944

echo '=== Changed files ==='
gh api "repos/$repo/pulls/$pr/files?per_page=100" \
  --jq '.[] | "\(.filename)\t\(.status)\t+\(.additions)/-\(.deletions)"'

echo '=== Patches for changed shared files and first changed file ==='
gh api "repos/$repo/pulls/$pr/files?per_page=100" \
  --jq '.[] | select(.filename == "libs/net/apimachinery.py" or (.filename | startswith("libs/net/"))) | "FILE: \(.filename)\n\(.patch // "NO PATCH")\n"' |
  sed -n '1,1000p'

echo '=== Current implementation: relevant shared helpers ==='
rg -n -A28 -B6 '^def (random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\b' libs/net/ip.py

echo '=== Changed caller contexts only ==='
for f in \
  tests/network/nmstate/test_connectivity_after_nmstate_changes.py \
  tests/network/flat_overlay/conftest.py \
  tests/network/kubemacpool/utils.py \
  tests/network/user_defined_network/conftest.py \
  tests/storage/cdi_upload/conftest.py \
  tests/network/bgp/evpn/conftest.py \
  tests/network/l2_bridge/bandwidth/conftest.py \
  tests/network/l2_bridge/migration_stuntime/conftest.py; do
  if test -f "$f"; then
    echo "--- $f"
    rg -n -C3 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\b|`@pytest`\.mark\.(smoke|gating)' "$f" || true
  fi
done

echo '=== Affected test fixtures and test names ==='
for d in \
  tests/network/flat_overlay \
  tests/network/kubemacpool \
  tests/network/nmstate \
  tests/network/user_defined_network \
  tests/storage/cdi_upload \
  tests/network/bgp/evpn \
  tests/network/l2_bridge; do
  echo "--- $d"
  rg -n -C1 '^(def test_|class Test|`@pytest`\.mark\.(smoke|gating))' "$d" --glob 'test_*.py' || true
done

echo '=== Smoke test parent conftest helper references ==='
for f in $(rg -l '`@pytest`\.mark\.smoke' tests --glob '*.py'); do
  d=$(dirname "$f")
  while test "$d" != "."; do
    if test -f "$d/conftest.py" && rg -q '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\b' "$d/conftest.py"; then
      echo "$f -> $d/conftest.py"
    fi
    d=$(dirname "$d")
  done
done

Length of output: 39203


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr=4944
head_sha=$(gh pr view "$pr" --repo "$repo" --json headRefOid --jq '.headRefOid')

body=$(cat <<'EOF'
## Test Execution Plan

**Run smoke tests: True** — Smoke-marked tests inherit `tests/conftest.py`, which calls `random_cidr_addresses_by_family` in shared VM fixtures. `tests/storage/cdi_upload/test_upload_virtctl.py` also inherits `tests/storage/cdi_upload/conftest.py::primary_udn_for_upload` → `random_ipv4_address`. The changed helpers now return IP interface objects, and `libs/net/apimachinery.py::dict_normalization_for_dataclass` serializes these objects in list values.

**Run gating tests: True** — Verified dependency paths:
- `tests/network/flat_overlay/test_flat_overlay.py` → `vmb_ingress_multi_network_policy` in `tests/network/flat_overlay/conftest.py` → `random_ipv4_address`.
- `tests/network/kubemacpool/test_kubemacpool.py` → KubeMacPool VM setup → `tests/network/kubemacpool/utils.py::vm_network_config` → `random_ipv4_address`.
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` → local VM fixtures → `random_ipv4_address`.
- `tests/network/user_defined_network/test_user_defined_network.py` → `namespaced_layer2_user_defined_network` → `random_ipv4_address`.

**Affected tests to run**
- `-m smoke`
- `tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace`
- `tests/network/flat_overlay/test_flat_overlay.py` (gating)
- `tests/network/kubemacpool/test_kubemacpool.py` (gating)
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` (gating)
- `tests/network/user_defined_network/test_user_defined_network.py` (gating)
- `tests/network/bgp/evpn/test_evpn_connectivity.py`
- `tests/network/l2_bridge/bandwidth/test_bandwidth.py`
- `tests/network/l2_bridge/migration_stuntime/test_migration_stuntime.py`
- `tests/network/l2_bridge/nad_ref_change/test_nad_ref_change.py`
- `tests/network/l2_bridge/vmi_interfaces_stability/test_interfaces_stability.py`
- `tests/network/l2_bridge/test_bridge_nic_hot_plug.py`

**Real tests (cluster required)**

Error/fix path — validate IP-interface serialization for UDN and cloud-init lists:
`pytest tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace tests/network/l2_bridge/bandwidth/test_bandwidth.py`

Happy path — validate bare-address consumers and non-default prefix lengths:
`pytest tests/network/flat_overlay/test_multi_network_policy.py tests/network/nmstate/test_connectivity_after_nmstate_changes.py tests/network/kubemacpool/test_kubemacpool.py`

Expected: manifests contain valid IP or CIDR strings as required, VMs configure their secondary interfaces, and connectivity assertions pass.
EOF
)

gh api --method POST "repos/$repo/pulls/$pr/comments" \
  -f body="$body" \
  -f commit_id="$head_sha" \
  -f path='libs/net/apimachinery.py' \
  -F line=1 \
  -f side='RIGHT' \
  --jq '{id,path,line,side}'

Length of output: 3243


@openshift-virtualization-qe-bot-3

You are interacting with an AI system.

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/network/bgp/evpn/libevpn.py
tests/network/flat_overlay/utils.py

@yossisegev yossisegev 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.

Thank you Asia

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py

@azhivovk

azhivovk commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

/retest tox

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/network/user_defined_network/conftest.py

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py
tests/network/bond/test_l2_bridge_over_bond.py
tests/network/jumbo_frame/test_bond.py
tests/network/jumbo_frame/test_bridge.py
tests/network/l2_bridge/conftest.py
tests/network/migration/test_migration.py

@Anatw Anatw 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.

Thank you, small comment:

Comment thread tests/network/flat_overlay/conftest.py Outdated
@azhivovk

azhivovk commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Change: rebase upon main and resolve conflicts, replace 32 -> SPECIFIC_HOST_MASK in flat overly conftest

@Anatw Anatw 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.

Thank you :)

@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

🤖 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/network/flat_overlay/conftest.py`:
- Line 354: Convert SPECIFIC_HOST_MASK to an integer before passing it as
subnet_length to random_ipv4_address, preferably by changing the constant
definition if all usages accept integers; otherwise convert it at this call site
while preserving any string-based CIDR usages elsewhere.

In `@tests/network/l2_bridge/test_bridge_nic_hot_plug.py`:
- Around line 109-114: Update the ipv4_address parameter type hint of
set_secondary_static_ip_address in libl2bridge.py from str to
ipaddress.IPv4Address | str, preserving the existing behavior for both string
and IPv4Address callers.
🪄 Autofix

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 Plus

Run ID: afc19e6a-86d3-4322-81a5-2b2151b6ffa9

📥 Commits

Reviewing files that changed from the base of the PR and between 21d18c8 and 58fef31.

📒 Files selected for processing (37)
  • libs/net/apimachinery.py
  • libs/net/ip.py
  • libs/vm/vm.py
  • tests/conftest.py
  • tests/network/bgp/conftest.py
  • tests/network/bgp/evpn/conftest.py
  • tests/network/bgp/evpn/libevpn.py
  • tests/network/bgp/evpn/test_evpn_connectivity.py
  • tests/network/bond/test_l2_bridge_over_bond.py
  • tests/network/connectivity/utils.py
  • tests/network/flat_overlay/conftest.py
  • tests/network/flat_overlay/utils.py
  • tests/network/general/test_cnv_tuning_regression.py
  • tests/network/jumbo_frame/test_bond.py
  • tests/network/jumbo_frame/test_bridge.py
  • tests/network/jumbo_frame/utils.py
  • tests/network/kubemacpool/utils.py
  • tests/network/l2_bridge/conftest.py
  • tests/network/l2_bridge/libl2bridge.py
  • tests/network/l2_bridge/nad_ref_change/conftest.py
  • tests/network/l2_bridge/nad_ref_change/lib_helpers.py
  • tests/network/l2_bridge/test_bridge_nic_hot_plug.py
  • tests/network/l2_bridge/vmi_interfaces_stability/lib_helpers.py
  • tests/network/libs/cloudinit.py
  • tests/network/libs/dhcpd.py
  • tests/network/libs/localnet.py
  • tests/network/localnet/conftest.py
  • tests/network/localnet/ipam/conftest.py
  • tests/network/localnet/migration_stuntime/conftest.py
  • tests/network/localnet/nad_ref_change/conftest.py
  • tests/network/macspoof/conftest.py
  • tests/network/migration/test_migration.py
  • tests/network/nmstate/test_connectivity_after_nmstate_changes.py
  • tests/network/sriov/libsriov.py
  • tests/network/upgrade/conftest.py
  • tests/network/user_defined_network/conftest.py
  • tests/storage/cdi_upload/conftest.py
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • RedHatQE/openshift-virtualization-tests-design-docs (manual)

Comment thread tests/network/flat_overlay/conftest.py
Comment thread tests/network/l2_bridge/test_bridge_nic_hot_plug.py
The random_ipv4_address and random_ipv6_address helpers
previously returned plain strings, requiring callers to
manually append prefix lengths and making the type opaque.

Returning IPv4Interface/IPv6Interface gives callers access
to the structured IP data
(.ip for the bare address, .network for the subnet) without
string parsing, and lets subnet_length be explicit and validated.

Callers that need a non-standard mask, may call `subnet_length=`
with the requested cidr.

IP interface objects in list values are explicitly stringified:
yaml.safe_dump cannot serialize IPv4Interface/IPv6Interface
directly and raises RepresenterError without this conversion.

YAML serialization is handled at the dataclass boundary
so EthernetDevice callers pass interface objects directly
without str() conversion.
Configure dacite to cast YAML strings to IP interface
objects when deserializing cloud-init network data.

Signed-off-by: Asia Khromov <azhivovk@redhat.com>
Assisted-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@azhivovk

azhivovk commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Change: change typing of constant to fit to all addresses in flat overlay setup

@azhivovk

Copy link
Copy Markdown
Member Author

/verified
#4944 (comment)

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

@coderabbitai

Test execution plan request details

CRITICAL: You MUST post an inline review comment on the first changed line of the first file.
The inline comment should contain the full Test Execution Plan (smoke decision, gating decision, and specific affected tests).
Do NOT submit a blocking review event (REQUEST_CHANGES/APPROVE).
Post a single inline PR comment on Files Changed (non-blocking COMMENT flow).

As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan.
You will post an inline review comment with the test execution plan on the first changed file.
If you fail to run or post a comment, retry.

Analysis Requirements:

  1. Examine code changes in each modified file

  2. Identify affected code paths, functions, and classes

  3. Analyze pytest-specific elements: fixtures (scope, dependencies), parametrization, markers, conftest changes

  4. Trace test dependencies through imports, shared utilities, fixture inheritance, fixture teardown, and yield from cleanup in conftest

  5. Detect new tests introduced in the PR

  6. Utilities and libs impact (when utilities/ or libs/ changes):
    You MUST use shell scripts (rg, git diff) to trace the full impact.
    Follow these sub-steps in order:

    6a. Identify modified symbols: For each changed file under utilities/ or libs/,
    list every modified function or method.
    Example: git diff HEAD~1 --unified=0 -- utilities/hco.py | grep '^[+-]def '

    6b. Find direct callers: Search tests and conftest for each symbol from 6a.
    Example: rg -l 'get_hco_version' tests/

    6c. Trace fixture teardown and cleanup: Find fixtures that reach
    the modified symbol through yield from or context-manager wrappers.
    Example: rg -l 'yield from.*enable_common_boot|def.*enable_common_boot' tests/

    6d. Trace same-file callers: In each changed file, find other functions
    whose body calls a modified symbol (including code after yield
    in @contextmanager helpers).
    Example: rg 'get_hco_version|enable_common_boot' utilities/hco.py

    6e. Expand transitively: If function A calls modified B, then
    tests/fixtures that call A are affected — even when the test body
    never imports B directly.

    Do NOT limit impact to tests that import the modified symbol only.

  7. Smoke test impact: Intersect the affected set from step 6 with smoke-marked tests.
    Run: rg -l '@pytest.mark.smoke' tests/
    VERIFY the above command returned actual file paths before concluding False.
    Set True if either condition is met:

    • a smoke-marked file appears in the affected set from 6b-6e, OR
    • any conftest.py in the smoke test's parent-directory hierarchy (up to repo root)
      imports or calls a modified utilities/libs symbol — including autouse fixtures
      that depend on modified functions. ALL tests in that directory and below are affected.
      Example check: for each smoke_file, scan dirname(smoke_file)/conftest.py,
      dirname(dirname(smoke_file))/conftest.py, etc. for modified symbol imports
      and autouse fixtures that depend on modified symbols.
  8. Gating test impact: Intersect the affected set from step 6 with gating-marked tests.
    Run: rg -l '@pytest.mark.gating' tests/
    Set True if a gating-marked file also appears in the affected set from 6b-6e.
    Utilities/libs changes often affect gating tests without affecting smoke tests.
    Do NOT stop analysis after concluding Run smoke tests: False.

Output rules:
Do NOT include analysis step numbers (1-8) in your visible output.

Your deliverable:
Your inline informational comment will be based on the following requirements:

Test Execution Plan

  • Run smoke tests: True / False — If True, state the dependency path (test → fixture → changed symbol). True ONLY with a verified path.
  • Run gating tests: True / False — If True, state the dependency path. True if any gating-marked test is in the affected set.
  • Affected tests to run (required when utilities/, libs/, or shared conftest changes — list concrete paths even when smoke is False)

Use these formats:

  • path/to/test_file.py - When the entire test file needs verification
  • path/to/test_file.py::TestClass::test_method - When specific test(s) needed
  • path/to/test_file.py::test_function - When specific test(s) needed
  • -m marker - When a marker covers multiple affected tests (e.g. -m gating only if ALL gating tests in scope need run)
  • Tag each listed test or group with its marker when not obvious, e.g. (gating) or (smoke)

Real test commands (MANDATORY when changes affect session/runtime code):

When the affected code runs at session/collection time (conftest fixtures, pytest plugins,
config hooks, session-scoped setup) or modifies runtime behavior that unit tests mock away,
you MUST include concrete pytest commands the PR author must run on a real cluster
to verify the change works end-to-end. Include:

  • A command for the error/fix path (the scenario the PR fixes)
  • A command for the happy path (regression: the normal case still works)
  • Use lightweight tests (e.g., --collect-only for startup failures,
    a single small test for runtime behavior)
    If the PR only changes test logic (not utilities/libs/conftest), the affected test
    paths themselves serve as the real test commands — no separate section needed.

Example output for a session-startup fix:

**Real tests (cluster required)**
Error path (the fix):
`pytest tests/storage/.../test_foo.py --storage-class-matrix=nonexistent-sc --collect-only`
Expected: ValueError with clear message, not IndexError

Happy path (regression):
`pytest tests/storage/.../test_foo.py --storage-class-matrix=<valid-sc> -k test_bar`
Expected: session starts normally

Guidelines:

  • Include tests affected directly OR via fixture setup/teardown, yield from cleanup, or transitive utility call chains (caller calls modified helper)
  • Use a full file path only if ALL tests in that file require verification
  • Use file path + test name when only specific tests use an affected fixture or utility wrapper (preferred for partial file impact)
  • If a test marker can cover multiple files/tests, provide the marker
  • Balance coverage vs over-testing - Keep descriptions minimal
  • Example: if leaf helper foo() changes, include tests whose fixture teardown calls wrapper bar() where bar() calls foo(), even when the test body only imports an unrelated symbol from the same utilities module

Hardware-Related Checks (SR-IOV, GPU, DPDK):

When PR modifies fixtures for hardware-specific resources:

  • Collection Safety: Fixtures MUST have existence checks (return None when hardware unavailable)
  • Test Plan: MUST verify both WITH and WITHOUT hardware:
    • Run affected tests on cluster WITH hardware
    • Verify collection succeeds on cluster WITHOUT hardware

CRITICAL WORKFLOW COMPLETION RULES:

When responding to this test execution plan request, you MUST follow these rules EXACTLY:

  1. YOUR ONLY DELIVERABLE: Post one non-blocking inline comment containing the test execution plan on the first changed line
  2. THEN STOP IMMEDIATELY - Do NOT generate any additional response
  3. FALLBACK ONLY: If inline comment API calls fail after retrying, post as a regular PR comment
  4. SILENCE = SUCCESS: After successfully submitting the review, your task is complete. No confirmation needed.

ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):

  • ❌ Do NOT post acknowledgment messages like "Test execution plan posted", "Review posted successfully", "I've successfully posted"
  • ❌ Do NOT mention review IDs, URLs, or confirmation of posting in the PR thread
  • ❌ Do NOT add any follow-up comments after submitting the review
  • ❌ Do NOT reply to confirm task completion
  • ❌ Do NOT explain what you did - just do it and stop

Remember: The pull request review is visible to users. Additional comments are redundant noise.

CRITICAL — Verification rules for smoke and gating decisions:
- For each True decision, you must have traced a concrete path: test file → fixture → utility function → modified symbol.
- Do NOT assume impact based on scope, file proximity, or infrastructure-sounding names.
Only set True when you trace a concrete path through steps 6a-6e, then 7 or 8.
WRONG: "utilities/hco.py changed → run smoke" (no traced dependency path)
WRONG: "Run smoke tests: False" with no affected-test list when gating tests use the changed utility
RIGHT: "Run smoke tests: False, Run gating tests: True" plus tests/.../test_foo.py::TestBar::test_baz (gating)
RIGHT: "Smoke test X uses fixture Y → wrapper Z → changed function W in utilities/hco.py"

Comment thread libs/net/apimachinery.py
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr='4944'

echo '=== PR metadata and changed files ==='
gh pr view "$pr" --repo "$repo" \
  --json baseRefName,baseRefOid,headRefOid,files \
  --jq '{base:.baseRefName,baseOid:.baseRefOid,headOid:.headRefOid,files:[.files[].path]}'

echo '=== Diff hunk headers ==='
gh pr diff "$pr" --repo "$repo" --patch | grep -E '^(diff --git|@@)' | head -180

echo '=== Modified definitions in libs ==='
git diff --unified=0 "origin/$(gh pr view "$pr" --repo "$repo" --json baseRefName --jq -r .baseRefName)"...HEAD -- 'libs/**' |
  grep -E '^[+-][[:space:]]*(def |class )' || true

echo '=== Shared-helper definitions and same-file calls ==='
ast-grep outline libs/net/ip.py --items all
rg -n -A36 -B6 '^def (random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family|random_ip_addresses_by_family)\b' libs/net/ip.py || true
rg -n -C3 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family|random_ip_addresses_by_family)\s*\(' libs/net/ip.py || true

echo '=== Direct helper callers in tests and conftest ==='
rg -n -C2 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family|random_ip_addresses_by_family)\s*\(' tests --glob '*.py' || true

echo '=== Fixture yield and context-wrapper evidence ==='
rg -n -C3 '(`@pytest`\.fixture|`@contextmanager`|yield from|yield\b|random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)' \
  tests/conftest.py tests --glob 'conftest.py' || true

echo '=== Smoke and gating marker files ==='
rg -l '`@pytest`\.mark\.smoke' tests --glob '*.py' || true
echo '--- gating ---'
rg -l '`@pytest`\.mark\.gating' tests --glob '*.py' || true

echo '=== Marker/helper direct overlap ==='
for f in $(rg -l '`@pytest`\.mark\.(smoke|gating)' tests --glob '*.py' || true); do
  if rg -q '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\s*\(' "$f"; then
    printf '%s\n' "$f"
  fi
done

echo '=== Parent-conftest helper paths for smoke files ==='
for f in $(rg -l '`@pytest`\.mark\.smoke' tests --glob '*.py' || true); do
  d=$(dirname "$f")
  while test "$d" != "."; do
    if test -f "$d/conftest.py" &&
       rg -q '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\s*\(' "$d/conftest.py"; then
      printf '%s -> %s/conftest.py\n' "$f" "$d"
    fi
    d=$(dirname "$d")
  done
done

Length of output: 172586


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr='4944'
base=$(gh pr view "$pr" --repo "$repo" --json baseRefName --jq -r '.baseRefName')

echo '=== Changed files ==='
gh api "repos/$repo/pulls/$pr/files?per_page=100" \
  --jq '.[] | "\(.filename)\t+\(.additions)/-\(.deletions)"'

echo '=== First changed patch with valid right-side additions ==='
first=$(gh api "repos/$repo/pulls/$pr/files?per_page=100" --jq -r '.[0].filename')
printf 'FIRST=%s\n' "$first"
gh pr diff "$pr" --repo "$repo" --patch -- "$first" | sed -n '1,150p'

echo '=== Changed library patches ==='
for f in libs/net/ip.py libs/net/apimachinery.py libs/vm/vm.py; do
  if git diff --quiet "origin/$base"...HEAD -- "$f"; then continue; fi
  echo "--- $f"
  git diff --unified=12 "origin/$base"...HEAD -- "$f"
done

echo '=== Root and changed-suite fixture definitions plus consumers ==='
rg -n -C3 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\s*\(|^def (vm_upgrade_a|vm_upgrade_b|primary_udn_for_upload|vmb_ingress_multi_network_policy|ipv4_localnet_address_pool|ipv6_localnet_address_pool|namespaced_layer2_user_defined_network)\b' \
  tests/conftest.py tests/storage/cdi_upload/conftest.py tests/network/flat_overlay/conftest.py \
  tests/network/localnet/conftest.py tests/network/kubemacpool/utils.py tests/network/user_defined_network/conftest.py \
  tests/network/nmstate/test_connectivity_after_nmstate_changes.py || true

echo '=== Test functions/classes in directly changed or fixture-dependent suites ==='
for d in tests/storage/cdi_upload tests/network/flat_overlay tests/network/kubemacpool \
         tests/network/nmstate tests/network/user_defined_network tests/network/localnet \
         tests/network/bgp/evpn tests/network/l2_bridge tests/network/sriov tests/network/upgrade; do
  echo "--- $d"
  rg -n -C1 '^(`@pytest`\.mark\.(smoke|gating)|class Test|def test_)' "$d" --glob 'test_*.py' || true
done

echo '=== Consumers of changed named fixtures ==='
rg -n -C2 '\b(vm_upgrade_a|vm_upgrade_b|primary_udn_for_upload|vmb_ingress_multi_network_policy|ipv4_localnet_address_pool|ipv6_localnet_address_pool|namespaced_layer2_user_defined_network)\b' \
  tests --glob '*.py' || true

echo '=== Gating test fixture usage ==='
for f in tests/network/flat_overlay/test_flat_overlay.py tests/network/kubemacpool/test_kubemacpool.py \
         tests/network/nmstate/test_connectivity_after_nmstate_changes.py tests/network/user_defined_network/test_user_defined_network.py \
         tests/network/localnet/test_default_bridge.py tests/storage/cdi_upload/test_upload_virtctl.py; do
  echo "--- $f"
  rg -n -C2 '`@pytest`\.mark\.(smoke|gating)|\b(vmb_ingress_multi_network_policy|vm_network_config|random_ipv4_address|namespaced_layer2_user_defined_network|ipv4_localnet_address_pool|ipv6_localnet_address_pool|primary_udn_for_upload)\b' "$f" || true
done

Length of output: 3291


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr='4944'
base=$(gh pr view "$pr" --repo "$repo" --json baseRefName --jq -r '.baseRefName')

echo '=== Changed files ==='
gh api "repos/$repo/pulls/$pr/files?per_page=100" \
  --jq '.[] | "\(.filename)\t+\(.additions)/-\(.deletions)"'

echo '=== First changed file and patch ==='
gh api "repos/$repo/pulls/$pr/files?per_page=100" \
  --jq '.[0] | "FIRST=\(.filename)\n\(.patch // "PATCH_UNAVAILABLE")"'

echo '=== Changed library patches ==='
for f in libs/net/ip.py libs/net/apimachinery.py libs/vm/vm.py; do
  if git diff --quiet "origin/$base"...HEAD -- "$f"; then continue; fi
  echo "--- $f"
  git diff --unified=12 "origin/$base"...HEAD -- "$f"
done

echo '=== Root and changed-suite fixture definitions plus helper calls ==='
rg -n -C3 '\b(random_ipv4_address|random_ipv6_address|random_cidr_addresses_by_family)\s*\(|^def (vm_upgrade_a|vm_upgrade_b|primary_udn_for_upload|vmb_ingress_multi_network_policy|ipv4_localnet_address_pool|ipv6_localnet_address_pool|namespaced_layer2_user_defined_network)\b' \
  tests/conftest.py tests/storage/cdi_upload/conftest.py tests/network/flat_overlay/conftest.py \
  tests/network/localnet/conftest.py tests/network/kubemacpool/utils.py tests/network/user_defined_network/conftest.py \
  tests/network/nmstate/test_connectivity_after_nmstate_changes.py || true

echo '=== Test functions/classes in affected suites ==='
for d in tests/storage/cdi_upload tests/network/flat_overlay tests/network/kubemacpool \
         tests/network/nmstate tests/network/user_defined_network tests/network/localnet \
         tests/network/bgp/evpn tests/network/l2_bridge tests/network/sriov tests/network/upgrade; do
  echo "--- $d"
  rg -n -C1 '^(`@pytest`\.mark\.(smoke|gating)|class Test|def test_)' "$d" --glob 'test_*.py' || true
done

echo '=== Consumers of changed named fixtures ==='
rg -n -C2 '\b(vm_upgrade_a|vm_upgrade_b|primary_udn_for_upload|vmb_ingress_multi_network_policy|ipv4_localnet_address_pool|ipv6_localnet_address_pool|namespaced_layer2_user_defined_network)\b' \
  tests --glob '*.py' || true

echo '=== Relevant gating-test fixture usage ==='
for f in tests/network/flat_overlay/test_flat_overlay.py tests/network/kubemacpool/test_kubemacpool.py \
         tests/network/nmstate/test_connectivity_after_nmstate_changes.py tests/network/user_defined_network/test_user_defined_network.py \
         tests/network/localnet/test_default_bridge.py tests/storage/cdi_upload/test_upload_virtctl.py; do
  echo "--- $f"
  rg -n -C2 '`@pytest`\.mark\.(smoke|gating)|\b(vmb_ingress_multi_network_policy|vm_network_config|random_ipv4_address|namespaced_layer2_user_defined_network|ipv4_localnet_address_pool|ipv6_localnet_address_pool|primary_udn_for_upload)\b' "$f" || true
done

Length of output: 3192


🏁 Script executed:

#!/bin/bash
set -euo pipefail

gh api 'repos/RedHatQE/openshift-virtualization-tests/pulls/4944/files?per_page=100' \
  --jq '.[] | {filename, additions, deletions, patch}'

Length of output: 57185


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='RedHatQE/openshift-virtualization-tests'
pr='4944'
head_sha=$(gh pr view "$pr" --repo "$repo" --json headRefOid --jq -r '.headRefOid')

body=$(cat <<'EOF'
## Test Execution Plan

**Run smoke tests: True** — `tests/storage/cdi_upload/test_upload_virtctl.py` → `tests/storage/cdi_upload/conftest.py::primary_udn_for_upload` → `random_ipv4_address`. The test also inherits `tests/conftest.py`, where upgrade VM fixtures call `random_cidr_addresses_by_family`. The helpers now return interface objects, and `dict_normalization_for_dataclass` serializes interface objects in address lists.

**Run gating tests: True** — Verified dependency paths:
- `tests/network/flat_overlay/test_flat_overlay.py` → `tests/network/flat_overlay/conftest.py::vmb_ingress_multi_network_policy` → `random_ipv4_address(subnet_length=32)`.
- `tests/network/kubemacpool/test_kubemacpool.py` → KubeMacPool VM setup → `tests/network/kubemacpool/utils.py::vm_network_config` → `random_ipv4_address(...).ip`.
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` → local VM fixtures → `random_ipv4_address`.
- `tests/network/user_defined_network/test_user_defined_network.py` → `tests/network/user_defined_network/conftest.py::namespaced_layer2_user_defined_network` → `random_ipv4_address`.

**Affected tests to run**
- `tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace` (smoke, gating)
- `tests/network/flat_overlay/test_flat_overlay.py` (gating)
- `tests/network/kubemacpool/test_kubemacpool.py` (gating)
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` (gating)
- `tests/network/user_defined_network/test_user_defined_network.py` (gating)
- `tests/network/localnet/test_default_bridge.py` (gating)
- `tests/network/bgp/evpn/test_evpn_connectivity.py`
- `tests/network/l2_bridge/bandwidth/test_bandwidth.py`
- `tests/network/l2_bridge/migration_stuntime/test_migration_stuntime.py`
- `tests/network/l2_bridge/nad_ref_change/test_nad_ref_change.py`
- `tests/network/l2_bridge/vmi_interfaces_stability/test_interfaces_stability.py`
- `tests/network/l2_bridge/test_bridge_nic_hot_plug.py`
- `-m smoke`
- `-m gating`

**Real tests (cluster required)**

Error/fix path — verify IP-interface serialization for cloud-init address lists and UDN subnets:
`pytest tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace tests/network/l2_bridge/bandwidth/test_bandwidth.py`

Happy path — verify bare-address consumers and the `/32` prefix path:
`pytest tests/network/flat_overlay/test_flat_overlay.py tests/network/nmstate/test_connectivity_after_nmstate_changes.py tests/network/kubemacpool/test_kubemacpool.py`

Expected: manifests contain valid IP or CIDR values, VM secondary interfaces configure successfully, and connectivity assertions pass.
EOF
)

gh api --method POST "repos/$repo/pulls/$pr/comments" \
  -f body="$body" \
  -f commit_id="$head_sha" \
  -f path='libs/net/apimachinery.py' \
  -F line=1 \
  -f side='RIGHT' \
  --jq '{id,path,line,side}'

Length of output: 3427


🏁 Script executed:

#!/bin/bash
set -euo pipefail

gh api 'repos/RedHatQE/openshift-virtualization-tests/pulls/4944' \
  --jq '.head.sha'

Length of output: 297


🏁 Script executed:

#!/bin/bash
set -euo pipefail

body=$(cat <<'EOF'
## Test Execution Plan

**Run smoke tests: True** — `tests/storage/cdi_upload/test_upload_virtctl.py` → `tests/storage/cdi_upload/conftest.py::primary_udn_for_upload` → `random_ipv4_address`. The test also inherits `tests/conftest.py`, where upgrade VM fixtures call `random_cidr_addresses_by_family`. The helpers now return interface objects, and `dict_normalization_for_dataclass` serializes interface objects in address lists.

**Run gating tests: True** — Verified dependency paths:
- `tests/network/flat_overlay/test_flat_overlay.py` → `tests/network/flat_overlay/conftest.py::vmb_ingress_multi_network_policy` → `random_ipv4_address(subnet_length=32)`.
- `tests/network/kubemacpool/test_kubemacpool.py` → KubeMacPool VM setup → `tests/network/kubemacpool/utils.py::vm_network_config` → `random_ipv4_address(...).ip`.
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` → local VM fixtures → `random_ipv4_address`.
- `tests/network/user_defined_network/test_user_defined_network.py` → `tests/network/user_defined_network/conftest.py::namespaced_layer2_user_defined_network` → `random_ipv4_address`.

**Affected tests to run**
- `tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace` (smoke, gating)
- `tests/network/flat_overlay/test_flat_overlay.py` (gating)
- `tests/network/kubemacpool/test_kubemacpool.py` (gating)
- `tests/network/nmstate/test_connectivity_after_nmstate_changes.py` (gating)
- `tests/network/user_defined_network/test_user_defined_network.py` (gating)
- `tests/network/localnet/test_default_bridge.py` (gating)
- `tests/network/bgp/evpn/test_evpn_connectivity.py`
- `tests/network/l2_bridge/bandwidth/test_bandwidth.py`
- `tests/network/l2_bridge/migration_stuntime/test_migration_stuntime.py`
- `tests/network/l2_bridge/nad_ref_change/test_nad_ref_change.py`
- `tests/network/l2_bridge/vmi_interfaces_stability/test_interfaces_stability.py`
- `tests/network/l2_bridge/test_bridge_nic_hot_plug.py`
- `-m smoke`
- `-m gating`

**Real tests (cluster required)**

Error/fix path — verify IP-interface serialization for cloud-init address lists and UDN subnets:
`pytest tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace tests/network/l2_bridge/bandwidth/test_bandwidth.py`

Happy path — verify bare-address consumers and the `/32` prefix path:
`pytest tests/network/flat_overlay/test_flat_overlay.py tests/network/nmstate/test_connectivity_after_nmstate_changes.py tests/network/kubemacpool/test_kubemacpool.py`

Expected: manifests contain valid IP or CIDR values, VM secondary interfaces configure successfully, and connectivity assertions pass.
EOF
)

gh api --method POST 'repos/RedHatQE/openshift-virtualization-tests/pulls/4944/comments' \
  -f body="$body" \
  -f commit_id='bca7853aebee66873f0de777ff4191a712100991' \
  -f path='libs/net/apimachinery.py' \
  -F line=1 \
  -f side='RIGHT'

Length of output: 8379


You are interacting with an AI system.

@azhivovk

Copy link
Copy Markdown
Member Author

/rerun-smoke

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py

@azhivovk

Copy link
Copy Markdown
Member Author

@EdDev Please revisit

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py

@Anatw

Anatw commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

We should keep in mind this PR - #5798 - once merged we'll need to add it to the current PR.

@azhivovk

Copy link
Copy Markdown
Member Author

@EdDev Please revisit

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/network/l2_bridge/libl2bridge.py

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

/retest all

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

Overlapping files

tests/conftest.py

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.