!zyIwMfkvlwblbZsUty:matrix.org

selenium

2342 Members
5 Servers

Load older messages


SenderMessageTime
26 Jul 2024
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 It will be out next hours 06:33:04
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 Since want to include this fix from upstream just merged yesterday https://github.com/SeleniumHQ/selenium/pull/14282 06:35:00
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 Also want to wait for Chromium v127, but seems it did not come on time 06:37:36
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonogimage.png
Download image.png
10:30:03
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonogimage.png
Download image.png
10:30:05
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonogimage.png
Download image.png
10:30:08
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonog Hi everyone, why my parallel tests opens a multiple browsers to single session. However at the start of the test, it creates their individual session. 10:30:08
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 Lets config 1 Node container to take 1 session at a time only SE_NODE_MAX_SESSIONS=1 10:39:54
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 CLI opt would be --max-sessions by default, number of session detected by the number of processor available 10:42:13
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 https://www.selenium.dev/documentation/grid/configuration/cli_options/#node 10:42:23
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonog Thanks, I will check. Btw I am using k8s. Here's my current config. env: - name: SE_EVENT_BUS_HOST value: "selenium-hub" - name: SE_EVENT_BUS_SUBSCRIBE_PORT value: "4443" - name: SE_EVENT_BUS_PUBLISH_PORT value: "4442" - name: SE_SCREEN_WIDTH value: "2440" - name: SE_NODE_GRID_URL value: "http://10.0.0.0:4444" - name: SE_JAVA_OPTS value: "-Xmx8192m" - name: SE_SCREEN_HEIGHT value: "1440" - name: SE_SCREEN_DEPTH value: "24" - name: SE_NODE_PORT value: "5555" - name: SE_SESSION_REQUEST_TIMEOUT value: "900" - name: SE_SESSION_RETRY_INTERVAL value: "3" - name: SE_NODE_SESSION_TIMEOUT value: "6000" - name: SE_NODE_OVERRIDE_MAX_SESSIONS value: "false" - name: SE_VNC_NO_PASSWORD value: "1" - name: SE_VNC_VIEW_ONLY value: "1" - name: SE_NODE_MAX_SESSIONS value: "10" - name: SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP value: "true" - name: SE_BROWSER_LEFTOVERS_INTERVAL_SECS value: "3600" - name: SE_BROWSER_LEFTOVERS_PROCESSES_SECS value: "7800" - name: "SE_DRAIN_AFTER_SESSION_COUNT" value: "10" - name: "SE_BROWSER_LEFTOVERS_TEMPFILES_DAYS" value: "1" resources: limits: cpu: "1" memory: "2000Mi" requests: cpu: ".5" memory: "1000Mi" affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: zone operator: In values: - testing 10:44:15
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 so, it is - name: SE_NODE_MAX_SESSIONS value: "10" 10:45:52
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonog but SE_NODE_MAX_SESSION=1 can trigger parallel tests? 10:47:56
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 if K8s env, you can easy scale up the replicas to have multiple Node with mapping 1:1 kubectl scale deployment name --replicas=10 10:49:13
@_slack_seleniumhq_U070W6J5S07:matrix.orgEd Sherwin Nonog let me try that one. thank you 10:54:10
@_slack_seleniumhq_U063WPUSPCN:matrix.orgAmar Deep Singh Thanks for the info. No hurry from me. 11:51:52
@_slack_seleniumhq_U063WPUSPCN:matrix.orgAmar Deep Singh vietnd96 BTW where do you see those version list ? please share link if its publicly available. 12:05:32
@_slack_seleniumhq_U06440ZQPMZ:matrix.orgvietnd96 Via Nightly notes only https://github.com/SeleniumHQ/docker-selenium/releases/tag/nightly since we built images daily and audit deps version. So whenever the expected version comes, we can be aware 12:17:06
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena
apiVersion: apps/v1
kind: Deployment
metadata:
  name: selenium-hub
  labels:
    app: selenium-hub
