Skip to content

chore(ci): move the selenium ci step to riot #13611

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

Merged
merged 15 commits into from
Jun 12, 2025
Merged
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
38 changes: 38 additions & 0 deletions .riot/requirements/1230d1c.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1230d1c.in
#
attrs==25.3.0
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
exceptiongroup==1.3.0
h11==0.16.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
mock==5.2.0
opentracing==2.4.0
outcome==1.3.0.post0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pysocks==1.7.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
python-dotenv==1.1.0
requests==2.32.4
selenium==4.33.0
sniffio==1.3.1
sortedcontainers==2.4.0
tomli==2.2.1
trio==0.30.0
trio-websocket==0.12.2
typing-extensions==4.13.2
urllib3[socks]==2.4.0
webdriver-manager==4.0.2
websocket-client==1.8.0
wsproto==1.2.0
38 changes: 38 additions & 0 deletions .riot/requirements/143a175.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/143a175.in
#
attrs==25.3.0
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
exceptiongroup==1.3.0
h11==0.16.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
mock==5.2.0
opentracing==2.4.0
outcome==1.3.0.post0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pysocks==1.7.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
python-dotenv==1.1.0
requests==2.32.4
selenium==4.33.0
sniffio==1.3.1
sortedcontainers==2.4.0
tomli==2.2.1
trio==0.30.0
trio-websocket==0.12.2
typing-extensions==4.13.2
urllib3[socks]==2.4.0
webdriver-manager==4.0.2
websocket-client==1.8.0
wsproto==1.2.0
36 changes: 36 additions & 0 deletions .riot/requirements/18e9ec9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/18e9ec9.in
#
attrs==25.3.0
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
h11==0.16.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
mock==5.2.0
opentracing==2.4.0
outcome==1.3.0.post0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pysocks==1.7.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
python-dotenv==1.1.0
requests==2.32.4
selenium==4.33.0
sniffio==1.3.1
sortedcontainers==2.4.0
trio==0.30.0
trio-websocket==0.12.2
typing-extensions==4.13.2
urllib3[socks]==2.4.0
webdriver-manager==4.0.2
websocket-client==1.8.0
wsproto==1.2.0
36 changes: 36 additions & 0 deletions .riot/requirements/1db770e.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1db770e.in
#
attrs==25.3.0
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
h11==0.16.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
mock==5.2.0
opentracing==2.4.0
outcome==1.3.0.post0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pysocks==1.7.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
python-dotenv==1.1.0
requests==2.32.4
selenium==4.33.0
sniffio==1.3.1
sortedcontainers==2.4.0
trio==0.30.0
trio-websocket==0.12.2
typing-extensions==4.13.2
urllib3[socks]==2.4.0
webdriver-manager==4.0.2
websocket-client==1.8.0
wsproto==1.2.0
29 changes: 0 additions & 29 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -757,35 +757,6 @@ view = [
"python scripts/ci_visibility/view_snapshot.py {args:}",
]

[envs.selenium]
template = "selenium"
dependencies = [
"pytest",
"pytest-cov",
"hypothesis",
"selenium~=4.0",
"webdriver-manager"
]

[evs.selenium.env-vars]
DD_AGENT_TRACER_URL = "9126"

[envs.selenium.scripts]
test = [
"pip freeze",
"pytest -c /dev/null --no-ddtrace --no-cov tests/contrib/selenium {args:}",
]

[[envs.selenium.matrix]]
python = ["3.10", "3.12"]
tested_pytest_plugin_version = ["v1", "v2"]

[envs.selenium.overrides]
matrix.tested_pytest_plugin_version.env-vars = [
{ key = "_TESTED_PYTEST_LEGACY_PLUGIN", value = "true", if = ["v1"]},
{ key = "_TESTED_PYTEST_LEGACY_PLUGIN", value = "false", if = ["v2"]}
]

[envs.appsec_integrations_pygoat]
template = "appsec_integrations_pygoat"
dependencies = [
Expand Down
2 changes: 2 additions & 0 deletions lib-injection/sources/min_compatible_versions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ rq,~=1.8.0
ruamel.yaml,0
sanic,~=20.12
sanic-testing,~=0.8.3
selenium,~=4.0
slotscheck,==0.17.0
snowflake-connector-python,~=2.3.0
spyne,0
Expand All @@ -188,6 +189,7 @@ vcrpy,==4.2.1
vertexai,0
vertica-python,>=0.6.0
virtualenv-clone,0
webdriver-manager,0
websockets,<11.0
webtest,0
werkzeug,<1.0
Expand Down
2 changes: 2 additions & 0 deletions min_compatible_versions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ rq,~=1.8.0
ruamel.yaml,0
sanic,~=20.12
sanic-testing,~=0.8.3
selenium,~=4.0
slotscheck,==0.17.0
snowflake-connector-python,~=2.3.0
spyne,0
Expand All @@ -188,6 +189,7 @@ vcrpy,==4.2.1
vertexai,0
vertica-python,>=0.6.0
virtualenv-clone,0
webdriver-manager,0
websockets,<11.0
webtest,0
werkzeug,<1.0
Expand Down
30 changes: 30 additions & 0 deletions riotfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,36 @@ def select_pys(min_version: str = MIN_PYTHON_VERSION, max_version: str = MAX_PYT
),
],
),
Venv(
name="selenium",
pys=["3.10", "3.12"],
pkgs={
"selenium": "~=4.0",
"webdriver-manager": latest,
},
command="pytest --no-cov {cmdargs} -c /dev/null --no-ddtrace tests/contrib/selenium",
env={
"DD_AGENT_TRACER_URL": "9126",
},
venvs=[
Venv(
venvs=[
Venv(
name="selenium-pytest-legacy-plugin-true",
env={
"_TESTED_PYTEST_LEGACY_PLUGIN": "true",
},
),
Venv(
name="selenium-pytest-legacy-plugin-false",
env={
"_TESTED_PYTEST_LEGACY_PLUGIN": "false",
},
),
],
),
],
),
Venv(
name="freezegun",
command="pytest tests/contrib/freezegun {cmdargs}",
Expand Down
2 changes: 1 addition & 1 deletion tests/ci_visibility/suitespec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ suites:
- '@selenium'
- tests/contrib/selenium/*
- tests/snapshots/test_selenium*
runner: hatch
runner: riot
snapshot: true
unittest:
parallelism: 2
Expand Down
Loading