-
Notifications
You must be signed in to change notification settings - Fork 575
No containers are started when desiredContainers = 0 and browserstack remote proxy is enabled #552
Comments
@dennisgranath, I will take a look at this tonight if @diemol hasn't had a chance. [EDIT - a word] |
Maybe we should only call Hmm. maybe not a good idea since container could be reused... |
Ah ok, this was the ZaleniumCapabilityMatcher class job. But since we don't have the DockerSeleniumStarterProxy anymore then it is doing only half of the job. I think this is the class that needs to be improved. |
@diemol would you like me to take a look at this? |
That's be cool @dspasojevic, thanks! What basically needs to happen is that the ZaleniumCapabilityMatcher matcher should return false if the capabilities can be fulfilled by docker-selenium. |
Ah right. I guess that we don't need to consider a hypothetical situation where a different image is available for different browser versions - there is no capability to use more than one image. I will take a look. |
@diemol, I wonder if it would be a good idea for two proxy sets to be managed:
When capabilities are checked, set one would be checked first. If:
Otherwise, try service by starting a new auto-started capability. That way, we don't have to rely overly much on the correct sorting of proxies - we explicitly prefer to meet capabilities with the first proxy set. WDYT? |
This commit has a first cut of using two proxy sets to prioritise auto-starting over using a manual registered node. I'm not sure how to check whether an auto-started node could be used. |
I think it does not need to be that complex because the proxies have already methods to validate capabilities requested vs. the ones that can be fulfilled. I would just keep it very simple since the matching can be done by each class done for that, perhaps splitting the proxies in two groups would solve the problem but not in the simplest way. I really think that it is a matter of modifying the matcher for the cloud proxies, and we can keep the change rather small. |
Sure. I think that there is something to be said for explicitly preferring local nodes over cloud testing proxies, rather than relying on the proxy set sorting. If the logic for the potential capabilities of the local nodes could be expressed simply, I think that this would be a clean solution. Happy to defer to you though - you know much more here than I do :) |
Sounds good @dspasojevic, thanks for checking it though. |
Fixed, will release between today and tomorrow. |
Awesome @diemol!! Thanks alot!! |
Please make sure that you provide enough information for us to help you with this issue. Thank you!
Zalenium Image Version(s):
3.11.0f
Expected Behavior -
By default it should start a container when os capability is not set.
Actual Behavior -
It runs the tests on browserstack random OS
The text was updated successfully, but these errors were encountered: