You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,5 @@ If you open a pull request to fix the problem, an issue will ba automatically cr
15
15
If a related issue doesn't exist, you can open a new issue using a relevant [issue form](https://github.com/opendatahub-io/opendatahub-tests/issues/new/choose).
16
16
17
17
## Pull requests
18
+
18
19
Follow the guidelines in [Developer guide](DEVELOPER_GUIDE.md)
- Each test should have a clear purpose and should be easy to understand.
143
146
- Each test should verify a single aspect of the product.
144
147
- Preferably, each test should be independent of other tests.
145
-
- When there's a dependency between tests use pytest dependency plugin to mark the relevant hierarchy between tests (https://github.com/RKrahl/pytest-dependency)
148
+
- When there's a dependency between tests use pytest dependency plugin to mark the relevant hierarchy between tests ([pytest-dependency](https://github.com/RKrahl/pytest-dependency))
146
149
- When adding a new test, apply relevant marker(s) which may apply.
147
150
Check [pytest.ini](../pytest.ini) for available markers; additional markers can always be added when needed.
148
151
- Classes are good to group related tests together, for example when they share a fixture.
149
152
You should NOT group unrelated tests in one class (because it is misleading the reader).
150
-
- All the tests should be properly documented. Every test (or test class), should have a docstring explaning what the test does so that anyone (engineers from other components, managers, PMs, or non-technical users) can have a basic understanding of what the code is trying to test without having to dive into the technical details of related functions or fixtures.
151
-
153
+
- All the tests should be properly documented. Every test (or test class), should have a docstring explaining what the test does so that anyone (engineers from other components, managers, PMs, or non-technical users) can have a basic understanding of what the code is trying to test without having to dive into the technical details of related functions or fixtures.
152
154
153
155
## Check the code
156
+
154
157
### pre-commit
155
158
156
159
When submitting a pull request, make sure to fill all the required, relevant fields for your PR.
@@ -169,6 +172,7 @@ pre-commit run --all-files
169
172
```
170
173
171
174
### tox
175
+
172
176
CI uses [tox](https://tox.readthedocs.io/en/latest/) and will run the code under tox.ini
173
177
174
178
Run tox:
@@ -178,9 +182,12 @@ tox
178
182
```
179
183
180
184
## Adding new runtime
181
-
To add a new runtime, you need to:
185
+
186
+
To add a new runtime, you need to:
187
+
182
188
1. Add a new file under [manifests](../utilities/manifests) directory.
183
189
2. Add `<runtime>_INFERENCE_CONFIG` dict with:
190
+
184
191
```code
185
192
"support_multi_default_queries": True|False, # Optioanl, if set to True, `default_query_model` should contains a dict with corresponding inference_type
186
193
"default_query_model": {
@@ -199,12 +206,16 @@ To add a new runtime, you need to:
199
206
},
200
207
},
201
208
```
209
+
202
210
3. See [caikit_standalone](../utilities/manifests/caikit_standalone.py) for an example
203
211
204
212
## AI Usage
213
+
205
214
If using AI tooling to assist you in the process of writing or reviewing code:
215
+
206
216
1. Understand what you are doing --as a developer, you are ultimately responsible for the code. Always assume the code produced by the AI tools is unsafe and incorrect, and always double-check it.
207
217
2. We support [AGENTS.md](../AGENTS.md), an [open format](https://agents.md/) for guiding coding agents. If you use any proprietary tool that does not support `AGENTS.md` (e.g. Claude Code, Qwen Code, Gemini Code), you can create a symlink:
0 commit comments