Commit ba37ca2
committed
fix(ci): pre-download iscc-sct model to prevent race conditions
Add model caching and pre-download steps to prevent parallel test
failures caused by concurrent model downloads. Model download race
conditions were corrupting the ONNX file, causing INVALID_PROTOBUF
errors in GitHub Actions tests.
CI Changes:
- Cache ~/.local/share/iscc-sct between GitHub Actions runs
- Pre-download model before running parallel tests (pytest -n auto)
Docker Changes:
- Pre-download model during Docker build in builder stage
- Copy model from builder to runtime stage
- Eliminates model download on container startup (~200-300 MB)
Fixes test failures where multiple pytest workers simultaneously
attempted to download the model to the same location.
Related upstream issues filed on iscc/iscc-sct:
- #18: Add file locking during model download
- #19: Add configurable model storage path
- #20: Add CLI command to pre-download models1 parent e6c3e5f commit ba37ca2
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| |||
0 commit comments