forked from DIRACGrid/DIRAC
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (79 loc) · 2.64 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Integration tests
on:
push:
paths-ignore:
# Docs
- 'docs/**'
- 'README.rst'
# When push new release
- 'release.notes'
- 'src/DIRAC/__init__.py' # It is expected that only the version number will change here
- 'releases.cfg'
pull_request:
paths-ignore:
# RPs with docs
- 'docs/**'
- 'README.rst'
- 'release.notes'
jobs:
Integration:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/DIRAC'
timeout-minutes: 45
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: False
matrix:
# TEST_NAME is a dummy variable used to make it easier to read the web interface
include:
- TEST_NAME: "MariaDB 11.4, elasticsearch:7.9.1"
ARGS: MYSQL_VER=mariadb:11.4.3 ES_VER=elasticsearch:7.9.1
- TEST_NAME: "HTTPS"
ARGS: TEST_HTTPS=Yes
- TEST_NAME: "Force DEncode"
ARGS: DIRAC_USE_JSON_ENCODE=NO
- TEST_NAME: "Backward Compatibility"
ARGS: CLIENT_INSTALLATION_BRANCH=rel-v8r0
steps:
- uses: actions/checkout@v4
- name: Fail-fast for outdated pipelines
run: .github/workflows/fail-fast.sh
- run: |
git fetch --prune --unshallow
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Installing dependencies
run: |
python -m pip install \
gitpython \
packaging \
pyyaml \
requests \
typer
- name: Prepare environment
run: ./integration_tests.py prepare-environment ${{ matrix.ARGS }}
- name: Install server
run: ./integration_tests.py install-server
- name: Install client
run: ./integration_tests.py install-client
- name: Install pilot
run: ./integration_tests.py install-pilot
- name: Server tests
run: ./integration_tests.py test-server || touch server-tests-failed
- name: Client tests
run: ./integration_tests.py test-client || touch client-tests-failed
- name: Pilot tests
run: ./integration_tests.py test-pilot || touch pilot-tests-failed
- name: Elasticsearch logs
run: docker logs elasticsearch
- name: Check test status
run: |
has_error=0
if [ -f server-tests-failed ]; then has_error=1; echo "Server tests failed"; fi
if [ -f client-tests-failed ]; then has_error=1; echo "Client tests failed"; fi
if [ -f pilot-tests-failed ]; then has_error=1; echo "pilot tests failed"; fi
if [ ${has_error} = 1 ]; then exit 1; fi