Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.bak
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ workflows:
name: "K8s test - Autoscaling Jobs - HTTPS"
platforms: linux/arm64
machine-type: ubuntu2204arm64large
k8s-version: 'v1.29.13'
k8s-version: 'v1.36.1'
test-strategy: job_https
cluster: 'minikube'
helm-version: 'v3.14.3'
Expand All @@ -47,7 +47,7 @@ workflows:
name: "K8s test - Autoscaling Jobs - Ingress hostname"
platforms: linux/arm64
machine-type: ubuntu2204arm64large
k8s-version: 'v1.30.9'
k8s-version: 'v1.35.5'
test-strategy: job_hostname
cluster: 'minikube'
helm-version: 'v3.15.4'
Expand All @@ -57,7 +57,7 @@ workflows:
name: "K8s test - Autoscaling Deployments - HTTPS"
platforms: linux/arm64
machine-type: ubuntu2204arm64large
k8s-version: 'v1.31.5'
k8s-version: 'v1.35.5'
test-strategy: deployment_https
cluster: 'minikube'
helm-version: 'v3.16.4'
Expand All @@ -67,7 +67,7 @@ workflows:
name: "K8s test - Playwright Connect Autoscaling Grid"
platforms: linux/arm64
machine-type: ubuntu2204arm64large
k8s-version: 'v1.32.1'
k8s-version: 'v1.32.13'
test-strategy: playwright_connect_grid
cluster: 'minikube'
helm-version: 'v3.17.0'
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/helm-chart-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
fail-fast: false
matrix:
include:
- k8s-version: 'v1.34.2'
- k8s-version: 'v1.34.8'
cluster: 'minikube'
helm-version: 'v3.19.2'
docker-version: '29.1.1'
Expand All @@ -59,7 +59,7 @@ jobs:
os: ubuntu-22.04
check-records-output: true
test-strategy: disabled
- k8s-version: 'v1.34.2'
- k8s-version: 'v1.34.8'
cluster: 'minikube'
helm-version: 'v3.18.6'
docker-version: '29.1.1'
Expand All @@ -69,47 +69,47 @@ jobs:
os: ubuntu-22.04
check-records-output: true
test-strategy: job
- k8s-version: 'v1.34.2'
- k8s-version: 'v1.34.8'
cluster: 'minikube'
helm-version: 'v4.0.1'
helm-version: 'v4.2.0'
docker-version: '29.1.1'
python-version: '3.14'
test-upgrade: true
service-mesh: true
os: ubuntu-22.04
check-records-output: true
test-strategy: deployment
- k8s-version: 'v1.29.15'
- k8s-version: 'v1.36.1'
cluster: 'minikube'
helm-version: 'v3.14.3'
helm-version: 'v3.21.0'
docker-version: '27.5.1'
python-version: '3.11'
test-upgrade: true
service-mesh: false
os: ubuntu-22.04
check-records-output: true
test-strategy: job_https
- k8s-version: 'v1.30.14'
- k8s-version: 'v1.35.5'
cluster: 'minikube'
helm-version: 'v3.15.4'
helm-version: 'v3.20.1'
docker-version: '27.5.1'
python-version: '3.12'
test-upgrade: true
service-mesh: false
os: ubuntu-22.04
check-records-output: true
test-strategy: job_hostname
- k8s-version: 'v1.31.14'
- k8s-version: 'v1.35.5'
cluster: 'minikube'
helm-version: 'v3.16.4'
helm-version: 'v4.1.4'
docker-version: '27.5.1'
python-version: '3.13'
test-upgrade: true
service-mesh: false
os: ubuntu-22.04
check-records-output: true
test-strategy: deployment_https
- k8s-version: 'v1.32.10'
- k8s-version: 'v1.32.13'
cluster: 'minikube'
helm-version: 'v3.17.4'
docker-version: '28.5.2'
Expand All @@ -119,7 +119,7 @@ jobs:
os: ubuntu-22.04
check-records-output: true
test-strategy: playwright_connect_grid
- k8s-version: 'v1.33.6'
- k8s-version: 'v1.33.12'
cluster: 'minikube'
helm-version: 'v3.18.6'
docker-version: '28.5.2'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/k8s-scaling-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,42 +71,42 @@ jobs:
fail-fast: false
matrix:
include:
- k8s-version: 'v1.34.2'
- k8s-version: 'v1.34.8'
cluster: 'minikube'
helm-version: 'v4.0.1'
helm-version: 'v4.2.0'
docker-version: '29.1.1'
python-version: '3.13'
os: ubuntu-22.04
test-strategy: test_k8s_autoscaling_job_count_strategy_default_in_chaos
- k8s-version: 'v1.34.2'
- k8s-version: 'v1.34.8'
cluster: 'minikube'
helm-version: 'v3.19.2'
docker-version: '29.1.1'
python-version: '3.13'
os: ubuntu-22.04
test-strategy: test_k8s_autoscaling_job_count_strategy_default_with_node_max_sessions
- k8s-version: 'v1.33.6'
- k8s-version: 'v1.33.12'
cluster: 'minikube'
helm-version: 'v3.19.2'
docker-version: '29.1.1'
python-version: '3.12'
os: ubuntu-22.04
test-strategy: test_k8s_autoscaling_job_count_strategy_default
- k8s-version: 'v1.30.14'
- k8s-version: 'v1.35.5'
cluster: 'minikube'
helm-version: 'v3.15.4'
helm-version: 'v3.20.1'
docker-version: '27.5.1'
python-version: '3.12'
os: ubuntu-22.04
test-strategy: test_k8s_autoscaling_deployment_count_in_chaos
- k8s-version: 'v1.31.14'
- k8s-version: 'v1.35.5'
cluster: 'minikube'
helm-version: 'v3.16.4'
helm-version: 'v4.1.4'
docker-version: '28.5.2'
python-version: '3.13'
os: ubuntu-22.04
test-strategy: test_k8s_autoscaling_deployment_count_with_node_max_sessions
- k8s-version: 'v1.32.10'
- k8s-version: 'v1.32.13'
cluster: 'minikube'
helm-version: 'v3.17.4'
docker-version: '28.5.2'
Expand Down
9 changes: 3 additions & 6 deletions tests/SeleniumTests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def setUp(self):
options.enable_downloads = SELENIUM_ENABLE_MANAGED_DOWNLOADS
if not SELENIUM_ENABLE_MANAGED_DOWNLOADS:
options.add_argument('disable-features=DownloadBubble,DownloadBubbleV2')
if TEST_ADD_CAPS_RECORD_VIDEO:
options.set_capability('se:recordVideo', True)
options.set_capability('se:recordVideo', True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Action required

1. Record-video flag ignored 🐞 Bug ≡ Correctness

tests/SeleniumTests/__init__.py still reads TEST_ADD_CAPS_RECORD_VIDEO but now unconditionally
sets se:recordVideo=true, so TEST_ADD_CAPS_RECORD_VIDEO=false no longer changes behavior. This
breaks Makefile/docker-compose flows that explicitly set TEST_ADD_CAPS_RECORD_VIDEO=false (e.g.,
test_video_dynamic_name) and forces video recording overhead even when intentionally disabled.
Agent Prompt
## Issue description
`TEST_ADD_CAPS_RECORD_VIDEO` is still read from the environment but is no longer used to control whether the test client sends `se:recordVideo`. Several CI/test entrypoints still set/pass this env var expecting it to change behavior.

## Issue Context
- The test module still defines `TEST_ADD_CAPS_RECORD_VIDEO`, but the capability is always set.
- The Makefile and docker-compose test harness still pass `TEST_ADD_CAPS_RECORD_VIDEO`, including a target that explicitly sets it to `false`.

## Fix Focus Areas
Choose one consistent direction:
1) **Keep the toggle**: restore the `if TEST_ADD_CAPS_RECORD_VIDEO:` guard around `options.set_capability('se:recordVideo', True)` for Chrome/Edge/Firefox.
2) **Remove the toggle** (if the new behavior is intended): delete `TEST_ADD_CAPS_RECORD_VIDEO` parsing + remove it from docker-compose/Makefile targets (including `test_video_dynamic_name`) so the repo doesn’t advertise a knob that does nothing.

