Skip to content

Commit a4b42e9

Browse files
committed
fix failing tests
1 parent 757c83f commit a4b42e9

File tree

8 files changed

+49
-104
lines changed

8 files changed

+49
-104
lines changed

.riot/requirements/118fd10.txt renamed to .riot/requirements/1072660.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
5-
# pip-compile --allow-unsafe --no-annotate .riot/requirements/118fd10.in
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1072660.in
66
#
7-
asgiref==3.9.1
8-
attrs==25.3.0
7+
asgiref==3.10.0
8+
attrs==25.4.0
99
bcrypt==4.2.1
10-
certifi==2025.8.3
11-
charset-normalizer==3.4.3
10+
certifi==2025.10.5
11+
charset-normalizer==3.4.4
1212
coverage[toml]==7.10.7
1313
dill==0.4.0
1414
django==4.0.10
@@ -18,8 +18,9 @@ gevent==25.9.1
1818
greenlet==3.2.4
1919
gunicorn==23.0.0
2020
hypothesis==6.45.0
21-
idna==3.10
21+
idna==3.11
2222
iniconfig==2.1.0
23+
legacy-cgi==2.6.4
2324
mock==5.2.0
2425
opentracing==2.4.0
2526
packaging==25.0
@@ -30,16 +31,16 @@ pytest==8.4.2
3031
pytest-cov==7.0.0
3132
pytest-django[testing]==3.10.0
3233
pytest-mock==3.15.1
33-
pyyaml==6.0.2
34+
pyyaml==6.0.3
3435
requests==2.32.5
3536
six==1.17.0
3637
sortedcontainers==2.4.0
3738
sqlparse==0.5.3
38-
tomli==2.2.1
39+
tomli==2.3.0
3940
typing-extensions==4.15.0
4041
urllib3==2.5.0
4142
zope-event==6.0
42-
zope-interface==8.0
43+
zope-interface==8.0.1
4344

4445
# The following packages are considered to be unsafe in a requirements file:
4546
setuptools==80.9.0

.riot/requirements/1b4f196.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,16 @@
22
# This file is autogenerated by pip-compile with Python 3.13
33
# by the following command:
44
#
5-
<<<<<<<< HEAD:.riot/requirements/1b4f196.txt
65
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1b4f196.in
7-
========
8-
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1532cbc.in
9-
>>>>>>>> main:.riot/requirements/1532cbc.txt
106
#
117
asgiref==3.10.0
128
attrs==25.4.0
139
bcrypt==4.2.1
1410
certifi==2025.10.5
1511
charset-normalizer==3.4.4
16-
coverage[toml]==7.11.0
12+
coverage[toml]==7.11.1
1713
dill==0.4.0
18-
<<<<<<<< HEAD:.riot/requirements/1b4f196.txt
1914
django==5.2.8
20-
========
21-
django==4.2.26
22-
>>>>>>>> main:.riot/requirements/1532cbc.txt
2315
django-configurations==2.5.1
2416
gevent==25.9.1
2517
greenlet==3.2.4
@@ -44,8 +36,5 @@ six==1.17.0
4436
sortedcontainers==2.4.0
4537
sqlparse==0.5.3
4638
urllib3==2.5.0
47-
zope-event==6.0
39+
zope-event==6.1
4840
zope-interface==8.0.1
49-
50-
# The following packages are considered to be unsafe in a requirements file:
51-
setuptools==80.9.0

.riot/requirements/13632f0.txt renamed to .riot/requirements/6c3e5ec.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.13
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
5-
# pip-compile --allow-unsafe --no-annotate .riot/requirements/13632f0.in
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/6c3e5ec.in
66
#
77
asgiref==3.10.0
88
attrs==25.4.0
@@ -19,6 +19,7 @@ gunicorn==23.0.0
1919
hypothesis==6.45.0
2020
idna==3.11
2121
iniconfig==2.3.0
22+
legacy-cgi==2.6.4
2223
mock==5.2.0
2324
opentracing==2.4.0
2425
packaging==25.0

