Skip to content

Commit

Permalink
Use cloudserver image instead of dependency
Browse files Browse the repository at this point in the history
Issue: BB-615
  • Loading branch information
KillianG committed Nov 21, 2024
1 parent aa29b1b commit 88cbcb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/actions/ft-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: name to the runner script
required: false
default: run_ft_tests.bash
cloudserver_image:
description: name of the cloudserver image
required: false
default: "ghcr.io/scality/cloudserver:8.6.8"

runs:
using: composite
Expand All @@ -26,6 +30,7 @@ runs:
run: .github/scripts/${{ inputs.runner }} ft_test:${{ inputs.testsuite }}
env:
BACKBEAT_CONFIG_FILE: ${{ inputs.config }}
CLOUDSERVER_IMAGE: ${{ inputs.cloudserver_image }}

- uses: codecov/codecov-action@v4
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/scripts/run_ft_tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@ NODE_PATH=${NODE_PATH:-node_modules}
# port for cloudserver
PORT=8000

if [ ! -d "${NODE_PATH}/@zenko/cloudserver" ]; then
echo "cloudserver module was not found!"
exit 1
fi

trap killandsleep EXIT

killandsleep () {
kill -9 $(lsof -t -i:$PORT) || true
sleep 10
}

cd ${NODE_PATH}/@zenko/cloudserver && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40
docker run -p $PORT:8000 -d $CLOUDSERVER_IMAGE /bin/sh -c "yarn run mem_backend" & bash tests/utils/wait_for_local_port.bash $PORT 40 && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40
./node_modules/.bin/nyc --clean --silent yarn run $1
./node_modules/.bin/nyc report --report-dir "./coverage/$1" --reporter=lcov

0 comments on commit 88cbcb5

Please sign in to comment.