TEST/UCP: Allow non-contiguous mlx5 devices - #11900
Conversation
Removes assumption that mlx5 devices always start at mlx5_0 and go up to mlx5_n with a valid device in each slot. This allows for testing setups with sparse configurations
|
🤖 Starting review — findings will be posted here when done. |
|
This change is not enough to make tests pass because the tests use devices from |
Yes, that makes sense. The scenario that I encountered is a single mlx5 device, something like |
I think that |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Build 134366 was killed after a 735-second silence while running Root cause: Evidence from the log: last application output is Implicated commit: unknown for the stuck flush itself. Candidates to check first: File: Suggested fix:
Related: PR #11900 (the change under test, #11900); note |
Skip mlx5 range checks when devices are not continguous from mlx5_0 to
mlx5_{max_idx1}. This condition can appear in virtualized environments.
|
🤖 Starting review — findings will be posted here when done. |
Fix comment alignment and Whitespace.
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
|
🤖 Starting review — findings will be posted here when done. |
| /* Assuming we have all devices from 0 to max_idx */ | ||
| EXPECT_EQ(max_idx + 1, count) << "Expected " << (max_idx + 1) | ||
| << " mlx5 devices, found: " << count; | ||
| /* |
There was a problem hiding this comment.
| /* | |
| /* Range tests assume devices mlx5_0 .. mlx5_<max_idx>. This assumption | |
| * can break in virtualized environments with devices that may use any | |
| * idx. */ |
minor: keep one comment style; other block comments in this file don't open with a bare /*.
|
🤖 Starting review — findings will be posted here when done. |
Removes assumption that mlx5 devices always start at mlx5_0 and go up to mlx5_n with a valid device in each slot. This allows for testing setups with sparse configurations
What?
Removes assumption that mlx5 devices always start at mlx5_0 and go up to mlx5_n with a valid device in each slot. This allows for testing setups with sparse configurations.
Why?
Blossom CI setup configures a single virtualized device per pod typically not mlx5_0. For example, mlx5_18.