-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
183 lines (163 loc) · 4.79 KB
/
config.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
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
###############################################
# Evergreen Template for AI-ML-Testing Pipeline
###############################################
# Mark a failure as a system/bootstrap failure (purple box) rather then a task
# failure by default.
# Actual testing tasks are marked with `type: test`
command_type: system
# Protect yourself against rogue test case, or curl gone wild, that runs forever
# Good rule of thumb: the averageish length a task takes, times 5
# That roughly accounts for variable system performance for various buildvariants
exec_timeout_secs:
3600 # 60 minutes is the longest we'll ever run (primarily
# for macos hosts)
# What to do when evergreen hits the timeout (`post:` tasks are run automatically)
timeout:
- command: shell.exec
params:
script: |
ls -la
functions:
"fetch source":
- command: git.get_project
type: setup
params:
directory: "src"
"fetch repo":
- command: shell.exec
type: setup
params:
working_dir: "src"
script: |
if [ ! -d "${DIR}" ]; then
echo '${REPO_NAME} could not be found' 1>&2
exit 1
fi
# Apply patches to upstream repo if desired.
cd ${DIR}
git clone ${CLONE_URL}
if [ -d "patches" ]; then
cd ${REPO_NAME}
echo "Applying patches."
git apply ../patches/*
fi
"execute tests":
- command: subprocess.exec
type: test
params:
add_expansions_to_env: true
working_dir: "src/${DIR}/${REPO_NAME}"
binary: bash
env:
atlas: ${workdir}/src/atlas/bin/atlas
args:
- ../run.sh
"setup atlas cli":
- command: subprocess.exec
type: setup
retry_on_failure: true
params:
add_expansions_to_env: true
working_dir: "src"
binary: bash
env:
atlas: ${workdir}/src/atlas/bin/atlas
args:
- .evergreen/provision-atlas.sh
pre_error_fails_task: true
pre:
- func: "fetch source"
- func: "setup atlas cli"
tasks:
- name: test-semantic-kernel-python
commands:
- func: "fetch repo"
- func: "execute tests"
- name: test-semantic-kernel-csharp
commands:
- func: "fetch repo"
- func: "execute tests"
- name: test-langchain-python
commands:
- func: "fetch repo"
- func: "execute tests"
- name: test-chatgpt-retrieval-plugin
commands:
- func: "fetch repo"
- func: "execute tests"
- name: test-llama-index
commands:
- func: "fetch repo"
- func: "execute tests"
- name: test-docarray
commands:
- func: "fetch repo"
- func: "execute tests"
buildvariants:
- name: test-semantic-kernel-python-rhel
display_name: Semantic-Kernel RHEL Python
expansions:
DIR: semantic-kernel-python
REPO_NAME: semantic-kernel
CLONE_URL: https://github.com/microsoft/semantic-kernel.git
DATABASE: pyMSKTest
run_on:
- rhel87-small
tasks:
- name: test-semantic-kernel-python
- name: test-semantic-kernel-csharp-rhel
display_name: Semantic-Kernel RHEL CSharp
expansions:
DIR: semantic-kernel-csharp
REPO_NAME: semantic-kernel
CLONE_URL: https://github.com/microsoft/semantic-kernel.git
DATABASE: dotnetMSKNearestTest
run_on:
- rhel87-small
tasks:
- name: test-semantic-kernel-csharp
- name: test-langchain-python-rhel
display_name: Langchain RHEL Python
expansions:
DIR: langchain-python
REPO_NAME: langchain
CLONE_URL: https://github.com/langchain-ai/langchain.git
DATABASE: langchain_test_db
run_on:
- rhel87-small
tasks:
- name: test-langchain-python
- name: test-chatgpt-retrieval-plugin-rhel
display_name: ChatGPT Retrieval Plugin
expansions:
DIR: chatgpt-retrieval-plugin
REPO_NAME: chatgpt-retrieval-plugin
# TODO - Update CLONE_URL: [PYTHON-4291] [PYTHON-4129]
CLONE_URL: -b bugfix/broken-link-in-readme --single-branch https://github.com/caseyclements/chatgpt-retrieval-plugin.git
DATABASE: chatgpt_retrieval_plugin_test_db
run_on:
- rhel87-small
tasks:
- name: test-chatgpt-retrieval-plugin
- name: test-llama-index-rhel
display_name: LlamaIndex RHEL
expansions:
DIR: llama_index
REPO_NAME: llama_index
CLONE_URL: https://github.com/run-llama/llama_index.git
DATABASE: llama_index_test_db
run_on:
- rhel87-small
tasks:
- name: test-llama-index
- name: test-docarray-rhel
display_name: DocArray RHEL
expansions:
DIR: docarray
REPO_NAME: docarray
CLONE_URL: https://github.com/docarray/docarray.git
DATABASE: docarray_test_db
run_on:
- rhel87-small
tasks:
- name: test-docarray