Skip to content

fix: Selenium Grid scaler logic on platformName is set empty or any#6477

Merged
JorTurFer merged 3 commits intokedacore:mainfrom
NDViet:main
Jan 17, 2025
Merged

fix: Selenium Grid scaler logic on platformName is set empty or any#6477
JorTurFer merged 3 commits intokedacore:mainfrom
NDViet:main

Conversation

@VietND96
Copy link
Contributor

@VietND96 VietND96 commented Jan 9, 2025

When Node stereotype set "platformName": "" (empty), node started up and registered to Hub with converting to "platformName": "windows". Similarly, the same behavior in session capabilities. This unexpected behavior impacts the scaler in counting the pending and ongoing sessions.
This issue is fixed in Grid core SeleniumHQ/selenium#15036 (platformName is empty should be considered as enum ANY instead of WINDOWS). Available from 4.28.0 onwards.

The incoming request with setting capability "platformName": "any" or not set. It will be assigned to any Node with the stereotype platformName: any or not set.
So, updating the scaler condition to be aligned with the same behavior.

Checklist

  • A PR is opened to update the documentation on (repo) (if applicable)
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #

Relates to #

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
@VietND96 VietND96 requested a review from a team as a code owner January 9, 2025 20:44
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jan 17, 2025

/run-e2e selenium
Update: You can check the progress here

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the fix!

@JorTurFer JorTurFer merged commit fca23b9 into kedacore:main Jan 17, 2025
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