Skip to content

Commit dae0e85

Browse files
authored
chore(ci): iast_defaults test from hatch to riot (#13374)
## Description Move the `iast_default` tests from hatch to riot. ## Checklist - [X] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) --------- Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent ebba142 commit dae0e85

File tree

11 files changed

+218
-35
lines changed

11 files changed

+218
-35
lines changed

.riot/requirements/1403768.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/1403768.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.8.0
13+
cryptography==44.0.3
14+
grpcio==1.71.0
15+
hypothesis==6.45.0
16+
idna==3.10
17+
iniconfig==2.1.0
18+
mock==5.2.0
19+
opentracing==2.4.0
20+
packaging==25.0
21+
pluggy==1.5.0
22+
pycparser==2.22
23+
pycryptodome==3.22.0
24+
pytest==8.3.5
25+
pytest-cov==6.1.1
26+
pytest-mock==3.14.0
27+
requests==2.32.3
28+
simplejson==3.20.1
29+
six==1.17.0
30+
sortedcontainers==2.4.0
31+
urllib3==2.4.0
32+
wheel==0.45.1

.riot/requirements/17ae74f.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/17ae74f.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.8.0
13+
cryptography==44.0.3
14+
exceptiongroup==1.2.2
15+
grpcio==1.71.0
16+
hypothesis==6.45.0
17+
idna==3.10
18+
iniconfig==2.1.0
19+
mock==5.2.0
20+
opentracing==2.4.0
21+
packaging==25.0
22+
pluggy==1.5.0
23+
pycparser==2.22
24+
pycryptodome==3.22.0
25+
pytest==8.3.5
26+
pytest-cov==6.1.1
27+
pytest-mock==3.14.0
28+
requests==2.32.3
29+
simplejson==3.20.1
30+
six==1.17.0
31+
sortedcontainers==2.4.0
32+
tomli==2.2.1
33+
urllib3==2.4.0
34+
wheel==0.45.1

.riot/requirements/1a81d2a.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.13
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/1a81d2a.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.8.0
13+
cryptography==44.0.3
14+
grpcio==1.71.0
15+
hypothesis==6.45.0
16+
idna==3.10
17+
iniconfig==2.1.0
18+
mock==5.2.0
19+
opentracing==2.4.0
20+
packaging==25.0
21+
pluggy==1.5.0
22+
pycparser==2.22
23+
pycryptodome==3.22.0
24+
pytest==8.3.5
25+
pytest-cov==6.1.1
26+
pytest-mock==3.14.0
27+
requests==2.32.3
28+
simplejson==3.20.1
29+
six==1.17.0
30+
sortedcontainers==2.4.0
31+
urllib3==2.4.0
32+
wheel==0.45.1

.riot/requirements/31639df.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/31639df.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.8.0
13+
cryptography==44.0.3
14+
grpcio==1.71.0
15+
hypothesis==6.45.0
16+
idna==3.10
17+
iniconfig==2.1.0
18+
mock==5.2.0
19+
opentracing==2.4.0
20+
packaging==25.0
21+
pluggy==1.5.0
22+
pycparser==2.22
23+
pycryptodome==3.22.0
24+
pytest==8.3.5
25+
pytest-cov==6.1.1
26+
pytest-mock==3.14.0
27+
requests==2.32.3
28+
simplejson==3.20.1
29+
six==1.17.0
30+
sortedcontainers==2.4.0
31+
urllib3==2.4.0
32+
wheel==0.45.1

.riot/requirements/7b9a280.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/7b9a280.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.8.0
13+
cryptography==44.0.3
14+
exceptiongroup==1.2.2
15+
grpcio==1.71.0
16+
hypothesis==6.45.0
17+
idna==3.10
18+
iniconfig==2.1.0
19+
mock==5.2.0
20+
opentracing==2.4.0
21+
packaging==25.0
22+
pluggy==1.5.0
23+
pycparser==2.22
24+
pycryptodome==3.22.0
25+
pytest==8.3.5
26+
pytest-cov==6.1.1
27+
pytest-mock==3.14.0
28+
requests==2.32.3
29+
simplejson==3.20.1
30+
six==1.17.0
31+
sortedcontainers==2.4.0
32+
tomli==2.2.1
33+
urllib3==2.4.0
34+
wheel==0.45.1

.riot/requirements/f2b3dd3.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
4+
#
5+
# pip-compile --no-annotate .riot/requirements/f2b3dd3.in
6+
#
7+
astunparse==1.6.3
8+
attrs==25.3.0
9+
certifi==2025.4.26
10+
cffi==1.17.1
11+
charset-normalizer==3.4.2
12+
coverage[toml]==7.6.1
13+
cryptography==44.0.3
14+
exceptiongroup==1.2.2
15+
grpcio==1.70.0
16+
hypothesis==6.45.0
17+
idna==3.10
18+
iniconfig==2.1.0
19+
mock==5.2.0
20+
opentracing==2.4.0
21+
packaging==25.0
22+
pluggy==1.5.0
23+
pycparser==2.22
24+
pycryptodome==3.22.0
25+
pytest==8.3.5
26+
pytest-cov==5.0.0
27+
pytest-mock==3.14.0
28+
requests==2.32.3
29+
simplejson==3.20.1
30+
six==1.17.0
31+
sortedcontainers==2.4.0
32+
tomli==2.2.1
33+
urllib3==2.2.3
34+
wheel==0.45.1

hatch.toml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -246,40 +246,6 @@ flask = ["~=2.3"]
246246
python = ["3.8", "3.11", "3.13"]
247247
flask = ["~=3.0"]
248248

249-
## ASM IAST module
250-
251-
[envs.appsec_iast_default]
252-
template = "appsec_iast_default"
253-
dependencies = [
254-
"pytest",
255-
"pytest-cov",
256-
"pytest-asyncio",
257-
"hypothesis",
258-
"requests",
259-
"urllib3",
260-
"pycryptodome",
261-
"cryptography",
262-
"astunparse",
263-
"simplejson",
264-
"grpcio",
265-
]
266-
267-
[envs.appsec_iast_default.env-vars]
268-
_DD_IAST_PATCH_MODULES = "benchmarks.,tests.appsec."
269-
DD_IAST_REQUEST_SAMPLING = "100"
270-
DD_IAST_DEDUPLICATION_ENABLED = "false"
271-
272-
273-
[envs.appsec_iast_default.scripts]
274-
test = [
275-
"uname -a",
276-
"pip freeze",
277-
"python -m pytest --no-ddtrace {args:tests/appsec/iast/}",
278-
]
279-
280-
[[envs.appsec_iast_default.matrix]]
281-
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
282-
283249
## ASM Native IAST module
284250

285251
[envs.appsec_iast_native]

lib-injection/sources/min_compatible_versions.csv

Whitespace-only changes.

min_compatible_versions.csv

Whitespace-only changes.

riotfile.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,25 @@ def select_pys(min_version: str = MIN_PYTHON_VERSION, max_version: str = MAX_PYT
240240
"rich": latest,
241241
},
242242
),
243+
Venv(
244+
name="appsec_iast_default",
245+
command="pytest {cmdargs} tests/appsec/iast/",
246+
pys=select_pys(),
247+
pkgs={
248+
"requests": latest,
249+
"urllib3": latest,
250+
"pycryptodome": latest,
251+
"cryptography": latest,
252+
"astunparse": latest,
253+
"simplejson": latest,
254+
"grpcio": latest,
255+
},
256+
env={
257+
"_DD_IAST_PATCH_MODULES": "benchmarks.,tests.appsec.",
258+
"DD_IAST_REQUEST_SAMPLING": "100",
259+
"DD_IAST_DEDUPLICATION_ENABLED": "false",
260+
},
261+
),
243262
Venv(
244263
name="tracer",
245264
command="pytest -v {cmdargs} tests/tracer/",

0 commit comments

Comments
 (0)