Skip to content

Commit

Permalink
Install setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Oct 3, 2024
1 parent abd2359 commit 797f5a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions images/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM ubuntu:22.04
ENV GNOCCHI_WORKSPACE /github/workspace
ENV DEBIAN_FRONTEND noninteractive

RUN echo test

#NOTE(tobias-urdin): need gnupg for apt-key
RUN apt-get update -y && apt-get install -qy gnupg software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
Expand Down
2 changes: 2 additions & 0 deletions run-upgrade-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

export GNOCCHI_TEST_DEBUG=1

if [ "$1" == "postgresql-file" ]; then
eval $(pifpaf --env-prefix INDEXER run postgresql)
elif [ "$1" == "mysql-ceph" ]; then
Expand Down
13 changes: 9 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ passenv =
GNOCCHI_TEST_*
AWS_*
setenv =
GNOCCHI_TEST_DEBUG=1
GNOCCHI_TEST_STORAGE_DRIVER=file
GNOCCHI_TEST_INDEXER_DRIVER=postgresql
GNOCCHI_TEST_STORAGE_DRIVERS=file swift ceph s3 redis
Expand Down Expand Up @@ -49,8 +50,8 @@ setenv =
deps =
.[test,redis,prometheus,amqp1,{env:GNOCCHI_STORAGE_DEPS:},{env:GNOCCHI_INDEXER_DEPS:}]
{env:GNOCCHI_TEST_TARBALLS:}
cliff!=2.9.0
gnocchiclient>=2.8.0,!=7.0.7
gnocchiclient
setuptools
commands =
{toxinidir}/run-tests.sh {posargs}
{toxinidir}/run-func-tests.sh {posargs}
Expand All @@ -62,6 +63,7 @@ allowlist_externals =
deps =
{[testenv]deps}
sqlalchemy<2
setuptools

[testenv:{py39,py311}-postgresql-file-upgrade-from-4.4]
# We should always recreate since the script upgrade
Expand All @@ -71,9 +73,10 @@ setenv =
GNOCCHI_VERSION_FROM=stable/4.4
GNOCCHI_VARIANT=test,postgresql,file
deps =
gnocchiclient>=2.8.0,!=7.0.7
gnocchiclient
pifpaf
xattr!=0.9.4
setuptools
commands = {toxinidir}/run-upgrade-tests.sh postgresql-file
allowlist_externals = {toxinidir}/run-upgrade-tests.sh

Expand All @@ -85,9 +88,10 @@ setenv =
GNOCCHI_VERSION_FROM=stable/4.4
GNOCCHI_VARIANT=test,mysql,ceph,ceph_recommended_lib
deps =
gnocchiclient>=2.8.0,!=7.0.7
gnocchiclient
pifpaf[ceph]
xattr!=0.9.4
setuptools
commands = {toxinidir}/run-upgrade-tests.sh mysql-ceph
allowlist_externals = {toxinidir}/run-upgrade-tests.sh

Expand Down Expand Up @@ -130,6 +134,7 @@ ignore = E501,E731,W503,W504
deps =
.[test,file,postgresql,doc]
doc8
setuptools
setenv =
GNOCCHI_TEST_DEBUG=1
commands =
Expand Down

0 comments on commit 797f5a7

Please sign in to comment.