warm-target: a fresh target disk holds lost+found 1d9702887eee
The ext4 scratch disk a job gets always has lost+found, so the prebuilt dependencies were never copied in (the first run on the warm image compiled everything). Only lost+found now counts as empty.
- Author
- Andy McCall @andymccall <[email protected]>
- When
- · 2026-09-29 03:58 UTC
- Signature
- ✔ signed by Andy McCall
- Hash
1d9702887eee79babadd1a7aa8314ef4500def25217c5137a4ee5587f8be3db0- Depends on
- 705d11b01a2c
- Depended on by
- nothing yet
- In bookmarks
- api-unknown-fields cancel-landed-runs clear-waiting close-proposal-140 diffusion-pin-bookmark draft-ready image-check job-waits main oh-comment-body-file proposal-list-fast run-one-job wiki-says-so
- In tags
- v0.1.0 v0.2.0 v0.3.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
- Edits
- 2 atoms, 0 tree operations, 1 file
Browse the tree at this change
modified .flow/warm-target.sh +2 −1
| … | 6 unchanged lines |
||
| 7 | 7 | # failed copy) the job simply builds everything, as before. |
|
| 8 | 8 | set -eu |
|
| 9 | 9 | warm=/opt/warm/oxygenhub |
|
| 10 | - | if [ -d "$warm" ] && [ -z "$(ls -A target 2>/dev/null)" ]; then |
|
| 10 | + | # A fresh ext4 target disk holds only lost+found. |
|
| 11 | + | if [ -d "$warm" ] && [ -z "$(ls -A target 2>/dev/null | grep -vx 'lost+found')" ]; then |
|
| 11 | 12 | start=$(date +%s) |
|
| 12 | 13 | if cp -R --preserve=timestamps "$warm/." target/; then |
|
| 13 | 14 | echo "flow: prebuilt dependencies copied in $(( $(date +%s) - start )) s" |
|
| … | 6 unchanged lines |