Repository navigation
Clean up interrupted JavaScript dependency downloads - #387
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
An interrupted optional JavaScript dependency download could leave its temporary file behind. Give each attempt a unique sibling candidate, clean up only that attempt's candidate, close streams and disconnect on failure, and preserve the original failure with cleanup failures suppressed.
The follow-up closes an unpublished class loader if engine factory creation fails, while retaining the previous published loader until a replacement is ready. A managed cached dependency whose archive structure cannot be read can be repaired through a validated candidate. Before publication, recheck the destination and preserve a competing readable archive; replacement of an existing unreadable archive requires atomic filesystem replacement, and unsupported atomic publication retains the prior bytes.
Readable manually supplied archives remain supported. No version or trust policy, unowned temporary-file purge, async readiness contract, cross-handler single-flight or privileged script capability is changed. The final destination check does not serialize unrelated filesystem writers acting after that check.
Validation at exact source
a1e45afff016d86782ada14e6d97a6f1dda37a5c: 69 focused JavaScript tests passed; a clean JDK 21 package passed 1,747 ordinary tests and two artifact checks, with zero failures, errors or skips. Independent read-only source review approved this exact snapshot and independently passed 69 focused tests. Earlier loader-failure and publication-race regressions failed on their respective baselines and passed on the corrected source. Build receipts bind the source, dependencies, tools and packaged classes. These are local component/package results; hosted current-head checks and affected downstream/native acceptance are recorded separately.Summary by CodeRabbit