Commit e0c29f2
Yuan Huang
fix: remove node_modules from /infrabox/cache to prevent timeout
The real bottleneck was not cp -r in build.sh but job.py's post-build
step that compresses and uploads /infrabox/cache via snappy+tar to the
API server. With node:20's much larger node_modules (~200MB+), this
compression/upload exceeds the 1-hour job timeout.
Solution: stop writing node_modules back to /infrabox/cache. Instead,
use mv to restore cached node_modules at the start (fast), and don't
write it back (npm install with warm cache only takes ~20s anyway).
This eliminates the expensive cache upload entirely.1 parent 215ed8e commit e0c29f2
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
0 commit comments