Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Selenium Grid scaler #6169

Merged
merged 7 commits into from
Nov 3, 2024
Merged

Refactor Selenium Grid scaler #6169

merged 7 commits into from
Nov 3, 2024

Conversation

VietND96
Copy link
Contributor

@VietND96 VietND96 commented Sep 17, 2024

Provide a description of what has been changed

  1. Selenium Grid Scaler: Improve logic based on node stereotypes, node sessions and queue requests capabilities (#6080)
  • Enhanced KEDA scaler behavior, addressing:
    • Node with different platformName scaling: Fixed incorrect scaling behavior when both Linux and Windows node stereotypes are present (#1925).
    • Excessive autoscaling: Resolved over-scaling of browser nodes (#2160).
  1. Added one more parameter nodeMaxSessions (default is 1), to configure the scaler to be aligned with option --max-sessions (env var SE_NODE_MAX_SESSIONS) in the Node. It helps the calculation be better.
  2. Selenium Grid Scaler: Support for Username and Password Authentication of Grid GraphQL endpoint (#6144)
  3. Update all unit tests accordingly to the new GraphQL response.

Checklist

Fixes #6144 Fixes #6080

Relates to SeleniumHQ/docker-selenium#2160, SeleniumHQ/docker-selenium#1925, #6047

@SpiritZhou
Copy link
Contributor

SpiritZhou commented Sep 18, 2024

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

@VietND96
Copy link
Contributor Author

VietND96 commented Oct 2, 2024

Noted that we also set up some e2e tests in the downstream repo https://github.com/SeleniumHQ/docker-selenium/tree/trunk/.keda for the evaluation and feedback from community

@zroubalik
Copy link
Member

zroubalik commented Oct 2, 2024

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

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

LGTM, this is really great, thanks for the contribution!

@VietND96 VietND96 force-pushed the main branch 10 times, most recently from 4e46487 to 86e662c Compare October 7, 2024 03:17
@VietND96
Copy link
Contributor Author

VietND96 commented Oct 7, 2024

/run-e2e selenium

@VietND96
Copy link
Contributor Author

VietND96 commented Oct 9, 2024

@SpiritZhou, @zroubalik, could you please help trigger one more command for /run-e2e selenium ?

@zroubalik
Copy link
Member

zroubalik commented Oct 9, 2024

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

@VietND96
Copy link
Contributor Author

VietND96 commented Oct 9, 2024

Not sure why the svc address could not reach in workflow

04-0-09T5:***8:45Z ERROR scale_handler error getting scale decision ***"scaledObject.Namespace": "selenium-test-ns", "scaledObject.Name": "firefox-selenium-test-so", "scaler": "seleniumGridScaler", "error": "error requesting selenium grid endpoint: Post "***selenium-hub.selenium-test-ns:4444/graphql": dial tcp 0.0.5.6:4444: connect: connection refused"

In local, I could see it passed always

PASS
ok command-line-arguments 49.126s
##############################################
##############################################
EXECUTION SUMMARY
##############################################
##############################################
Passed tests:
Execution of tests/scalers/selenium/selenium_test.go, has passed after "one" attempts

Signed-off-by: Viet Nguyen Duc <[email protected]>
@JorTurFer JorTurFer mentioned this pull request Oct 16, 2024
1 task
@JorTurFer
Copy link
Member

JorTurFer commented Oct 16, 2024

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

Signed-off-by: Viet Nguyen Duc <[email protected]>
@VietND96
Copy link
Contributor Author

@JorTurFer, UTs and e2e passed. I also updated docs aligned with this.

@JorTurFer
Copy link
Member

JorTurFer commented Oct 17, 2024

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

Signed-off-by: Viet Nguyen Duc <[email protected]>
@VietND96
Copy link
Contributor Author

@JorTurFer, fixed conflicted from latest main branch

@zroubalik
Copy link
Member

zroubalik commented Oct 23, 2024

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

@zroubalik zroubalik enabled auto-merge (squash) October 23, 2024 19:51
@JorTurFer
Copy link
Member

JorTurFer commented Nov 3, 2024

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

@JorTurFer JorTurFer mentioned this pull request Nov 3, 2024
28 tasks
@JorTurFer
Copy link
Member

Thanks a lot for your help and patience 🙇

@JorTurFer JorTurFer merged commit c1a1b3d into kedacore:main Nov 3, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants