Commit 538ce3e
authored
fix(internal/librarian/nodejs): isolate owl-bot-staging cleanups to package subdirectories (#5965)
When running `librarian generate --all` or concurrent generations in
parallel async threads, the Go engine's Node.js post-processor executed
a
sweeping `os.RemoveAll` cleanup on the shared top-level `owl-bot-
staging/` folder. This pulled the directory out from underneath other
active parallel compilation processes, leading to random `No such file
or
directory` crashes.
This patch isolates the post-processor cleanup to package-specific
subdirectories (`owl-bot-staging/<package_name>`), eliminating the
parallel staging deletion race condition.
Closes #59571 parent ef0866e commit 538ce3e
2 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
| 368 | + | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
| |||
549 | 554 | | |
550 | 555 | | |
551 | 556 | | |
552 | | - | |
553 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
554 | 564 | | |
555 | 565 | | |
556 | 566 | | |
| |||
0 commit comments