Skip to content

Commit

Permalink
Write Rondis logs to local file in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
olapiv committed Oct 31, 2024
1 parent aef30d2 commit 04bbf0a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_test_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
CONTAINER_NAME: rondis
RONDIS_PORT: 6379
DOCKER_WORK_DIR: /usr/src/app
LOCAL_RONDIS_LOG: /tmp/rondis_server.log
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -78,8 +79,8 @@ jobs:
- name: Run Rondis server
run: |
docker exec -w $DOCKER_WORK_DIR -i $CONTAINER_NAME bash -c \
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/rondb/lib && pink/rondis/rondis 6379 mgmd_1:1186 2 &"
docker exec -w $DOCKER_WORK_DIR -e LD_LIBRARY_PATH=/tmp/rondb/lib \
-t $CONTAINER_NAME pink/rondis/rondis 6379 mgmd_1:1186 2 > $LOCAL_RONDIS_LOG &
# Running this multiple times to check for memory leaks and that overwrites/updates/deletes work
- name: Run tests multiple times
Expand All @@ -90,5 +91,9 @@ jobs:
echo "Success in run $i"
done
- name: Show Rondis logs
if: always()
run: cat $LOCAL_RONDIS_LOG

- name: Run Redis benchmark
run: docker exec -i $CONTAINER_NAME bash -c "redis-benchmark -t get,set -c 2"

0 comments on commit 04bbf0a

Please sign in to comment.