Skip to content

Conversation

@Anushree-Mathur
Copy link
Contributor

@Anushree-Mathur Anushree-Mathur commented Nov 20, 2025

This feature is not supported in ppc64 or ppc64le systems so removing this testcase to be run on ppc systems.

Signed-off-by: Anushree-Mathur anushree.mathur@linux.ibm.com

Summary by CodeRabbit

  • Tests
    • Updated test configuration to expand architecture compatibility exclusions to include ppc64 and ppc64le, improving accuracy of applicability checks.
    • Added an explanatory comment and adjusted formatting/indentation in the test config for clarity and maintainability.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Nov 20, 2025

Walkthrough

The pull request updates a libvirt test configuration file to expand the CPU architecture exclusion list. In the with_maxphysaddr block the exclusion string is changed from no s390-virtio,aarch64 to no s390-virtio,aarch64,ppc64,ppc64le. A comment line noting non‑applicability on ppc64/ppc64le was added and indentation adjusted. No other functional changes were made.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single small configuration change in one file (libvirt/tests/cfg/cpu/vcpu_misc.cfg)
  • Low risk, straightforward exclusion-list expansion
  • Check indentation and comment placement for consistency with surrounding file style

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title describes excluding the maxphysaddr test on ppc architectures, which aligns with the main change of expanding the exclusion list in vcpu_misc.cfg to include ppc64 and ppc64le.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b3d9ccc and ba5d3d3.

📒 Files selected for processing (1)
  • libvirt/tests/cfg/cpu/vcpu_misc.cfg (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • libvirt/tests/cfg/cpu/vcpu_misc.cfg
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Python 3.11
  • GitHub Check: Python 3.12
  • GitHub Check: Python 3.8
  • GitHub Check: Python 3.9

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 and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 875c970 and b3d9ccc.

📒 Files selected for processing (1)
  • libvirt/tests/cfg/cpu/vcpu_misc.cfg (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Python 3.9
  • GitHub Check: Python 3.11
  • GitHub Check: Python 3.12
  • GitHub Check: Python 3.8

Comment on lines +40 to +42
cpu_mode = "host-model"
# not applicable on ppc64 or ppc64le
no s390-virtio,aarch64,ppc64,ppc64le
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Approve the architecture exclusion expansion, but fix indentation.

The logical change to exclude ppc64 and ppc64le architectures is correct and aligns with the PR objective.

However, line 41 uses tab characters for indentation instead of spaces, which is inconsistent with the rest of the file. Additionally, there appears to be trailing whitespace at the end of the comment line.

Apply this diff to fix the indentation and remove trailing whitespace:

 - with_maxphysaddr:
     cpu_mode = "host-model"
-	    # not applicable on ppc64 or ppc64le  
+    # not applicable on ppc64 or ppc64le
     no s390-virtio,aarch64,ppc64,ppc64le

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In libvirt/tests/cfg/cpu/vcpu_misc.cfg around lines 40 to 42, the exclusion
comment line uses a tab for indentation and has trailing whitespace; replace the
tab with the same spaces used by surrounding lines (match existing file
indentation) and remove any trailing spaces at the end of the comment so the
line consistently uses spaces and has no trailing whitespace.

This feature is not supported in ppc64 or ppc64le systems so
removing this testcase to be run on ppc systems.
Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>
@Anushree-Mathur
Copy link
Contributor Author

Before applying the patch:

00:16:03 INFO    : Check for environment
00:16:04 INFO    : Creating temporary mux dir
00:16:04 INFO    :
00:16:04 INFO    : Running Guest Tests Suite cpu_misc
00:16:04 INFO    : Running: /usr/local/bin/avocado run --vt-type libvirt --vt-config /home/Anu/tests/data/avocado-vt/backends/libvirt/cfg/cpu_misc.cfg                 --force-job-id 14e6bceb149d1614d62dd34c7dab0cbbbd79aa15                 --job-results-dir /home/Anu/tests/results  --vt-only-filter                                             "virtio_scsi virtio_net qcow2 Fedora.43.ppc64le"
JOB ID     : 14e6bceb149d1614d62dd34c7dab0cbbbd79aa15
JOB LOG    : /home/Anu/tests/results/job-2025-11-20T00.16-14e6bce/job.log
 (1/3) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
 (1/3) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: PASS (42.42 s)
 (2/3) type_specific.io-github-autotest-libvirt.vcpu_misc.positive_test.with_maxphysaddr: STARTED
 (2/3) type_specific.io-github-autotest-libvirt.vcpu_misc.positive_test.with_maxphysaddr: ERROR: Command 'lscpu|grep Address' failed.\nstdout: b''\nstderr: b''\nadditional_info: None (4.32 s)
 (3/3) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
 (3/3) io-github-autotest-libvirt.remove_guest.without_disk: PASS (4.30 s)

After applying the patch :

00:11:32 WARNING : Overriding user setting and enabling kvm bootstrap as guest tests are requested
00:11:33 INFO    : Check for environment
00:11:35 INFO    : Creating temporary mux dir
00:11:35 INFO    :
00:11:35 INFO    : Running Guest Tests Suite cpu_misc
00:11:35 INFO    : Running: /usr/local/bin/avocado run --vt-type libvirt --vt-config /home/Anu/tests/data/avocado-vt/backends/libvirt/cfg/cpu_misc.cfg                 --force-job-id 53865effb055f3e28c1eed9db25c5bf35015be62                 --job-results-dir /home/Anu/tests/results  --vt-only-filter                                             "virtio_scsi virtio_net qcow2 Fedora.43.ppc64le"
JOB ID     : 53865effb055f3e28c1eed9db25c5bf35015be62
JOB LOG    : /home/Anu/tests/results/job-2025-11-20T00.11-53865ef/job.log
 (1/2) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
 (1/2) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: PASS (53.47 s)
 (2/2) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
 (2/2) io-github-autotest-libvirt.remove_guest.without_disk: PASS (4.17 s)
RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant