Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change to prefer ready devices when padding host assignments.
No open issues 🎉
What changed in this PR
This PR reduces repeated connection timeouts in the all-devices QA test by changing how hosts pad shorter device lists.
Changes:
AssignDevicesToClientsnow pads with the last ready device in the host’s assigned list.- Hosts with no ready device still pad with their last assigned device.
- Two regression tests cover ready-device selection and the fallback when no device is ready.
| File | Description |
|---|---|
e2e/internal/qa/device_assignment.go |
Selects the last ready device for padding while preserving the fallback. |
e2e/internal/qa/device_assignment_test.go |
Adds regression cases for both padding paths. |
CHANGELOG.md |
Documents the padding change and the QA timeout context. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
AssignDevicesToClientspad a host's shorter device list with the last device in that list that can accept users (Ready()).max_users=0.aws-sin-mn-qa2haddz-sg1-sw01(max_users=0) last in its list and timed out on it 11 times.DetermineClientsToConnectkeeps a host connected when its device is the same as in the previous batch and its status is up.Testing Verification
TestAssignDevicesToClientscase gives a host the listdev1,dev2,drained, and checks that both padded batches usedev2.main, where both padded batches usedrained.max_users=0, and checks that the host still pads with its last device.