spec:
  replicas: 1
  selector:
    matchLabels:
      app: selenium-hub
  template:
    metadata:
      labels:
        app: selenium-hub
    spec:
      containers:
      - name: selenium-hub
        image: selenium/hub:latest
        ports:
          - containerPort: 4444
          - containerPort: 4443
          - containerPort: 4442
        resources:
          limits:
            memory: "2000Mi"
            cpu: "1"
        livenessProbe:
          httpGet:
            path: /wd/hub/status
            port: 4444
          initialDelaySeconds: 30
          timeoutSeconds: 5
        readinessProbe:
          httpGet:
            path: /wd/hub/status
            port: 4444
          initialDelaySeconds: 30
          timeoutSeconds: 5
        env:
          - name: SE_SESSION_REQUEST_TIMEOUT
            value: "600"
          - name: SE_DRAIN_AFTER_SESSION_COUNT
            value: "20"
      nodeSelector:
        workload: seleniumgrid
16:11:40
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena
apiVersion: v1
kind: Service
metadata:
  name: selenium-hub
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
  type: LoadBalancer
  ports:
    - port: 4444
  selector:
    app: selenium-hub
16:11:41
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena
apiVersion: apps/v1
kind: Deployment
metadata:
  name: selenium-node-chrome
spec:
  replicas: 15
  selector:
    matchLabels:
      app: selenium-node-chrome
  template:
    metadata:
      labels:
        app: selenium-node-chrome
    spec:
      volumes:
      - name: dshm
        emptyDir:
          medium: Memory
      containers:
      - name: selenium-node-chrome-container
        image: selenium/node-chrome:latest
        ports:
          - containerPort: 5555
        volumeMounts:
          - name: dshm
            mountPath: /dev/shm
        env:
          - name: SE_EVENT_BUS_HOST
            value: "selenium-hub"
          - name: SE_EVENT_BUS_SUBSCRIBE_PORT
            value: "4443"
          - name: SE_EVENT_BUS_PUBLISH_PORT
            value: "4442"
          - name: VNC_NO_PASSWORD
            value: "1"
          - name: SE_NODE_OVERRIDE_MAX_SESSIONS
            value: "true"
          - name: SE_NODE_MAX_SESSIONS
            value: "1"
          - name: SE_NODE_MAX_INSTANCES
            value: "30"
      nodeSelector:
        workload: seleniumgrid
