Skip to content

RHELMISC 34338: Add client role support (DUT/SUT/Support/Master/Stress)#991

Open
elizashurov wants to merge 3 commits into
HCK-CI:masterfrom
elizashurov:RHELMISC-34338
Open

RHELMISC 34338: Add client role support (DUT/SUT/Support/Master/Stress)#991
elizashurov wants to merge 3 commits into
HCK-CI:masterfrom
elizashurov:RHELMISC-34338

Conversation

@elizashurov

Copy link
Copy Markdown
Contributor

Add a role field to platform client config.
WHQL uses dut/support,SVVP uses sut/master(MC)/stress(SC).

Add ClientRole and PlatformClients to resolve and validate role
combinations. Master/stress clients skip driver install and HLK target
registration but still join the pool.

@elizashurov elizashurov requested a review from kostyanf14 June 3, 2026 13:12
Comment thread lib/engines/hcktest/platform_clients.rb Fixed
Comment thread lib/engines/hcktest/platform_clients.rb Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a structured way to manage client roles in HLK platforms by adding a ClientRole enum and a PlatformClients helper class. It refactors HCKTest and Tests to dynamically resolve primary and auxiliary clients based on these roles, and updates the platform JSON configurations accordingly. The review feedback suggests refining the Sorbet type signature for build_platform_clients to avoid unnecessary nilability, removing an unused index parameter in build_entries, and ensuring consistent boolean return types in download_memory_dumps when no support client is present.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread lib/engines/hcktest/hcktest.rb Outdated
Comment thread lib/engines/hcktest/platform_clients.rb
Comment thread lib/engines/hcktest/tests.rb Outdated
@elizashurov

Copy link
Copy Markdown
Contributor Author

depends on HCK-CI/rtoolsHCK#81

Comment thread lib/setupmanagers/qemuhck/qemu_machine.rb Outdated
Comment thread lib/models/client_role.rb Outdated
Comment thread lib/engines/hcktest/tests.rb Outdated
Comment thread lib/engines/hcktest/platform_clients.rb
Comment thread lib/engines/hcktest/hcktest.rb
Comment thread lib/models/hlk_platform.rb
Comment thread lib/engines/hcktest/platform_clients.rb Fixed
Comment thread lib/engines/hcktest/platform_clients.rb Fixed
Comment thread lib/engines/hcktest/platform_clients.rb Fixed
Comment thread lib/engines/hcktest/platform_clients.rb Fixed
Add a role field to platform client config. WHQL uses dut/support,
SVVP uses sut/master(MC)/stress(SC).

Add `ClientRole` and `PlatformClients` to resolve and validate role
combinations. Master/stress clients skip driver install and HLK target
registration but still join the pool.

Signed-off-by: Elizabeth Ashurov <[email protected]>
Add "role": "dut" to c1 and "role": "support" to c2 across all
existing platform definitions.

Signed-off-by: Elizabeth Ashurov <[email protected]>
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