Skip to content

Commit c29c60b

Browse files
mabdinurP403n1x87brettlangdon
committed
ci: upgrade riot to fix dev packages (#5972)
Follow up to: #5949 We will need to merge this PR before typing_extensions v4.6.3 is released ([link](python/typing_extensions#196 (comment))) or ci will be break again. - [x] Change(s) are motivated and described in the PR description. - [x] Testing strategy is described if automated tests are not included in the PR. - [x] Risk is outlined (performance impact, potential for breakage, maintainability, etc). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/contributing.html#Release-Note-Guidelines) are followed. - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)). - [x] Title is accurate. - [x] No unnecessary changes are introduced. - [x] Description motivates each change. - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes unless absolutely necessary. - [x] Testing strategy adequately addresses listed risk(s). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] Release note makes sense to a user of the library. - [x] Reviewer has explicitly acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment. --------- Co-authored-by: Gabriele N. Tornetta <[email protected]> Co-authored-by: Gabriele N. Tornetta <[email protected]> Co-authored-by: Brett Langdon <[email protected]> (cherry picked from commit c0174f8)
1 parent 71a642b commit c29c60b

File tree

6 files changed

+33
-22
lines changed

6 files changed

+33
-22
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ commands:
7272
description: "Install riot"
7373
steps:
7474
# Make sure we install and run riot on Python 3
75+
<<<<<<< HEAD
7576
- run: pip3 install riot==0.17.2
77+
=======
78+
- run: pip3 install riot==0.17.4
79+
>>>>>>> c0174f873 (ci: upgrade riot to fix dev packages (#5972))
7680

7781
save_pip_cache:
7882
description: "Save pip cache directory"

.riot/requirements/b4b9321.txt renamed to .riot/requirements/1b6378d.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/b4b9321.in
5+
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/1b6378d.in
66
#
7-
attrs==22.2.0
8-
click==8.1.3
9-
coverage[toml]==7.2.2
7+
attrs==23.1.0
8+
click==8.1.4
9+
coverage[toml]==7.2.7
1010
distlib==0.3.6
11-
exceptiongroup==1.1.1
12-
filelock==3.10.0
11+
exceptiongroup==1.1.2
12+
filelock==3.12.2
1313
hypothesis==6.45.0
1414
iniconfig==2.0.0
15-
markdown-it-py==2.2.0
15+
markdown-it-py==3.0.0
1616
mdurl==0.1.2
17-
mock==5.0.1
17+
mock==5.1.0
1818
opentracing==2.4.0
19-
packaging==23.0
19+
packaging==23.1
2020
pexpect==4.8.0
21-
platformdirs==3.1.1
22-
pluggy==1.0.0
21+
platformdirs==3.8.1
22+
pluggy==1.2.0
2323
ptyprocess==0.7.0
24-
pygments==2.14.0
25-
pytest==7.2.2
26-
pytest-cov==4.0.0
27-
pytest-mock==3.10.0
28-
rich==13.3.2
29-
riot==0.17.0
24+
pygments==2.15.1
25+
pytest==7.4.0
26+
pytest-cov==4.1.0
27+
pytest-mock==3.11.1
28+
rich==13.4.2
29+
riot==0.17.4
3030
sortedcontainers==2.4.0
3131
tomli==2.0.1
32-
virtualenv==20.21.0
32+
virtualenv==20.20.0

riotfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
147147
name="mypy",
148148
command="mypy {cmdargs}",
149149
create=True,
150+
skip_dev_install=True,
150151
pkgs={
151152
"mypy": "==0.991",
152153
"envier": "==0.4.0",
@@ -197,7 +198,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
197198
name="riot-helpers",
198199
# DEV: pytest really doesn't want to execute only `riotfile.py`, call doctest directly
199200
command="python -m doctest {cmdargs} riotfile.py",
200-
pkgs={"riot": latest},
201+
pkgs={"riot": "==0.17.4"},
201202
),
202203
Venv(
203204
pys=["3"],
@@ -2768,6 +2769,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
27682769
"tenacity": "==5.0.1",
27692770
"protobuf": "==3.8.0",
27702771
},
2772+
create=True, # Needed bp Python 3.5 because of namespace packages
27712773
),
27722774
# Gevent
27732775
Venv(

scripts/ddtest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fi
1212
# retry docker pull if fails
1313
for i in {1..3}; do docker-compose pull -q testrunner && break || sleep 3; done
1414

15-
FULL_CMD="pip install -q --disable-pip-version-check riot==0.17.2 && $CMD"
15+
FULL_CMD="pip install -q --disable-pip-version-check riot==0.17.4 && $CMD"
16+
1617

1718
# install and upgrade riot in case testrunner image has not been updated
1819
# DEV: Use `--no-TTY` and `--quiet-pull` when running in CircleCI

tests/debugging/exploration/test_bootstrap.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from os.path import dirname
23

34
import pytest
@@ -45,7 +46,10 @@
4546
"""
4647

4748

48-
@pytest.mark.subprocess(env={"PYTHONPATH": dirname(__file__) + ":."}, out=OUT)
49+
@pytest.mark.subprocess(
50+
env={"PYTHONPATH": os.pathsep.join((dirname(__file__), os.getenv("PYTHONPATH", "")))},
51+
out=OUT,
52+
)
4953
def test_exploration_bootstrap():
5054
# We test that we get the expected output from the exploration debuggers
5155
# and no errors when running the sitecustomize.py script.

tests/debugging/test_debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def test_debugger_run_module():
853853
# This is also where the sitecustomize resides, so we set the PYTHONPATH
854854
# accordingly. This is responsible for booting the test debugger
855855
env = os.environ.copy()
856-
env["PYTHONPATH"] = cwd
856+
env["PYTHONPATH"] = os.pathsep.join((cwd, env.get("PYTHONPATH", "")))
857857

858858
out, err, status, _ = call_program(sys.executable, "-m", "target", cwd=cwd, env=env)
859859

0 commit comments

Comments
 (0)