Commit ec1c174
ci: Auto-build and upload uv cache on miss (#608)
* ci: Auto-build and upload uv cache on miss
Instead of failing CI when the prebuilt uv cache is missing (requiring
a manual rebuild on a separate machine), gracefully fall back to building
from scratch and uploading the cache for future runs.
- Change permissions to contents: write for release asset uploads
- Convert hard failures in cache restore to warnings with cache-hit output
- Add upload step that archives the uv cache after uv sync and uploads
via the existing build_and_push_uv_cache.sh script (--skip-build)
- Re-check before upload to avoid races when concurrent CI runs both
miss the cache
- Use continue-on-error so upload failures never break quality checks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Split into cache-status/build-cache/quality-checks jobs
Move cache building to a separate `build-cache` job that runs on a
larger runner (`art-cache-builder`) only when the cache is missing.
This avoids OOM on the 16GB `art-large-runner` during cold builds.
- `cache-status`: lightweight check for existing cache (art-large-runner)
- `build-cache`: builds and uploads cache on miss (art-cache-builder, >=32GB)
- `quality-checks`: restores cache and runs checks (art-large-runner)
On cache hit, build-cache is skipped and quality-checks runs immediately.
On cache miss, quality-checks waits for build-cache to finish first.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Trigger CI run
* ci: Limit uv concurrency in build-cache to avoid OOM
Restrict parallel downloads (4), installs (1), and native build jobs (2)
to keep peak memory usage within the 64GB runner limit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Use Docker Buildx for cache builds to avoid OOM
Docker Buildx manages memory via overlay layers and doesn't get OOM-killed
like bare uv sync does. This matches the pre-#560 approach and works on
the existing art-large-runner (16GB) without needing a larger runner.
- Add docker/ci-uv-cache.Dockerfile to build the uv cache in Docker
- build-cache job uses Buildx with GHA cache, then extracts the archive
and uploads via the existing build_and_push_uv_cache.sh script
- Remove dependency on art-cache-builder runner
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: Update CONTRIBUTING.md for automatic cache rebuilds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Run build-cache on art-cache-builder (16-core/64GB)
The 4-core/16GB art-large-runner thrashes on the Docker build due to
the large packages (torch, vllm, cudnn, etc.). Use a dedicated larger
runner only for cache builds to finish faster and more reliably.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Retrigger CI with clean cache state
* ci: Set cuDNN paths in Dockerfile for transformer-engine build
transformer-engine-torch needs cudnn.h which is provided by the
pip nvidia-cudnn package. Set CUDNN_PATH and related env vars
pointing to the venv location so the native extension can find
the headers during compilation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Replace Docker Buildx with direct uv sync on art-cache-builder
With 64GB RAM on art-cache-builder, we can run build_and_push_uv_cache.sh
directly without Docker. Simpler, avoids Dockerfile env var complications
(cuDNN paths, etc.), and reuses the existing script that already handles
all the build details.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: Retrigger all checks
* ci: Remove container from cache-status job
The cache-status job only needs python3 and curl (both on the runner
natively) to compute a fingerprint and check the API. Removing the
pytorch container avoids a slow image pull on every CI run.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5593918 commit ec1c174
2 files changed
Lines changed: 113 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | | - | |
| 21 | + | |
13 | 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 | + | |
14 | 81 | | |
15 | 82 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 83 | | |
26 | 84 | | |
27 | 85 | | |
| |||
31 | 89 | | |
32 | 90 | | |
33 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
34 | 103 | | |
35 | 104 | | |
36 | 105 | | |
37 | 106 | | |
38 | 107 | | |
39 | 108 | | |
40 | 109 | | |
41 | | - | |
42 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
43 | 113 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 114 | + | |
47 | 115 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
51 | 139 | | |
52 | 140 | | |
53 | 141 | | |
54 | 142 | | |
55 | 143 | | |
56 | 144 | | |
57 | | - | |
| 145 | + | |
58 | 146 | | |
59 | 147 | | |
60 | 148 | | |
| |||
64 | 152 | | |
65 | 153 | | |
66 | 154 | | |
67 | | - | |
68 | 155 | | |
69 | 156 | | |
70 | 157 | | |
71 | 158 | | |
72 | 159 | | |
73 | 160 | | |
74 | | - | |
75 | 161 | | |
76 | 162 | | |
77 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 46 | + | |
60 | 47 | | |
61 | 48 | | |
62 | | - | |
| 49 | + | |
63 | 50 | | |
64 | 51 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 52 | + | |
69 | 53 | | |
70 | 54 | | |
71 | 55 | | |
| |||
0 commit comments