I have several python selenium tests (each test in separate python file) which I want to run on a BIT BUCKET PIPELINE. It always fails after performing successfully just ONE of them (tried to change order, used different commands for running them, but nothing helps). I believe that itās something related to session lifetime for queued slots or something of the kind, but donāt quite get how to change settings and what to pass to fix it. Could you help me please
docker last line of log
time=ā2023-12-24T23:52:56.729131389Zā level=warning msg=āgrpc: addrConn.createTransport failed to connect to {localhost 0 }. Err :connection error: desc = "transport: Error while dialing only one connection allowed". Reconnectingā¦ā module=grpc
selenium-chrome service last lines of log:
23:58:26.158 INFO [LocalNode.stopTimedOutSession] - Session id 692d7ce993b71f7f2e265c3bf4597ba8 timed out, stoppingā¦
23:58:26.285 INFO [LocalSessionMap.lambda$new$0] - Deleted session from local Session Map, Id: 692d7ce993b71f7f2e265c3bf4597ba8
23:58:26.286 INFO [GridModel.release] - Releasing slot for session id 692d7ce993b71f7f2e265c3bf4597ba8
23:58:26.287 INFO [SessionSlot.stop] - Stopping session 692d7ce993b71f7f2e265c3bf4597ba8
bitbucket-pipelines.yml
image: python:3.11
pipelines:
default:
- parallel:
- step:
name: Test
caches: - pip
script: - export DOCKER_BUILDKIT=1
- docker build .
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- python -m pytest tests/test_login.py
- python -m pytest tests/test_create_employee.py
services: - docker
- selenium-chrome
definitions:
services:
selenium-chrome:
image: selenium/standalone-chrome:latest
ports:
- ā4444:4444ā
restart: always