Skip to content
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

Remove Indy tests from workflows #2415

Merged
merged 5 commits into from
Aug 14, 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
14 changes: 0 additions & 14 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,3 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}

tests-indy:
if: github.repository == 'hyperledger/aries-cloudagent-python' || github.event_name == 'workflow_dispatch'
name: Tests (Indy)
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10"]
uses: ./.github/workflows/tests-indy.yml
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
indy-version: "1.16.0"
8 changes: 0 additions & 8 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ jobs:
with:
python-version: "3.9"
os: "ubuntu-latest"

tests-indy:
name: Tests (Indy)
uses: ./.github/workflows/tests-indy.yml
with:
python-version: "3.9"
indy-version: "1.16.0"
os: "ubuntu-latest"
2 changes: 1 addition & 1 deletion demo/docker-agent/Dockerfile.acapy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-indy-1.16.0-0.8.1
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.9.0

USER root

Expand Down
2 changes: 1 addition & 1 deletion demo/docker-agent/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
./ngrok-wait.sh"
]
volumes:
- ./ngrok-wait.sh:/home/indy/ngrok-wait.sh
- ./ngrok-wait.sh:/home/aries/ngrok-wait.sh

wallet-db:
image: postgres:12
Expand Down
2 changes: 1 addition & 1 deletion demo/docker-agent/ngrok-wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exec aca-py start \
--auto-ping-connection \
--monitor-ping \
--public-invites \
--wallet-type "indy" \
--wallet-type "askar" \
--wallet-name "test_author" \
--wallet-key "secret_key" \
--wallet-storage-type "postgres_storage" \
Expand Down
2 changes: 1 addition & 1 deletion demo/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
--log-level 'info' ",
]
volumes:
- ./ledgers.yaml:/home/indy/ledgers.yaml
- ./ledgers.yaml:/home/aries/ledgers.yaml
networks:
- tails-network

Expand Down
2 changes: 1 addition & 1 deletion demo/multi-demo/Dockerfile.acapy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-indy-1.16.0-0.8.1
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.9.0

USER root

Expand Down
2 changes: 1 addition & 1 deletion demo/multi-demo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
./ngrok-wait.sh"
]
volumes:
- ./ngrok-wait.sh:/home/indy/ngrok-wait.sh
- ./ngrok-wait.sh:/home/aries/ngrok-wait.sh
networks:
- app-network
- elk-network
Expand Down
6 changes: 3 additions & 3 deletions demo/run_bdd
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ AGENT_PORT=8020
AGENT_PORT_RANGE=8020-8079

echo "Preparing agent image..."
docker build -q -t indy-base -f ../docker/Dockerfile.indy --target=indy-base .. || exit 1
docker build -q -t faber-alice-demo -f ../docker/Dockerfile.demo .. || exit 1
docker build -q -t acapy-base -f ../docker/Dockerfile .. || exit 1
docker build -q -t faber-alice-demo -f ../docker/Dockerfile.demo --build-arg from_image=acapy-base .. || exit 1
docker build -q -t aries-bdd-image -f ../docker/Dockerfile.bdd .. || exit 1

if [ ! -z "$DOCKERHOST" ]; then
Expand Down Expand Up @@ -236,6 +236,6 @@ DOCKER=${DOCKER:-docker}
$DOCKER run --name $AGENT --rm ${DOCKER_OPTS} \
--network=${DOCKER_NET} \
-p 0.0.0.0:$AGENT_PORT_RANGE:$AGENT_PORT_RANGE \
-v "/$(pwd)/../logs:/home/indy/logs" \
-v "/$(pwd)/../logs:/home/aries/logs" \
$DOCKER_ENV \
aries-bdd-image $ARGS
6 changes: 3 additions & 3 deletions demo/run_demo
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ do
echo "For example, to create the directory and then set the permissions use: 'mkdir ../logs; chmod uga+rws ../logs'"
exit 1
fi
DOCKER_VOL="${DOCKER_VOL} -v /$(pwd)/../logs:/home/indy/logs"
DOCKER_VOL="${DOCKER_VOL} -v /$(pwd)/../logs:/home/aries/logs"
continue
;;
--bg)
Expand Down Expand Up @@ -149,8 +149,8 @@ else
fi

echo "Preparing agent image..."
docker build -q -t indy-base -f ../docker/Dockerfile.indy --target=indy-base .. || exit 1
docker build -q -t faber-alice-demo -f ../docker/Dockerfile.demo .. || exit 1
docker build -q -t acapy-base -f ../docker/Dockerfile .. || exit 1
docker build -q -t faber-alice-demo -f ../docker/Dockerfile.demo --build-arg from_image=acapy-base .. || exit 1

if [ ! -z "$DOCKERHOST" ]; then
# provided via APPLICATION_URL environment variable
Expand Down
7 changes: 4 additions & 3 deletions docker/Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM indy-base
ARG from_image=ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.9.0
FROM ${from_image}

ENV ENABLE_PTVSD 0
ENV ENABLE_PYDEVD_PYCHARM 0
ENV PYDEVD_PYCHARM_HOST "host.docker.internal"
ENV ACAPY_DEBUG_WEBHOOKS 1

RUN mkdir bin && curl -L -o bin/jq \
RUN mkdir -p bin && curl -L -o bin/jq \
https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
chmod ug+x bin/jq

Expand All @@ -26,7 +27,7 @@ ADD setup.py ./

RUN pip3 install --no-cache-dir -e .

RUN mkdir demo logs && chown -R indy:indy demo logs && chmod -R ug+rw demo logs
RUN mkdir demo logs && chown -R aries:aries demo logs && chmod -R ug+rw demo logs

# Add and install demo code
ADD demo/requirements.txt ./demo/requirements.txt
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile.run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM python:3.9-slim-bullseye

ENV ENABLE_PTVSD 0

# For consistency with base images, include curl for healthchecks
RUN apt-get update && apt-get install -y curl && apt-get clean
ADD requirements*.txt ./

RUN pip3 install --no-cache-dir \
Expand Down