.riot/requirements/c48b250.txt renamed to .riot/requirements/6c76bd7.txt

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --allow-unsafe --no-annotate .riot/requirements/c48b250.in
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/6c76bd7.in
66
#
7-
asgiref==3.9.1
8-
attrs==25.3.0
7+
asgiref==3.10.0
8+
attrs==25.4.0
99
bcrypt==4.2.1
10-
certifi==2025.8.3
11-
charset-normalizer==3.4.3
12-
coverage[toml]==7.10.7
10+
certifi==2025.10.5
11+
charset-normalizer==3.4.4
12+
coverage[toml]==7.11.1
1313
dill==0.4.0
1414
django==4.0.10
1515
django-configurations==2.5.1
1616
gevent==25.9.1
1717
greenlet==3.2.4
1818
gunicorn==23.0.0
1919
hypothesis==6.45.0
20-
idna==3.10
21-
iniconfig==2.1.0
20+
idna==3.11
21+
iniconfig==2.3.0
22+
legacy-cgi==2.6.4
2223
mock==5.2.0
2324
opentracing==2.4.0
2425
packaging==25.0
@@ -29,14 +30,11 @@ pytest==8.4.2
2930
pytest-cov==7.0.0
3031
pytest-django[testing]==3.10.0
3132
pytest-mock==3.15.1
32-
pyyaml==6.0.2
33+
pyyaml==6.0.3
3334
requests==2.32.5
3435
six==1.17.0
3536
sortedcontainers==2.4.0
3637
sqlparse==0.5.3
3738
urllib3==2.5.0
38-
zope-event==6.0
39-
zope-interface==8.0
40-
41-
# The following packages are considered to be unsafe in a requirements file:
42-
setuptools==80.9.0
39+
zope-event==6.1
40+
zope-interface==8.0.1

.riot/requirements/bebf559.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

.riot/requirements/199a155.txt renamed to .riot/requirements/e712306.txt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile --allow-unsafe --no-annotate .riot/requirements/199a155.in
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/e712306.in
66
#
7-
asgiref==3.9.1
8-
attrs==25.3.0
7+
asgiref==3.10.0
8+
attrs==25.4.0
99
bcrypt==4.2.1
10-
certifi==2025.8.3
11-
charset-normalizer==3.4.3
12-
coverage[toml]==7.10.7
10+
certifi==2025.10.5
11+
charset-normalizer==3.4.4
12+
coverage[toml]==7.11.1
1313
dill==0.4.0
1414
django==4.0.10
1515
django-configurations==2.5.1
@@ -18,8 +18,9 @@ gevent==25.9.1
1818
greenlet==3.2.4
1919
gunicorn==23.0.0
2020
hypothesis==6.45.0
21-
idna==3.10
22-
iniconfig==2.1.0
21+
idna==3.11
22+
iniconfig==2.3.0
23+
legacy-cgi==2.6.4
2324
mock==5.2.0
2425
opentracing==2.4.0
2526
packaging==25.0
@@ -30,16 +31,13 @@ pytest==8.4.2
3031
pytest-cov==7.0.0
3132
pytest-django[testing]==3.10.0
3233
pytest-mock==3.15.1
33-
pyyaml==6.0.2
34+
pyyaml==6.0.3
3435
requests==2.32.5
3536
six==1.17.0
3637
sortedcontainers==2.4.0
3738
sqlparse==0.5.3
38-
tomli==2.2.1
39+
tomli==2.3.0
3940
typing-extensions==4.15.0
4041
urllib3==2.5.0
41-
zope-event==6.0
42-
zope-interface==8.0
43-
44-
# The following packages are considered to be unsafe in a requirements file:
45-
setuptools==80.9.0
42+
zope-event==6.1
43+
zope-interface==8.0.1

riotfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def select_pys(min_version: str = MIN_PYTHON_VERSION, max_version: str = MAX_PYT
271271
),
272272
Venv(
273273
pys=["3.9", "3.10", "3.11", "3.12", "3.13"],
274-
pkgs={"django": "==4.0.10"},
274+
pkgs={"django": "==4.0.10", "legacy-cgi": latest},
275275
),
276276
Venv(
277277
pys=["3.13"],

tests/appsec/iast/test_fork_handler_regression.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def test_fork_handler_callable(iast_context_defaults):
3131
"""Verify that _reset_iast_after_fork is callable and disables IAST."""
3232
from ddtrace.appsec._iast import _disable_iast_after_fork
33-
from ddtrace.settings.asm import config as asm_config
33+
from ddtrace.internal.settings.asm import config as asm_config
3434

3535
# Should not raise any exception
3636
try:
@@ -48,7 +48,7 @@ def test_fork_handler_with_active_context(iast_context_defaults):
4848
"""Verify fork handler disables IAST and clears context when active."""
4949
from ddtrace.appsec._iast import _disable_iast_after_fork
5050
from ddtrace.appsec._iast._taint_tracking import is_tainted
51-
from ddtrace.settings.asm import config as asm_config
51+
from ddtrace.internal.settings.asm import config as asm_config
5252

5353
_start_iast_context_and_oce()
5454

@@ -83,7 +83,7 @@ def child_process_work(queue):
8383
"""Child process where IAST should be disabled."""
8484
try:
8585
from ddtrace.appsec._iast._taint_tracking import is_tainted
86-
from ddtrace.settings.asm import config as asm_config
86+
from ddtrace.internal.settings.asm import config as asm_config
8787

8888
# Start IAST in child (will be a no-op since IAST is disabled)
8989
_start_iast_context_and_oce()
@@ -139,7 +139,7 @@ def test_multiple_fork_operations(iast_context_defaults):
139139
def simple_child_work(queue, child_id):
140140
"""Simple child process work - IAST will be disabled."""
141141
try:
142-
from ddtrace.settings.asm import config as asm_config
142+
from ddtrace.internal.settings.asm import config as asm_config
143143

144144
# These should be safe no-ops since IAST is disabled
145145
_start_iast_context_and_oce()
@@ -196,7 +196,7 @@ def test_fork_with_os_fork_no_segfault(iast_context_defaults):
196196
if pid == 0:
197197
# Child process - IAST should be disabled
198198
try:
199-
from ddtrace.settings.asm import config as asm_config
199+
from ddtrace.internal.settings.asm import config as asm_config
200200

201201
# IAST should be disabled after fork
202202
if asm_config._iast_enabled:
@@ -237,7 +237,7 @@ def test_fork_handler_clears_state(iast_context_defaults):
237237
"""
238238
from ddtrace.appsec._iast import _disable_iast_after_fork
239239
from ddtrace.appsec._iast._taint_tracking import is_tainted
240-
from ddtrace.settings.asm import config as asm_config
240+
from ddtrace.internal.settings.asm import config as asm_config
241241

242242
_start_iast_context_and_oce()
243243
tainted = taint_pyobject("test", "source", "value", OriginType.PARAMETER)
@@ -278,7 +278,7 @@ def child_eval_work(queue):
278278
"""Child process with IAST disabled."""
279279
try:
280280
from ddtrace.appsec._iast._taint_tracking import is_tainted
281-
from ddtrace.settings.asm import config as asm_config
281+
from ddtrace.internal.settings.asm import config as asm_config
282282

283283
# IAST should be disabled, so this is a no-op
284284
_start_iast_context_and_oce()
@@ -325,7 +325,7 @@ def test_early_fork_keeps_iast_enabled():
325325
"""
326326
from ddtrace.appsec._iast import _disable_iast_after_fork
327327
from ddtrace.appsec._iast._taint_tracking import is_tainted
328-
from ddtrace.settings.asm import config as asm_config
328+
from ddtrace.internal.settings.asm import config as asm_config
329329

330330
# Ensure IAST is enabled but NO context is active (simulating early fork)
331331
# Don't call _start_iast_context_and_oce() - this simulates pre-fork state

0 commit comments

Comments
 (0)