Skip to content

Conversation

@alexandraBara
Copy link
Collaborator

@alexandraBara alexandraBara commented Jan 29, 2026

Removed duplication in error messaged for different plugins. Before:

+-------------------------+------------------+----------------------------------------------------------------------------------+
| Plugin                  | Status           | Message                                                                          |
+-------------------------+------------------+----------------------------------------------------------------------------------+
| BiosPlugin              | ERROR            | Analysis error: Bios data mismatch! Expected ['FAKE_BIOS_999'], actual:          |
|                         |                  | RMO100CAS (1 errors: Bios data mismatch! Expected ['FAKE_BIOS_999'], actual:     |
|                         |                  | RMO100CAS, Actual: RMO100CAS)                                                    |
| OsPlugin                | ERROR            | Analysis error: OS name mismatch! Expected: ['NonExistent OS 99.99'], actual:    |
|                         |                  | Ubuntu 22.04.5 LTS (1 errors: OS name mismatch! Expected: ['NonExistent OS       |
|                         |                  | 99.99'], actual: Ubuntu 22.04.5 LTS)                                             |
| KernelPlugin            | ERROR            | Analysis error: Kernel mismatch! Expected: ['9.99.999-fake-kernel'], actual:     |
|                         |                  | 5.18.2-mi300-build-140423-ubuntu-22.04+ (1 errors: Kernel mismatch! Expected:    |
|                         |                  | ['9.99.999-fake-kernel'], actual: 5.18.2-mi300-build-140423-ubuntu-22.04+)       |
| MemoryPlugin            | ERROR            | Analysis error: Memory usage exceeded max allowed! Used 4.80 GB, max allowed     |
|                         |                  | 0.01 GB (base=memory_threshold (max_expected) 1.00 GB × ratio=0.01) (1 errors:   |
|                         |                  | Memory usage exceeded max allowed! Used 4.80 GB, max allowed 0.01 GB             |
|                         |                  | (base=memory_threshold (max_expected) 1.00 GB × ratio=0.01))                     |
| RocmPlugin              | ERROR            | Analysis error: ROCm version mismatch! Expected: ['99.99.99999'], actual:        |
|                         |                  | 7.2.0-288 (1 errors: ROCm version mismatch! Expected: ['99.99.99999'], actual:   |
|                         |                  | 7.2.0-288)                                                                       |
| ProcessPlugin           | ERROR            | Analysis error: CPU usage 1.2999999999999972 exceeds limit 0.01 (1 errors: CPU   |
|                         |                  | usage exceeds maximum limit)                                                     |
| PackagePlugin           | ERROR            | Analysis error: Package version missmatched. Missmatched versions: [], not found |
|                         |                  | versions: [('nonexistent-package-xyz', '99.99.99'), ('another-fake-package',     |
|                         |                  | '1.0.0')] (2 errors: Package nonexistent-package-xyz not found in the package    |
|                         |                  | list, Package another-fake-package not found in the package list)                |
| KernelModulePlugin      | ERROR            | Analysis error: Kernel modules failed to match every pattern. Unmatched          |
|                         |                  | patterns: ['nonexistent_module_xyz', 'fake_module_abc']                          |
| DkmsPlugin              | ERROR            | Analysis error: DKMS data mismatch.                                              |
|                         |                  | Actual: ['amdgpu/6.16.13-2254482.22.04, 5.18.2-mi300-build-140423-ubuntu-22.04+, |
|                         |                  | x86_64: installed', 'dkms-2.8.7'].                                               |
|                         |                  | Expected: [['fake_status'], ['99.99.99']] (2 errors: DKMS status has an          |
|                         |                  | unexpected value, DKMS version has an unexpected value)                          |
| DeviceEnumerationPlugin | ERROR            | Analysis error: Expected cpu_count in [9999], but got 1. Expected gpu_count in   |
|                         |                  | [9999], but got 0. Expected vf_count in [9999], but got 0.  (3 errors: Expected  |
|                         |                  | cpu_count in [9999], but got 1. , Expected gpu_count in [9999], but got 0. ,     |
|                         |                  | Expected vf_count in [9999], but got 0. )                                        |
| CmdlinePlugin           | ERROR            | Analysis error: Illegal kernel cmdline, found_banned: ['root'], missing          |
|                         |                  | required: ['fake_required_param=999', 'nonexistent_boot_option'] (3 errors:      |
|                         |                  | Missing 2 required kernel cmdline arguments, Found 1 banned kernel cmdline       |
|                         |                  | arguments, Illegal kernel cmdline, found_banned: ['root'], missing required:     |
|                         |                  | ['fake_required_param=999', 'nonexistent_boot_option'])                          |
| DmesgPlugin             | EXECUTION_FAILUR | Analysis error: task failed to run (1 errors: Validation error during analysis)  |
|                         | E                |                                                                                  |
+-------------------------+------------------+----------------------------------------------------------------------------------+

after:

+-------------------------+-------------------+----------------------------------------------------------------------------------+
| Plugin                  | Status            | Message                                                                          |
+-------------------------+-------------------+----------------------------------------------------------------------------------+
| BiosPlugin              | ERROR             | Analysis error: Bios data mismatch! (1 errors: Bios data mismatch! Expected      |
|                         |                   | ['FAKE_BIOS_999'], actual: RMO100CAS)                                            |
| OsPlugin                | ERROR             | Analysis error: OS name mismatch! (1 errors: OS name mismatch! Expected:         |
|                         |                   | ['NonExistent OS 99.99'], actual: Ubuntu 22.04.5 LTS)                            |
| KernelPlugin            | ERROR             | Analysis error: Kernel mismatch! (1 errors: Kernel mismatch! Expected:           |
|                         |                   | ['9.99.999-fake-kernel'], actual: 5.18.2-mi300-build-140423-ubuntu-22.04+)       |
| MemoryPlugin            | ERROR             | Analysis error: Memory usage exceeded max allowed! (1 errors: Memory usage       |
|                         |                   | exceeded max allowed! Used 4.84 GB, max allowed 0.01 GB (base=memory_threshold   |
|                         |                   | (max_expected) 1.00 GB × ratio=0.01))                                            |
| RocmPlugin              | ERROR             | Analysis error: ROCm version mismatch! (1 errors: ROCm version mismatch!         |
|                         |                   | Expected: ['99.99.99999'], actual: 7.2.0-288)                                    |
| ProcessPlugin           | ERROR             | Analysis error: Process limits exceeded (1 errors: CPU usage 1.2000000000000028  |
|                         |                   | exceeds limit 0.01)                                                              |
| PackagePlugin           | ERROR             | Analysis error: Package version mismatch (2 errors: Package nonexistent-package- |
|                         |                   | xyz not found in the package list, Package another-fake-package not found in the |
|                         |                   | package list)                                                                    |
| KernelModulePlugin      | ERROR             | Analysis error: Kernel modules failed to match every pattern. Unmatched          |
|                         |                   | patterns: ['nonexistent_module_xyz', 'fake_module_abc']                          |
| DkmsPlugin              | ERROR             | Analysis error: DKMS data mismatch.                                              |
|                         |                   | Actual: ['amdgpu/6.16.13-2254482.22.04, 5.18.2-mi300-build-140423-ubuntu-22.04+, |
|                         |                   | x86_64: installed', 'dkms-2.8.7'].                                               |
|                         |                   | Expected: [['fake_status'], ['99.99.99']] (2 errors: DKMS status has an          |
|                         |                   | unexpected value, DKMS version has an unexpected value)                          |
| DeviceEnumerationPlugin | ERROR             | Analysis error: Device Enumeration mismatch (3 errors: Expected cpu_count in     |
|                         |                   | [9999], but got 1, Expected gpu_count in [9999], but got 0, Expected vf_count in |
|                         |                   | [9999], but got 0)                                                               |
| CmdlinePlugin           | ERROR             | Analysis error: Illegal kernel cmdline (3 errors: Missing 2 required kernel      |
|                         |                   | cmdline arguments, Found 1 banned kernel cmdline arguments, Illegal kernel       |
|                         |                   | cmdline, found_banned: ['root'], missing required: ['fake_required_param=999',   |
|                         |                   | 'nonexistent_boot_option'])                                                      |
| DmesgPlugin             | EXECUTION_FAILURE | Analysis error: task failed to run (1 errors: Validation error during analysis)  |
+-------------------------+-------------------+----------------------------------------------------------------------------------+

@alexandraBara alexandraBara merged commit 4d68751 into development Jan 29, 2026
6 checks passed
@alexandraBara alexandraBara deleted the alex_dup_fix branch January 29, 2026 22:36
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.

3 participants