Skip to content

Commit 9fbcd0a

Browse files
feat: Add logging time for DiracX logs, to debug easily
1 parent c3902f8 commit 9fbcd0a

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.github/workflows/integration.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,21 @@ jobs:
8080
- name: Install client
8181
run: ./integration_tests.py install-client
8282
- name: Install pilot
83-
run: ./integration_tests.py install-pilot
83+
run: |
84+
date +%s > step_pilot
85+
./integration_tests.py install-pilot
8486
- name: Server tests
85-
run: ./integration_tests.py test-server || touch server-tests-failed
87+
run: |
88+
date +%s > step_test_server
89+
./integration_tests.py test-server || touch server-tests-failed
8690
- name: Client tests
87-
run: ./integration_tests.py test-client || touch client-tests-failed
91+
run: |
92+
date +%s > step_test_client
93+
./integration_tests.py test-client || touch client-tests-failed
8894
- name: Pilot tests
89-
run: ./integration_tests.py test-pilot || touch pilot-tests-failed
95+
run: |
96+
date +%s > step_test_pilot
97+
./integration_tests.py test-pilot || touch pilot-tests-failed
9098
- name: Opensearch logs
9199
run: docker logs opensearch
92100
- name: Check test status
@@ -100,4 +108,22 @@ jobs:
100108
if: ${{ always() && contains(matrix.ARGS, 'TEST_DIRACX=Yes') }}
101109
run: |
102110
# Used to debug, and see which requests were done.
103-
docker logs diracx | grep -Fv 'GET /.well-known/openid-configuration HTTP/1.1" 200 OK'
111+
# Splitted by section, to see what the pilot did, what the server tests did etc.
112+
TS_PILOT=$(cat step_pilot)
113+
TS_TEST_SERVER=$(cat step_test_server)
114+
TS_TEST_CLIENT=$(cat step_test_client)
115+
TS_TEST_PILOT=$(cat step_test_pilot)
116+
117+
FILTER='GET /.well-known/openid-configuration HTTP/1.1" 200 OK'
118+
119+
echo "=== PHASE: Install Pilot ==="
120+
docker logs --since @$TS_PILOT --until @$TS_TEST_SERVER diracx | grep -Fv "$FILTER"
121+
122+
echo "=== PHASE: Server tests ==="
123+
docker logs --since @$TS_TEST_SERVER --until @$TS_TEST_CLIENT diracx | grep -Fv "$FILTER"
124+
125+
echo "=== PHASE: Client tests ==="
126+
docker logs --since @$TS_TEST_CLIENT --until @$TS_TEST_PILOT diracx | grep -Fv "$FILTER"
127+
128+
echo "=== PHASE: Pilot tests ==="
129+
docker logs --since @$TS_TEST_PILOT diracx | grep -Fv "$FILTER"

0 commit comments

Comments
 (0)