44 push :
55 paths-ignore :
66 # Docs
7- - ' docs/**'
8- - ' README.rst'
7+ - " docs/**"
8+ - " README.rst"
99 # When push new release
10- - ' release.notes'
11- - ' src/DIRAC/__init__.py' # It is expected that only the version number will change here
12- - ' releases.cfg'
10+ - " release.notes"
11+ - " src/DIRAC/__init__.py" # It is expected that only the version number will change here
12+ - " releases.cfg"
1313 pull_request :
1414 paths-ignore :
1515 # RPs with docs
16- - ' docs/**'
17- - ' README.rst'
18- - ' release.notes'
16+ - " docs/**"
17+ - " README.rst"
18+ - " release.notes"
1919
2020jobs :
2121 Integration :
@@ -36,63 +36,63 @@ jobs:
3636 - TEST_NAME : " Force DEncode and MySQL8"
3737 ARGS : DIRAC_USE_JSON_ENCODE=NO MYSQL_VER=mysql:8.0.40
3838 - TEST_NAME : " Backward Compatibility"
39- ARGS : CLIENT_INSTALLATION_BRANCH=rel-v8r0 PILOT_INSTALLATION_BRANCH=rel-v8r0
39+ ARGS : CLIENT_INSTALLATION_BRANCH=rel-v9r0 PILOT_INSTALLATION_BRANCH=rel-v9r0
4040 - TEST_NAME : " Test DiracX latest"
4141 ARGS : TEST_DIRACX=Yes
4242
4343 steps :
44- - uses : actions/checkout@v4
45- - name : Fail-fast for outdated pipelines
46- run : .github/workflows/fail-fast.sh
47- - run : |
48- git fetch --prune --unshallow
49- - uses : actions/setup-python@v5
50- with :
51- python-version : ' 3.11'
52- - uses : cvmfs-contrib/github-action-cvmfs@v5
53- - name : Installing dependencies
54- run : |
55- python -m pip install \
56- gitpython \
57- packaging \
58- pyyaml \
59- requests \
60- typer
61- - name : Prepare environment
62- run : ./integration_tests.py prepare-environment ${{ matrix.ARGS }}
63- - name : Install server
64- run : ./integration_tests.py install-server
65- - name : Install client
66- run : ./integration_tests.py install-client
67- - name : Install pilot
68- run : ./integration_tests.py install-pilot
69- - name : Server tests
70- run : ./integration_tests.py test-server || touch server-tests-failed
71- - name : Client tests
72- run : ./integration_tests.py test-client || touch client-tests-failed
73- - name : Pilot tests
74- run : ./integration_tests.py test-pilot || touch pilot-tests-failed
75- - name : Opensearch logs
76- run : docker logs opensearch
77- - name : Check test status
78- run : |
79- has_error=0
80- if [ -f server-tests-failed ]; then has_error=1; echo "Server tests failed"; fi
81- if [ -f client-tests-failed ]; then has_error=1; echo "Client tests failed"; fi
82- if [ -f pilot-tests-failed ]; then has_error=1; echo "pilot tests failed"; fi
83- 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
44+ - uses : actions/checkout@v4
45+ - name : Fail-fast for outdated pipelines
46+ run : .github/workflows/fail-fast.sh
47+ - run : |
48+ git fetch --prune --unshallow
49+ - uses : actions/setup-python@v5
50+ with :
51+ python-version : " 3.11"
52+ - uses : cvmfs-contrib/github-action-cvmfs@v5
53+ - name : Installing dependencies
54+ run : |
55+ python -m pip install \
56+ gitpython \
57+ packaging \
58+ pyyaml \
59+ requests \
60+ typer
61+ - name : Prepare environment
62+ run : ./integration_tests.py prepare-environment ${{ matrix.ARGS }}
63+ - name : Install server
64+ run : ./integration_tests.py install-server
65+ - name : Install client
66+ run : ./integration_tests.py install-client
67+ - name : Install pilot
68+ run : ./integration_tests.py install-pilot
69+ - name : Server tests
70+ run : ./integration_tests.py test-server || touch server-tests-failed
71+ - name : Client tests
72+ run : ./integration_tests.py test-client || touch client-tests-failed
73+ - name : Pilot tests
74+ run : ./integration_tests.py test-pilot || touch pilot-tests-failed
75+ - name : Opensearch logs
76+ run : docker logs opensearch
77+ - name : Check test status
78+ run : |
79+ has_error=0
80+ if [ -f server-tests-failed ]; then has_error=1; echo "Server tests failed"; fi
81+ if [ -f client-tests-failed ]; then has_error=1; echo "Client tests failed"; fi
82+ if [ -f pilot-tests-failed ]; then has_error=1; echo "pilot tests failed"; fi
83+ 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
9191
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
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