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

Implementation of sessionBrowserName and a fix for maxSessions (#2709 and #3061 #3062

Merged
merged 13 commits into from
May 25, 2022

Conversation

Wolfe1
Copy link
Contributor

@Wolfe1 Wolfe1 commented May 23, 2022

  1. Fixed the implementation of MaxSessions to now give an accurate count of nodes to scale up or down.
  2. Implemented an optional parameter sessionBrowserName to allow users to specify a different name for their browser in the active sessions list. In this case this is the behavior of Edge where in the session queue it is called "MicrosoftEdge" and as an active session it is called "msedge".

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added
  • A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • A PR is opened to update the documentation on (repo) (if applicable)
  • Changelog has been updated and is aligned with our changelog requirements

Fixes #2709
Fixes #3061

Docs PR: kedacore/keda-docs#764

Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
@Wolfe1 Wolfe1 requested a review from a team as a code owner May 23, 2022 20:53
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
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.

In general, looks good. Thanks for these improvements.
Only 2 things:

  • Unit tests are failing (Test_getCountFromSeleniumResponse)
  • Please, add an e2e test case covering this change (adding an edge node)

@JorTurFer JorTurFer requested a review from zroubalik May 23, 2022 21:49
@JorTurFer
Copy link
Member

JorTurFer commented May 24, 2022

/run-e2e selenium*
Update: You can check the progres 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.

Thanks! Next time please open a separate PR for each change, it is easier to review and maintain then.

@JorTurFer
Copy link
Member

Thanks! Next time please open a separate PR for each change, it is easier to review and maintain then.

I think this has been due to me. Sorry, next time I'll remember it

Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
@JorTurFer
Copy link
Member

JorTurFer commented May 24, 2022

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

@JorTurFer
Copy link
Member

JorTurFer commented May 24, 2022

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

@JorTurFer
Copy link
Member

JorTurFer commented May 24, 2022

hey @Wolfe1
e2e tests are failing, I think because the current e2e image doesn't enqueue any job in edge nodes. Could you update it?
It's in the repository test-tools
TBH, I have no idea about how to update it :(
If I have to chose where, I'd say that something in this file, but I'm not 100% sure

@Wolfe1 Wolfe1 mentioned this pull request May 24, 2022
2 tasks
@Wolfe1
Copy link
Contributor Author

Wolfe1 commented May 24, 2022

@JorTurFer Really giving me the full tour of the keda repos haha

@JorTurFer
Copy link
Member

@JorTurFer Really giving me the full tour of the keda repos haha

yes, and I only can say one thing, THANKS for the huge effort you are doing ❤️ ❤️ ❤️

@Wolfe1
Copy link
Contributor Author

Wolfe1 commented May 24, 2022

@JorTurFer Haha no worry, enjoying it.

Still working through these unit tests, not quite sure why I am getting the results I am but at least I figured out how to run them locally now so you should get less spam from me.

@JorTurFer
Copy link
Member

Still working through these unit tests, not quite sure why I am getting the results I am but at least I figured out how to run them locally now so you should get less spam from me.

Don't worry, I can show you how to do it locally xD. The easiest way is executing from root folder make test but that will run all unit tests. Most probably you prefer to run/debug only your tests to reduce the execution time and troubleshoot the issues, if you are using Visual Studio Code with the Golang extensions, you can just click on the contextual buttons:
image

@JorTurFer
Copy link
Member

JorTurFer commented May 24, 2022

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

This reverts commit 2e2aa80.

Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
Signed-off-by: Brandon Wolfe <Wolfe1@gmail.com>
@Wolfe1
Copy link
Contributor Author

Wolfe1 commented May 25, 2022

Alright @JorTurFer I think we are ready for one last e2e run and it should be good to review

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.

LGTM!

@JorTurFer
Copy link
Member

JorTurFer commented May 25, 2022

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

@JorTurFer
Copy link
Member

Thanks a lot for these improvements! ❤️
Let's wait till e2e tests finish and I'll merge it then

@JorTurFer JorTurFer merged commit d5f857c into kedacore:main May 25, 2022
@Wolfe1 Wolfe1 deleted the max_sessions_and_edge branch May 25, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants