Commit a893e00
ci(test): cache apt downloads and node_modules for the unit-tests job
The unit-tests "Install git and Node.js" step was 44 s — almost all of
it network download of the nodejs / npm .deb. The "Install JS test
dependencies" step is 1 s when node_modules is fresh but can grow as
deps change.
- Cache /var/cache/apt/archives keyed on a stable string (apt package
set rarely changes). Disable docker-clean and set Keep-Downloaded-
Packages so the cached .debs survive install for the next run. apt
install still runs (unpacks from local cache, ~3-5 s) but skips the
network leg.
- Cache tests/js/node_modules keyed on package-lock.json so dep bumps
invalidate cleanly. `npm ci` short-circuits when the tree matches.
Expected first-cold-cache run: unchanged (~45 s install). Cache hits:
~5 s for both steps combined.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f04c5d3 commit a893e00
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
136 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
137 | 153 | | |
138 | 154 | | |
139 | 155 | | |
| |||
144 | 160 | | |
145 | 161 | | |
146 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
147 | 172 | | |
148 | 173 | | |
149 | | - | |
| 174 | + | |
| 175 | + | |
150 | 176 | | |
151 | 177 | | |
152 | 178 | | |
| |||
0 commit comments