Commit 1bcf3c5
committed
fix(agent): keep rtk cache rename on one filesystem and pin error-path emit ordering
- mkdtempSync beside cacheDir (not os.tmpdir()) so renameSync stays
same-filesystem and never throws EXDEV on Linux/Docker containers
- wrap renameSync in try/catch: swallow Windows destination-exists error
when the winner already placed the file (concurrent cold-cache builds)
- fix error message to interpolate extractedBinary (the path checked)
not cachedBinary (the destination)
- signalTaskComplete ordering test now passes a savings-returning stub so
the rtk_savings enqueue is asserted to precede stop() on that seam
- fix ENOBUFS comment -> ERR_CHILD_PROCESS_STDIO_MAXBUFFER (real error)
- fix double space in emitRtkSavings comment
Generated-By: PostHog Code
Task-Id: b86391cc-4634-4a2b-ae34-fe1f9c0626a01 parent 20cb39c commit 1bcf3c5
4 files changed
Lines changed: 39 additions & 14 deletions
File tree
- packages/agent
- build
- src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
198 | | - | |
| 201 | + | |
199 | 202 | | |
200 | 203 | | |
201 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | 213 | | |
204 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
553 | 564 | | |
554 | | - | |
555 | | - | |
| 565 | + | |
| 566 | + | |
556 | 567 | | |
557 | 568 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
| 569 | + | |
563 | 570 | | |
564 | 571 | | |
565 | 572 | | |
| |||
595 | 602 | | |
596 | 603 | | |
597 | 604 | | |
598 | | - | |
| 605 | + | |
| 606 | + | |
599 | 607 | | |
600 | 608 | | |
601 | 609 | | |
| |||
613 | 621 | | |
614 | 622 | | |
615 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
616 | 631 | | |
617 | 632 | | |
618 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3392 | 3392 | | |
3393 | 3393 | | |
3394 | 3394 | | |
3395 | | - | |
| 3395 | + | |
3396 | 3396 | | |
3397 | 3397 | | |
3398 | 3398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments