Skip to content

Commit

Permalink
DNM: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Oct 4, 2024
1 parent 14978cc commit c52ed6a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gnocchi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python:
- py39
Expand Down Expand Up @@ -169,4 +170,4 @@ jobs:
echo "DOCKER_ENV_OPTS=" >> $GITHUB_ENV
fi
- name: Run tests with tox in container
run: docker run --rm -v ${{ github.workspace }}:/github/workspace -w /github/workspace $DOCKER_ENV_OPTS ghcr.io/gnocchixyz/ci:4.6 "tox -e ${{ matrix.python }}-${{ matrix.env }}"
run: docker run --rm -v ${{ github.workspace }}:/github/workspace -w /github/workspace $DOCKER_ENV_OPTS ghcr.io/gnocchixyz/ci:4.6 "tox -vvv -e ${{ matrix.python }}-${{ matrix.env }}"
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
4 changes: 3 additions & 1 deletion 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 Expand Up @@ -85,7 +87,7 @@ else
STORAGE_URL=file://$GNOCCHI_DATA
fi

eval $(pifpaf run gnocchi --indexer-url $INDEXER_URL --storage-url $STORAGE_URL)
eval $(pifpaf --verbose --debug run gnocchi --indexer-url $INDEXER_URL --storage-url $STORAGE_URL)
export OS_AUTH_TYPE=gnocchi-basic
export GNOCCHI_USER=$GNOCCHI_USER_ID
original_statsd_resource_id=$GNOCCHI_STATSD_RESOURCE_ID
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ passenv =
GNOCCHI_TEST_*
AWS_*
setenv =
GNOCCHI_TEST_DEBUG=1
VIRTUALENV_SETUPTOOLS=bundle
GNOCCHI_TEST_STORAGE_DRIVER=file
GNOCCHI_TEST_INDEXER_DRIVER=postgresql
Expand Down Expand Up @@ -73,6 +74,7 @@ deps =
# Gnocchi we can't reuse the virtualenv
recreate = True
setenv =
GNOCCHI_TEST_DEBUG=1
VIRTUALENV_SETUPTOOLS=bundle
GNOCCHI_VERSION_FROM=stable/4.5
GNOCCHI_VARIANT=test,postgresql,file
Expand All @@ -90,6 +92,7 @@ allowlist_externals = {toxinidir}/run-upgrade-tests.sh
# Gnocchi we can't reuse the virtualenv
recreate = True
setenv =
GNOCCHI_TEST_DEBUG=1
VIRTUALENV_SETUPTOOLS=bundle
GNOCCHI_VERSION_FROM=stable/4.5
GNOCCHI_VARIANT=test,mysql,ceph,ceph_recommended_lib
Expand Down

0 comments on commit c52ed6a

Please sign in to comment.