Commit f58f7c9
committed
fix: disable tqdm in CI environments to prevent threading deadlock
This commit addresses the threading deadlock issue that occurs in headless
CI/CD environments (particularly on Linux) when tqdm's monitor thread
interacts with CZI file reading operations.
Changes:
- Added _should_use_tqdm() helper function to detect CI/headless environments
- Modified planetable.py to conditionally use tqdm based on environment
- Modified read_tools.py to conditionally use tqdm based on environment
- tqdm is disabled when CI=true, GITHUB_ACTIONS=true, TQDM_DISABLE=1, or QT_QPA_PLATFORM=offscreen
- Falls back to itertools.product and no-op tqdm wrapper when disabled
- Maintains full compatibility - progress bars work normally in interactive environments
Fixes: Threading deadlock on Linux CI when reading CZI files1 parent c1053ca commit f58f7c9
2 files changed
+71
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 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 | + | |
16 | 55 | | |
17 | 56 | | |
18 | 57 | | |
| |||
23 | 62 | | |
24 | 63 | | |
25 | 64 | | |
26 | | - | |
27 | | - | |
28 | 65 | | |
29 | 66 | | |
30 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 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 | + | |
25 | 56 | | |
26 | 57 | | |
27 | 58 | | |
| |||
0 commit comments