Skip to content

Commit 5b10c4f

Browse files
authored
Merge pull request #8281 from Robin-Van-de-Merghel/robin-add-diracx-logs-ci
Add diracx logs into DIRAC CI
2 parents 0bad538 + fa32d3c commit 5b10c4f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/integration.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,18 @@ jobs:
8181
if [ -f client-tests-failed ]; then has_error=1; echo "Client tests failed"; fi
8282
if [ -f pilot-tests-failed ]; then has_error=1; echo "pilot tests failed"; fi
8383
if [ ${has_error} = 1 ]; then exit 1; fi
84+
- name: diracx filtered requests logs
85+
if: contains(matrix.ARGS, 'TEST_DIRACX=Yes')
86+
run: |
87+
docker logs diracx 2>/dev/null | grep '/api/' \
88+
| awk -F\" '{print $2, $3}' \
89+
| awk '{print $1, $2, $4}' \
90+
| sort | uniq -c | sort
91+
92+
- name: diracx error logs
93+
if: ${{ failure() && contains(matrix.ARGS, 'TEST_DIRACX=Yes') }}
94+
run: |
95+
mkdir -p /tmp/service-logs
96+
docker logs diracx 2>&1 | tee /tmp/service-logs/diracx.log
97+
cd /tmp/DIRACRepo
98+
./integration_tests.py logs --no-follow --lines 1000 2>&1 | tee /tmp/service-logs/dirac.log

0 commit comments

Comments
 (0)