Skip to content

Commit 728ca8f

Browse files
authored
ci: upgrade riot to fix dev packages [backport #5972 to 1.13] (#6357)
Backport of #5972 to 1.13 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. ## Checklist - [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/)). ## Reviewer Checklist - [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.
1 parent 1f1be39 commit 728ca8f

File tree

6 files changed

+30
-23
lines changed

6 files changed

+30
-23
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ commands:
7575
description: "Install riot"
7676
steps:
7777
# Make sure we install and run riot on Python 3
78-
- run: pip3 install riot==0.17.2
78+
- run: pip3 install riot==0.17.4
7979

8080
save_pip_cache:
8181
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"],
@@ -2860,6 +2861,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
28602861
pkgs={
28612862
"protobuf": "==3.8.0",
28622863
},
2864+
create=True, # Needed bp Python 3.5 because of namespace packages
28632865
),
28642866
# Gevent
28652867
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)