16:11:42
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena
PS C:\.clients\MyNexus\Selenium Cluster> kubectl get deployments
NAME                   READY   UP-TO-DATE   AVAILABLE   AGE
selenium-hub           1/1     1            1           20h
selenium-node-chrome   15/15   15           15          20h
PS C:\.clients\MyNexus\Selenium Cluster> kubectl get nodes
NAME                                   STATUS   ROLES   AGE   VERSION
aks-agentpool-11527817-vmss00000x      Ready    agent   20h   v1.27.9
aks-agentpool-11527817-vmss00000y      Ready    agent   20h   v1.27.9
aks-selenium-28924184-vmss00004a       Ready    agent   20h   v1.28.5
aks-selenium-28924184-vmss00004b       Ready    agent   20h   v1.28.5
aks-selenium-28924184-vmss00004c       Ready    agent   20h   v1.28.5
aks-seleniumgrid-11527817-vmss00002n   Ready    agent   20h   v1.27.9
aks-seleniumgrid-11527817-vmss00002o   Ready    agent   20h   v1.27.9
aks-seleniumgrid-11527817-vmss00002p   Ready    agent   20h   v1.27.9
aks-seleniumgrid-11527817-vmss00002q   Ready    agent   20h   v1.27.9
aks-seleniumgrid-11527817-vmss00002r   Ready    agent   20h   v1.27.9
PS C:\.clients\MyNexus\Selenium Cluster> kubectl get pods
NAME                                    READY   STATUS    RESTARTS   AGE
selenium-hub-7666548fdf-7zgtz           1/1     Running   0          20h
selenium-node-chrome-5d8798475d-6jkb8   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-8gfc8   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-9fvvk   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-bxxc8   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-ch7v6   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-cn7bf   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-d2lx2   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-dtrk4   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-f7n95   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-fkzrf   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-gcttr   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-vcmsb   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-w6fkm   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-wjlmg   1/1     Running   0          20h
selenium-node-chrome-5d8798475d-wvmft   1/1     Running   0          20h
PS C:\.clients\MyNexus\Selenium Cluster> kubectl logs selenium-hub-7666548fdf-7zgtz        
2024-07-25 19:38:09,080 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
2024-07-25 19:38:09,083 INFO RPC interface 'supervisor' initialized
2024-07-25 19:38:09,083 CRIT Server 'unix_http_server' running without any HTTP authentication checking  
2024-07-25 19:38:09,083 INFO supervisord started with pid 8
2024-07-25 19:38:10,086 INFO spawned: 'selenium-grid-hub' with pid 9
Appending Selenium options: --reject-unsupported-caps false
2024-07-25 19:38:10,093 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Tracing is disabled
19:38:10.924 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
19:38:10.931 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
19:38:11.238 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442, advertising as tcp://10.225.0.195:4442], XSUB binding to [binding to tcp://*:4443, advertising as tcp://10.225.0.195:4443]
19:38:11.359 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://10.225.0.195:4442 and tcp://10.225.0.195:4443
19:38:11.420 INFO [UnboundZmqEventBus.<init>] - Sockets created
19:38:12.422 INFO [UnboundZmqEventBus.<init>] - Event bus ready
19:38:13.966 INFO [Hub.execute] - Started Selenium Hub 4.22.0 (revision c5f3146703): http://10.225.0.195:4444
09:46:43.861 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "3c1ffb47086eaddefa3bbb4493da8446","eventTime": 1721987203858156492,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.225.0.149:4444","http.method": "POST","http.request_content_length": "716","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "webdriver\u002f8.14.3"}}   

09:48:43.814 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "a083730a936c2227bd30397f2f6335f0","eventTime": 1721987323814138215,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.225.0.149:4444","http.method": "POST","http.request_content_length": "716","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "webdriver\u002f8.14.3"}}   

09:50:43.838 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "b182935b2d598cb5fa7ad3449ba9f039","eventTime": 1721987443837659362,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.225.0.149:4444","http.method": "POST","http.request_content_length": "716","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "webdriver\u002f8.14.3"}}   

09:52:43.843 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "1ecc6c20f10ad9e615acfdbd2c1b2d01","eventTime": 1721987563841498659,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.225.0.149:4444","http.method": "POST","http.request_content_length": "716","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "webdriver\u002f8.14.3"}}   

PS C:\.clients\MyNexus\Selenium Cluster> kubectl logs selenium-node-chrome-5d8798475d-6jkb8
2024-07-25 19:38:42,155 INFO Included extra file "/etc/supervisor/conf.d/chrome-cleanup.conf" during parsing
2024-07-25 19:38:42,155 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing   
2024-07-25 19:38:42,160 INFO RPC interface 'supervisor' initialized
2024-07-25 19:38:42,160 CRIT Server 'unix_http_server' running without any HTTP authentication checking  
2024-07-25 19:38:42,160 INFO supervisord started with pid 8
2024-07-25 19:38:43,164 INFO spawned: 'xvfb' with pid 9
2024-07-25 19:38:43,167 INFO spawned: 'vnc' with pid 10
2024-07-25 19:38:43,173 INFO spawned: 'novnc' with pid 11
2024-07-25 19:38:43,182 INFO spawned: 'selenium-node' with pid 12
2024-07-25 19:38:43,190 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-07-25 19:38:44,270 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-25 19:38:44,270 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-25 19:38:44,270 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Appending Selenium options: --session-timeout 300
Appending Selenium options: --heartbeat-period 30
Generating Selenium Config
Configuring server...
Setting up SE_NODE_HOST...
Setting up SE_NODE_PORT...
Setting up SE_NODE_GRID_URL...
Tracing is disabled
Selenium Grid Node configuration:
[events]
publish = "tcp://selenium-hub:4442"
subscribe = "tcp://selenium-hub:4443"