### Fix Focus Areas (paths/lines)
- tests/SeleniumTests/__init__.py[33-35]
- tests/SeleniumTests/__init__.py[155-165]
- tests/SeleniumTests/__init__.py[216-224]
- tests/SeleniumTests/__init__.py[266-280]
- Makefile[1100-1102]
- tests/docker-compose-v3-test-video.yml[78-88]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

if TEST_RETAIN_ON_FAILURE:
options.set_capability('se:retainOnFailure', True)
if TEST_CUSTOM_SPECIFIC_NAME:
Expand Down Expand Up @@ -221,8 +220,7 @@ def setUp(self):
options.enable_downloads = SELENIUM_ENABLE_MANAGED_DOWNLOADS
if not SELENIUM_ENABLE_MANAGED_DOWNLOADS:
options.add_argument('disable-features=DownloadBubble,DownloadBubbleV2')
if TEST_ADD_CAPS_RECORD_VIDEO:
options.set_capability('se:recordVideo', True)
options.set_capability('se:recordVideo', True)
if TEST_RETAIN_ON_FAILURE:
options.set_capability('se:retainOnFailure', True)
if TEST_CUSTOM_SPECIFIC_NAME:
Expand Down Expand Up @@ -277,8 +275,7 @@ def setUp(self):
profile.set_preference('intl.accept_languages', 'vi-VN,vi')
profile.set_preference('intl.locale.requested', 'vi-VN,vi')
options.profile = profile
if TEST_ADD_CAPS_RECORD_VIDEO:
options.set_capability('se:recordVideo', True)
options.set_capability('se:recordVideo', True)
if TEST_RETAIN_ON_FAILURE:
options.set_capability('se:retainOnFailure', True)
if TEST_CUSTOM_SPECIFIC_NAME:
Expand Down
2 changes: 0 additions & 2 deletions tests/docker-compose-v3-dev-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ services:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_VNC_NO_PASSWORD=true
- SE_NODE_ENABLE_MANAGED_DOWNLOADS=true
- SE_RECORD_VIDEO=true

