Skip to content

Commit defe522

Browse files
github-actions[bot]mabdinurYun-Kim
authored
ci: upgrade riot to fix dev packages [backport 1.16] (#6354)
Backport c0174f8 from #5972 to 1.16. 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. Co-authored-by: Munir Abdinur <[email protected]> Co-authored-by: Yun Kim <[email protected]>
1 parent 6d2c89a commit defe522

File tree

6 files changed

+29
-23
lines changed

6 files changed

+29
-23
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ commands:
7676
description: "Install riot"
7777
steps:
7878
# Make sure we install and run riot on Python 3
79-
- run: pip3 install riot==0.17.3
79+
- run: pip3 install riot==0.17.4
8080

8181
save_pip_cache:
8282
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
@@ -155,6 +155,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
155155
name="mypy",
156156
command="mypy {cmdargs}",
157157
create=True,
158+
skip_dev_install=True,
158159
pkgs={
159160
"mypy": "==0.991",
160161
"envier": "==0.4.0",
@@ -215,7 +216,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
215216
name="riot-helpers",
216217
# DEV: pytest really doesn't want to execute only `riotfile.py`, call doctest directly
217218
command="python -m doctest {cmdargs} riotfile.py",
218-
pkgs={"riot": latest},
219+
pkgs={"riot": "==0.17.4"},
219220
),
220221
Venv(
221222
pys=["3"],
@@ -2918,6 +2919,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
29182919
pkgs={
29192920
"protobuf": "==3.8.0",
29202921
},
2922+
create=True, # Needed bp Python 3.5 because of namespace packages
29212923
),
29222924
# Gevent
29232925
Venv(

scripts/ddtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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.3 && $CMD"
15+
FULL_CMD="pip install -q --disable-pip-version-check riot==0.17.4 && $CMD"
1616

1717

1818
# install and upgrade riot in case testrunner image has not been updated

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
@@ -852,7 +852,7 @@ def test_debugger_run_module():
852852
# This is also where the sitecustomize resides, so we set the PYTHONPATH
853853
# accordingly. This is responsible for booting the test debugger
854854
env = os.environ.copy()
855-
env["PYTHONPATH"] = cwd
855+
env["PYTHONPATH"] = os.pathsep.join((cwd, env.get("PYTHONPATH", "")))
856856

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

0 commit comments

Comments
 (0)