Skip to content

Commit

Permalink
Try to fix log uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Sep 28, 2023
1 parent ed3e29b commit 88760df
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ jobs:
run: cd /tmp/DIRACRepo && ./integration_tests.py test-server || touch server-tests-failed
- name: Client tests
run: cd /tmp/DIRACRepo && ./integration_tests.py test-client || touch client-tests-failed
- name: diracx logs
if: ${{ failure() }}
run: sleep 15 && docker logs diracx
- name: DIRAC logs
if: ${{ failure() }}
run: cd /tmp/DIRACRepo && ./integration_tests.py logs --no-follow --lines 1000
- name: Check test status
run: |
has_error=0
# TODO: set has_error=1 when we are ready to really run the tests
if [ -f server-tests-failed ]; then has_error=0; echo "Server tests failed"; fi
if [ -f client-tests-failed ]; then has_error=0; echo "Client tests failed"; fi
if [ ${has_error} = 1 ]; then exit 1; fi
- name: Setup tmate session
- name: diracx logs
if: ${{ failure() }}
run: |
mkdir -p /tmp/service-logs
docker logs diracx > /tmp/service-logs/diracx.log
cd /tmp/DIRACRepo
./integration_tests.py logs --no-follow --lines 1000 > /tmp/service-logs/dirac.log
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
name: serivce-logs
path: /tmp/service-logs/

0 comments on commit 88760df

Please sign in to comment.