Commit 97ce5e0
committed
fix: move multiprocessing_start_method_fork fixture to shared conftest
On Python 3.14, the default multiprocessing start method changed from
fork to forkserver (python/cpython#132898), which requires all Process
arguments to be picklable. The unprivileged_client Kubernetes client
object contains thread locks and closures that cannot be pickled,
causing _pickle.PicklingError in test_successful_concurrent_uploads.
Move the multiprocessing_start_method_fork fixture from
tests/chaos/conftest.py to tests/conftest.py so it can be reused
across test directories, and apply it to the affected upload test.
Changes:
- Move fixture to tests/conftest.py (shared across all test dirs)
- Remove duplicate from tests/chaos/conftest.py
- Add @pytest.mark.usefixtures("multiprocessing_start_method_fork")
to test_successful_concurrent_uploads in test_upload.py
- Existing chaos consumers (test_standard, test_snapshot,
test_migration) resolve the fixture from the parent conftest
Signed-off-by: Jathavedhan M <jathavedhan.m@ibm.com>1 parent bd1c0e4 commit 97ce5e0
3 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
230 | 247 | | |
231 | 248 | | |
232 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
0 commit comments