Enhance loadtesting for Openshift Version Prod Validations - #453
Enhance loadtesting for Openshift Version Prod Validations#453edisonLcardenas wants to merge 5 commits into
Conversation
|
Hi @edisonLcardenas. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: edisonLcardenas The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
looks good to me, only things is regions: italynorth and taiwannorth are dropped can you please check again |
|
0e4889d to
01920bd
Compare
tkesharw-RH
left a comment
There was a problem hiding this comment.
Hey Ed, there were minor checks and changes I found. Please review them.
Thanks,
Tejas
| LOCATION=$region | ||
| break; | ||
| regions=() | ||
| while IFS= read -r line; do |
There was a problem hiding this comment.
This drops the final region westus3 from regions.txt as it lacks a trailing newline.
It will stop at westus2. 47 regions will be loaded instead of 48.
We can have 2 fixes.
- change the logic to -> while IFS= read -r line || [[ -n "$line" ]]; do
- Add a trailing newline to regions.txt
| fi | ||
| done | ||
| fi | ||
|
|
There was a problem hiding this comment.
There is a scope of duplication when selecting regions.
Eg. 1 3 4 4 6 6 7 8
It could target existing tmux sessions and there could be scope of duplication in cluster create/delete operations.
We could add this fix.
duplicates=$(printf '%s\n' "${selected_regions[@]}" | sort | uniq -d)
if [[ -n "$duplicates" ]]; then
echo "Duplicate region selected: $duplicates"
exit 1
fi
| fi | ||
|
|
||
| # one tmux window per region, each with $CONCURRENCY panes running in parallel | ||
| SESSION="loadtest" |
There was a problem hiding this comment.
Suppose one load test is already running in a session named loadtest. Starting the script again makes tmux new-session fail because that name already exists.
Commands tmux new-window and send-keys target existing load test and the second run could inject additional Azure create/delete commands into its panes
Fix:
Add this checks:
if tmux has-session -t "$SESSION" 2>/dev/null; then
echo "tmux session '$SESSION' already exists"
exit 1
fi
Change log: