Skip to content

Commit

Permalink
Merge pull request #2509 from lunkwill42/test/backtracking-dependency…
Browse files Browse the repository at this point in the history
…-resolver

Use pip-compile's backtracking dependency resolver to fix failing CI pipelines
  • Loading branch information
lunkwill42 authored Nov 22, 2022
2 parents cb8340b + dd75aec commit 34c78b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ COPY requirements/ /requirements
COPY requirements.txt /
COPY tests/requirements.txt /test-requirements.txt
# Since we used pip3 to install pip globally, pip should now be for Python 3
RUN pip-compile --output-file /requirements.txt.lock /requirements.txt /test-requirements.txt
RUN pip-compile --resolver=backtracking --output-file /requirements.txt.lock /requirements.txt /test-requirements.txt
RUN pip install -r /requirements.txt.lock

ARG CUSTOM_PIP=ipython
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ allowlist_externals =
sed
mkdir
commands_pre =
pip-compile --output-file {envdir}/requirements.txt tests/requirements.txt requirements/base.txt requirements/optional.txt requirements/django{env:DJANGO_VER}.txt
pip-compile --resolver=backtracking --output-file {envdir}/requirements.txt tests/requirements.txt requirements/base.txt requirements/optional.txt requirements/django{env:DJANGO_VER}.txt
pip-sync {envdir}/requirements.txt
pip install -e .

Expand Down Expand Up @@ -87,7 +87,7 @@ setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
commands_pre =
pip-compile --output-file {envdir}/requirements.txt tests/requirements.txt requirements/base.txt requirements/django22.txt
pip-compile --resolver=backtracking --output-file {envdir}/requirements.txt tests/requirements.txt requirements/base.txt requirements/django22.txt
pip-sync {envdir}/requirements.txt
commands =
{toxinidir}/tests/docker/scripts/pylint.sh python/nav --jobs=4 --rcfile=python/pylint.rc --disable=I,similarities --load-plugins pylint_django --output-format=parseable
Expand All @@ -102,7 +102,7 @@ setenv =
LANG=C.UTF-8
allowlist_externals = sh
commands_pre =
pip-compile --output-file {envdir}/requirements.txt doc/requirements.txt
pip-compile --resolver=backtracking --output-file {envdir}/requirements.txt doc/requirements.txt
pip-sync {envdir}/requirements.txt
commands =
python setup.py build_sphinx
Expand Down

0 comments on commit 34c78b1

Please sign in to comment.