miki3421 opened a new pull request, #213:
URL: https://github.com/apache/openserverless-task/pull/213

   ## Summary
   
   - update the bundled Bun prerequisite from 1.2.5 to 1.3.14
   - require Bun 1.3.14 or newer in `ide:prereq`
   - make Bun downloads fail on HTTP errors and explicitly restore executable 
permissions
   - replace directory-only `node_modules` checks with a verified dependency 
state marker
   - reinstall incomplete or stale dependency trees with a temporary cache, 
`--no-cache`, and network concurrency 1
   - add a Bun regression test for partial and already-verified installs
   
   ## Why
   
   Bun 1.2.5 can leave incomplete package downloads behind constrained proxies. 
The previous task treated any existing `node_modules` directory as a successful 
install, so later deploy attempts skipped recovery.
   
   The new helper fingerprints package metadata, lockfiles, and the Bun 
version. It writes the completion marker only after `bun install` succeeds. A 
partial directory without a valid marker is removed and rebuilt on the next 
attempt. Proxy variables remain inherited by the child process.
   
   Bun 1.3.14 release: https://github.com/oven-sh/bun/releases/tag/bun-v1.3.14
   Official install flags: https://bun.sh/docs/pm/cli/install
   
   ## Validation
   
   - verified all Bun 1.3.14 release URLs used by the supported 
OS/architectures return HTTP 200
   - downloaded Bun 1.3.14 macOS ARM64 through the updated prerequisite task
   - verified the downloaded binary reports 1.3.14 and is executable
   - `bun test ide/install-dependencies.test.ts` passes
   - installed the real `ide/deploy` dependency tree (46 packages) with the 
hardened helper
   - second helper run skips the verified dependency tree
   - parsed `ide/opsfile.yml` and `prereq.yml` with Task
   - `git diff --check`
   
   Target branch: `0.9.1`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to