-
Notifications
You must be signed in to change notification settings - Fork 32
/
screwdriver.yaml
211 lines (199 loc) · 7.65 KB
/
screwdriver.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
shared:
image: almalinux:8
annotations:
screwdriver.cd/restrictPR: fork
jobs:
dummy:
steps:
- setup: |
echo "success"
# unit-tests:
# requires: [~commit, ~pr]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/dockerEnabled: true
# screwdriver.cd/dockerCpu: TURBO
# screwdriver.cd/dockerRam: TURBO
# screwdriver.cd/buildPeriodically: H 11 * * *
# steps:
# - install-docker: |
# dnf install -y dnf-plugins-core
# dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
# dnf install -y docker-ce-cli
# docker system info
# ls -la $SD_DIND_SHARE_PATH
# - install-python: |
# dnf install -y python39-pip python39-devel gcc gcc-c++ # gcc et al required for pytrec_eval
# dnf install -y --enablerepo=powertools pandoc
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev,docs]
# - run-unit-tests: |
# pytest tests/unit
# - run-doc-tests: |
# pytest vespa --doctest-modules
# - run-doc-linkcheck: |
# sphinx-build -E -D exclude_patterns=getting-started-pyvespa-cloud.ipynb -b linkcheck docs/sphinx/source docs/sphinx/build
# sphinx-build -E -D exclude_patterns=getting-started-pyvespa-cloud.ipynb docs/sphinx/source docs/sphinx/build
# rm -fr docs/sphinx/build
# integration-except-cloud:
# requires: [~commit, ~pr]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/dockerEnabled: true
# screwdriver.cd/dockerCpu: TURBO
# screwdriver.cd/dockerRam: TURBO
# screwdriver.cd/buildPeriodically: H 11 * * *
# steps:
# - install-docker: |
# dnf install -y dnf-plugins-core
# dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
# dnf install -y docker-ce-cli
# docker system info
# ls -la $SD_DIND_SHARE_PATH
# - install-python: |
# dnf install -y python39-pip
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev]
# - run-integration-docker: |
# pytest tests/integration/test_integration_docker.py -s -v
# notebooks-except-cloud:
# requires: [~commit, ~pr]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/dockerEnabled: true
# screwdriver.cd/dockerCpu: TURBO
# screwdriver.cd/dockerRam: TURBO
# screwdriver.cd/buildPeriodically: H 11 * * *
# steps:
# - setup: |
# dnf install -y git
# - install-docker: |
# dnf install -y dnf-plugins-core
# dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
# dnf install -y docker-ce-cli
# docker system info
# ls -la $SD_DIND_SHARE_PATH
# - install-python: |
# dnf install -y python39-pip python39-devel gcc gcc-c++ # gcc required for pytrec_eval
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev,notebooks,docs]
# - install-openmp: |
# # required for using lightgbm
# dnf install -y libgomp zstd
# - run-notebooks-except-cloud-related: |
# #
# # Exclude non-testable notebooks below
# #
# dnf install -y tree
# echo "All non-cloud notebooks:"
# find docs -name '*.ipynb' ! -name '*cloud*.ipynb' ! -name 'colpali-document-retrieval-vision-language-models.ipynb' | while read f
# do
# echo "running: runnb --allow-not-trusted $f"
# runnb --allow-not-trusted $f
# if [ $? -ne 0 ]
# then
# exit 1
# fi
# done
# integration-cloud:
# requires: [~commit]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/buildPeriodically: H 11 * * *
# secrets:
# - VESPA_TEAM_API_KEY
# environment:
# SD_ZIP_ARTIFACTS: true
# steps:
# - install-python: |
# dnf install -y python39-pip
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev]
# - run-integration-cloud: |
# pytest tests/integration/test_integration_vespa_cloud.py -s -v
# integration-cloud-token:
# requires: [~commit]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/buildPeriodically: H 11 * * *
# secrets:
# - VESPA_TEAM_API_KEY
# - VESPA_CLOUD_SECRET_TOKEN
# environment:
# SD_ZIP_ARTIFACTS: true
# steps:
# - install-python: |
# dnf install -y python39-pip
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev]
# - run-integration-cloud: |
# pytest tests/integration/test_integration_vespa_cloud_token.py -s -v
# integration-cloud-vector-search:
# requires: [~commit]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# screwdriver.cd/buildPeriodically: H 11 * * *
# secrets:
# - VESPA_TEAM_API_KEY
# - VESPA_CLOUD_SECRET_TOKEN
# environment:
# SD_ZIP_ARTIFACTS: true
# steps:
# - install-python: |
# dnf install -y python39-pip
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev]
# - run-integration-cloud: |
# pytest tests/integration/test_integration_vespa_cloud_vector_search.py -s -v
# notebooks-cloud:
# requires: [integration-cloud]
# annotations:
# screwdriver.cd/timeout: 120
# screwdriver.cd/cpu: HIGH
# screwdriver.cd/ram: HIGH
# secrets:
# - VESPA_TEAM_API_KEY
# - OPENAI_API_KEY
# - CO_API_KEY
# environment:
# SD_ZIP_ARTIFACTS: true
# steps:
# - install-python: |
# dnf install -y which git-all python39-pip python39-devel gcc-toolset-9-gcc gcc-toolset-9-gcc-c++ # gcc9 required for colbert
# source /opt/rh/gcc-toolset-9/enable # enable gcc9 for colbert
# python3 -m pip install --upgrade pip
# python3 -m pip install -e .[dev]
# python3 -m pip install -r docs/sphinx/source/requirements.txt
# python3 -m pip install -r docs/sphinx/source/notebook_requirements.txt
# - run-notebooks-cloud-related: |
# echo "PATH:"
# echo $PATH
# find docs -name '*cloud*.ipynb' -not -name mother-of-all-embedding-models-cloud.ipynb | while read f
# do
# # Display total and free memory in human-readable format before running each notebook
# total_mem=$(free -h | grep Mem | awk '{print $2}')
# free_mem=$(free -h | grep Mem | awk '{print $4}')
# echo "Before running $f - Total Memory: $total_mem, Free Memory: $free_mem"
# # Run the notebook in a subshell
# echo "running: runnb --allow-not-trusted $f"
# (runnb --allow-not-trusted $f)
# # Check the exit status of the last command in the subshell
# if [ $? -ne 0 ]
# then
# echo "Error running $f"
# exit 1
# fi
# done