firefox:
deploy:
Expand All @@ -33,7 +32,6 @@ services:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_VNC_NO_PASSWORD=true
- SE_NODE_ENABLE_MANAGED_DOWNLOADS=true
- SE_RECORD_VIDEO=true

selenium-hub:
image: selenium/hub:4.43.0-20260404
Expand Down
2 changes: 0 additions & 2 deletions tests/docker-compose-v3-event-driven-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ services:
- /tmp/videos:/videos
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_RECORD_VIDEO=true
- SE_RETAIN_ON_FAILURE=true
# Remote name and destination path to upload
- SE_UPLOAD_DESTINATION_PREFIX=myftp://ftp/seluser
Expand All @@ -62,7 +61,6 @@ services:
- /tmp/videos:/videos
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_RECORD_VIDEO=true
- SE_RETAIN_ON_FAILURE=true
# Remote name and destination path to upload
- SE_UPLOAD_DESTINATION_PREFIX=myftp://ftp/seluser
Expand Down
1 change: 0 additions & 1 deletion tests/docker-compose-v3-event-driven-standalone-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ services:
- /tmp/videos:/videos
environment:
- SE_VIDEO_RECORD_STANDALONE=true
- SE_RECORD_VIDEO=true
- SE_VIDEO_UPLOAD_ENABLED=true
- SE_DYNAMIC_OVERRIDE_MAX_SESSIONS=true
- SE_DYNAMIC_MAX_SESSIONS=4
Expand Down
4 changes: 0 additions & 4 deletions tests/docker-compose-v3-get-started-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ services:
- /tmp/videos:/videos
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_RECORD_VIDEO=true
- SE_VIDEO_FILE_NAME=auto
- SE_NODE_GRID_URL=http://selenium-hub:4444

firefox:
Expand All @@ -30,8 +28,6 @@ services:
- /tmp/videos:/videos
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_RECORD_VIDEO=true
- SE_VIDEO_FILE_NAME=auto
- SE_NODE_GRID_URL=http://selenium-hub:4444

selenium-hub:
Expand Down
6 changes: 0 additions & 6 deletions tests/docker-compose-v3-test-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ services:
- SE_DRAIN_AFTER_SESSION_COUNT=4
- SE_ENABLE_TLS=true
- SE_JAVA_OPTS=-Dwebdriver.httpclient.readTimeout=${REQUEST_TIMEOUT}
- SE_RECORD_VIDEO=true
- SE_VIDEO_FILE_NAME=auto
- SE_SERVER_PROTOCOL=https
- SE_NODE_GRID_URL=https://selenium-hub:4444
- SE_NODE_STEREOTYPE_EXTRA={"myApp:version":"beta","myApp:publish":"public"}
Expand Down Expand Up @@ -65,8 +63,6 @@ services:
- SE_DRAIN_AFTER_SESSION_COUNT=2
- SE_ENABLE_TLS=true
- SE_JAVA_OPTS=-Dwebdriver.httpclient.readTimeout=${REQUEST_TIMEOUT}
- SE_RECORD_VIDEO=true
- SE_VIDEO_FILE_NAME=auto
- SE_SERVER_PROTOCOL=https
- SE_NODE_GRID_URL=https://selenium-hub:4444
- SE_NODE_STEREOTYPE_EXTRA={"myApp:version":"beta","myApp:publish":"public"}
Expand Down Expand Up @@ -97,8 +93,6 @@ services:
- SE_DRAIN_AFTER_SESSION_COUNT=3
- SE_ENABLE_TLS=true
- SE_JAVA_OPTS=-Dwebdriver.httpclient.readTimeout=${REQUEST_TIMEOUT}
- SE_RECORD_VIDEO=true
- SE_VIDEO_FILE_NAME=auto
- SE_SERVER_PROTOCOL=https
- SE_NODE_GRID_URL=https://selenium-hub:4444
- SE_NODE_STEREOTYPE_EXTRA={"myApp:version":"beta","myApp:publish":"public"}
Expand Down
Loading