[node]
session-timeout = "300"
override-max-sessions = true
detect-drivers = false
drain-after-session-count = 0
max-sessions = 1

[[node.driver-configuration]]
display-name = "chrome"
stereotype = '{"browserName": "chrome", "browserVersion": "126.0", "platformName": "Linux", "goog:chromeOptions": {"binary": "/usr/bin/google-chrome"}}'
max-sessions = 1

Starting Selenium Grid Node...
19:38:46.449 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
19:38:46.513 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
19:38:47.284 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443
19:38:47.941 INFO [UnboundZmqEventBus.<init>] - Sockets created
19:38:48.964 INFO [UnboundZmqEventBus.<init>] - Event bus ready
19:38:49.181 INFO [NodeServer.createHandlers] - Reporting self as: http://10.225.0.246:5555
19:38:49.211 INFO [NodeOptions.getSessionFactories] - Detected 2 available processors
19:38:49.213 WARN [NodeOptions.getSessionFactories] - Overriding max recommended number of 2 concurrent sessions. Session stability and reliability might suffer!
19:38:49.214 WARN [NodeOptions.getSessionFactories] - One browser session is recommended per available processor. Safari is always limited to 1 session per host.
19:38:49.214 WARN [NodeOptions.getSessionFactories] - Overriding this value for Internet Explorer is not recommended. Issues related to parallel testing with Internet Explored won't be accepted.
19:38:49.215 WARN [NodeOptions.getSessionFactories] - Double check if enabling 'override-max-sessions' is really needed
19:38:49.273 INFO [NodeOptions.report] - Adding chrome for {"browserName": "chrome","browserVersion": "126.0","goog:chromeOptions": {"binary": "\u002fusr\u002fbin\u002fgoogle-chrome"},"platformName": "linux","se:noVncPort": 7900,"se:vncEnabled": true} 1 times
19:38:49.304 INFO [Node.<init>] - Binding additional locator mechanisms: relative
19:38:49.507 INFO [NodeServer$1.start] - Starting registration process for Node http://10.225.0.246:5555 
19:38:49.509 INFO [NodeServer.execute] - Started Selenium node 4.22.0 (revision c5f3146703): http://10.225.0.246:5555
19:38:49.526 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:38:59.544 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:09.548 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:19.553 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:29.557 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:39.560 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:49.564 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:39:59.569 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:40:09.572 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:40:19.576 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:40:29.579 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:40:39.583 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
19:40:49.512 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
16:11:43
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena my chrome nodes have stopped registering w/ the hub. I'm running it on azure kubernetes w/ my own manifest files. I've attached the hub, chrome nodes and the loadbalancer service. As well as kubectl outputs and logs. If anyone wants to take a look i'd appreciate it. I have logs from a node trying to register, and logs from the hub.. as well as outputs of my deployments, pods and nodes 16:11:44
@_slack_seleniumhq_U068QC8MH6F:matrix.orgItseore Aleogena disregard, i found that i wasnt exposing all the ports in that internal load balancer 17:10:38
@tweyuo:matrix.org@tweyuo:matrix.org joined the room.18:28:38
@tweyuo:matrix.org@tweyuo:matrix.org left the room.18:28:54
@unofficialav:matrix.org@unofficialav:matrix.org joined the room.21:29:25
@unofficialav:matrix.org@unofficialav:matrix.org left the room.21:29:39
27 Jul 2024
@stinkymango:midov.pl@stinkymango:midov.pl joined the room.02:12:08
@stinkymango:midov.pl@stinkymango:midov.pl left the room.02:18:42

There are no newer messages yet.


Back to Room ListRoom Version: 6