Skip to content

ci: upgrade riot to fix dev packages [backport 1.15] #6355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ commands:
description: "Install riot"
steps:
# Make sure we install and run riot on Python 3
- run: pip3 install riot==0.17.3
- run: pip3 install riot==0.17.4

save_pip_cache:
description: "Save pip cache directory"
Expand Down
36 changes: 18 additions & 18 deletions .riot/requirements/b4b9321.txt → .riot/requirements/1b6378d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/b4b9321.in
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/1b6378d.in
#
attrs==22.2.0
click==8.1.3
coverage[toml]==7.2.2
attrs==23.1.0
click==8.1.4
coverage[toml]==7.2.7
distlib==0.3.6
exceptiongroup==1.1.1
filelock==3.10.0
exceptiongroup==1.1.2
filelock==3.12.2
hypothesis==6.45.0
iniconfig==2.0.0
markdown-it-py==2.2.0
markdown-it-py==3.0.0
mdurl==0.1.2
mock==5.0.1
mock==5.1.0
opentracing==2.4.0
packaging==23.0
packaging==23.1
pexpect==4.8.0
platformdirs==3.1.1
pluggy==1.0.0
platformdirs==3.8.1
pluggy==1.2.0
ptyprocess==0.7.0
pygments==2.14.0
pytest==7.2.2
pytest-cov==4.0.0
pytest-mock==3.10.0
rich==13.3.2
riot==0.17.0
pygments==2.15.1
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
rich==13.4.2
riot==0.17.4
sortedcontainers==2.4.0
tomli==2.0.1
virtualenv==20.21.0
virtualenv==20.20.0
4 changes: 3 additions & 1 deletion riotfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
name="mypy",
command="mypy {cmdargs}",
create=True,
skip_dev_install=True,
pkgs={
"mypy": "==0.991",
"envier": "==0.4.0",
Expand Down Expand Up @@ -215,7 +216,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
name="riot-helpers",
# DEV: pytest really doesn't want to execute only `riotfile.py`, call doctest directly
command="python -m doctest {cmdargs} riotfile.py",
pkgs={"riot": latest},
pkgs={"riot": "==0.17.4"},
),
Venv(
pys=["3"],
Expand Down Expand Up @@ -2925,6 +2926,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
pkgs={
"protobuf": "==3.8.0",
},
create=True, # Needed bp Python 3.5 because of namespace packages
),
# Gevent
Venv(
Expand Down
2 changes: 1 addition & 1 deletion scripts/ddtest
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
# retry docker pull if fails
for i in {1..3}; do docker-compose pull -q testrunner && break || sleep 3; done

FULL_CMD="pip install -q --disable-pip-version-check riot==0.17.3 && $CMD"
FULL_CMD="pip install -q --disable-pip-version-check riot==0.17.4 && $CMD"


# install and upgrade riot in case testrunner image has not been updated
Expand Down
6 changes: 5 additions & 1 deletion tests/debugging/exploration/test_bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from os.path import dirname

import pytest
Expand Down Expand Up @@ -45,7 +46,10 @@
"""


@pytest.mark.subprocess(env={"PYTHONPATH": dirname(__file__) + ":."}, out=OUT)
@pytest.mark.subprocess(
env={"PYTHONPATH": os.pathsep.join((dirname(__file__), os.getenv("PYTHONPATH", "")))},
out=OUT,
)
def test_exploration_bootstrap():
# We test that we get the expected output from the exploration debuggers
# and no errors when running the sitecustomize.py script.
Expand Down
2 changes: 1 addition & 1 deletion tests/debugging/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def test_debugger_run_module():
# This is also where the sitecustomize resides, so we set the PYTHONPATH
# accordingly. This is responsible for booting the test debugger
env = os.environ.copy()
env["PYTHONPATH"] = cwd
env["PYTHONPATH"] = os.pathsep.join((cwd, env.get("PYTHONPATH", "")))

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

Expand Down