Repository navigation
build: bump Node to 24.22.1 - #5631
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe repository’s Node.js version pins change from ChangesNode.js version pins
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Possibly related PRs
Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
🤖 I have created a release *beep* *boop* --- ## [2.57.2](v2.57.1...v2.57.2) (2026-10-21) ### Bug Fixes * make CDP browser shutdown reentrant ([#5626](#5626)) ([19841b6](19841b6)) * preserve launch arguments alongside legacy switches ([#5630](#5630)) ([eff44d1](eff44d1)) ### Build System & Runtime * bump Node to 24.22.1 ([#5631](#5631)) ([d2e948c](d2e948c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: browserless-actions-bot[bot] <186328842+browserless-actions-bot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary - Update Node.js from v24.22.1 to [v24.22.2](https://nodejs.org/en/download/archive/v24.22.2), following #5631 and #5624. - Align the same 12 pins: `.nvmrc`, Docker base default, six browser test matrices, and four CI/publishing/release workflows. - Preserve npm 11.21.1, NVM, dependencies, engine minimums, lockfile, and historical changelog entries. - Pin Ubuntu 26.04 (`resolute`) to its multi-architecture index digest. Use the codename to avoid Dependabot's experimental suppression of digest-only updates for numeric tags. Point Dependabot at `/docker/base`, check daily without a Docker cooldown, and use releasable `build` commit messages. Retain existing Dependabot auto-merge behavior. - Upgrade installed APT packages during base builds and disable layer-cache reuse for published base/browser images. Browser publishing explicitly pulls the published parent image. - No new release schedule or rolling channel is introduced; existing release approval and publishing triggers remain unchanged. ## Validation Using Node.js v24.22.2 and npm 11.21.1: - Downloaded Node binary verified against upstream SHA-256 checksums. - `npm ci`, `npm run build:dev`, `npx eslint .`, and changed-workflow Prettier checks passed. - `node --test scripts/*.test.js`: 20 passed. - `CI=true npm test`: 221 passed, 44 pending, then failed because the Chrome browser binary is absent. This is not a complete integration-suite pass. - Docker image builds and browser/leak validation require CI; the local environment has no running Docker daemon or installed application browsers. - Final head a3eac60 passed all six Docker browser jobs, leak check, lint, formatting, title validation, CodeQL, and GitHub's Dependabot configuration validation. The Dependabot-only automerge job was skipped as expected. - Dependabot configuration passes its JSON schema; changed YAML passes Prettier. Verified the Ubuntu index digest against the raw registry response and confirmed both linux/amd64 and linux/arm64 are present. Checked the watched Dockerfile path and uncached publish settings. - Verified `resolute` and `26.04` resolve to identical index bytes. Dependabot keeps non-versioned tags unchanged while checking their digests; the codename is explicitly exempt from numeric-tag digest-update suppression. Hosted Dependabot PR creation still needs verification after merge. - The lockfile is unchanged. PR tests and release publishing still build separately, so APT packages may change between them. - Exercised release-please 17.6.0's Node strategy with the repository's changelog configuration: a sole `build:` or `build(deps):` digest-update commit generates a 2.57.4 release PR from 2.57.3. A hidden `chore:` control produces no release PR. No release was published by this local check. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Updated the Node.js version from 24.22.1 to 24.22.2 across browser builds, tests, publishing, and development. * Updated the Docker base image and package installation process, and adjusted image build settings. * Updated automated dependency update settings for the Docker base image. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/browserless/browserless/pull/5645" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> --------- Co-authored-by: Amp <[email protected]>
## Summary - Update Node.js from v24.22.2 to [v26.13.0](https://nodejs.org/en/download/archive/v26.13.0) (LTS), following #5645 and #5631. - Align the same 12 pins: `.nvmrc`, Docker base default, six browser test matrices, and four CI/publishing/release workflows. npm stays at 11.21.1; `engines.node` stays `>=24`. - Add `libatomic1` to the base image: official Node ≥ 25 Linux binaries link against libatomic, and the base build fails without it (`libatomic.so.1: cannot open shared object file`). - Rewrite `scripts/install-playwright-ffmpeg.js` to download and unzip each pinned Playwright package's FFmpeg archive itself. playwright-core < 1.60 deadlocks in its yauzl-based extractor on Node 24.16–24.17 and Node ≥ 26 (microsoft/playwright#40724, nodejs/node#63487; the stream change was reverted on 24.x but kept on 26). The script now runs `install ffmpeg --dry-run` to learn the install directory and ordered mirror URLs, fetches the archive, extracts it through the existing `scripts/extract-zip-native.js` (system `unzip`, the same workaround as `install-versioned-browsers.sh`), writes `INSTALLATION_COMPLETE` only after a verified extraction, then lets `playwright install ffmpeg` validate the finished install under a timeout. The published images bundle 1.60–1.64 and were not affected; SDK consumers that pin older `playwrightVersions` were (the unmodified script hangs after the download completes until its own 600 s timeout kills it). - Drop the obsolete `esbuild-plugins-node-modules-polyfill` override (its peer range already accepts the installed esbuild; lockfile byte-identical) and approve esbuild's install script so `npm ci` no longer warns. - Update the `extract-zip-native.js` comment to describe the affected Node ranges. ## Validation Using Node.js v26.13.0 and npm 11.20.0/11.21.1 (host/image), on an arm64 host with Docker: - `npm ci` (no install-script warnings), `npm run build:dev`, `npm run lint`, and `npx prettier --check .` passed. - `node --test scripts/install-playwright-ffmpeg.test.js`: 6 passed, including first-mirror fallback, no re-download on re-run, unreachable mirrors leaving the cache untouched, and a corrupt archive never being marked installed. - `npm pack --dry-run`: 0 warnings. - `docker/base` built with the new script; `docker/chromium` image test suite: 580 passing, 0 failing; `docker/multi` image test suite: 607 passing, 0 failing (run twice, before and after the FFmpeg script rewrite). In-image `node -v` is v26.13.0 and `ldd` shows libatomic linked. - SDK smoke test against the packed tarball inside the multi image: scaffolded project builds and starts; a custom route, Playwright WebSocket connections to chromium/firefox/webkit, puppeteer-core WebSocket connect, and `/chromium/screenshot`, `/pdf`, `/content`, `/function`, `/scrape`, `/sessions`, `/pressure`, `/docs` all return 200. - Reproduced the extraction deadlock under Node 26.13.0 with playwright-core 1.59 (`install ffmpeg` hangs after download; completes on 1.60 and on Node 24.18/25.0), and confirmed that with the completion marker present `install ffmpeg` exits in well under a second without extracting. - Not covered locally: amd64 builds and the chrome/edge images (amd64-only); CI on this PR is the amd64 evidence. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Updates** * Updated the project’s Node.js version to 26.13.0 across development, browser testing, Docker builds, and publishing. * Updated the base Docker image to support Node.js 26.13.0. * **Bug Fixes** * Improved Playwright FFmpeg installation reliability with proxy support, download mirror fallback, and recovery from incomplete downloads. * **Documentation** * Clarified which Node.js versions are affected by the stream-close issue and when it was reverted on the 24.x line. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/browserless/browserless/pull/5653" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> --------- Co-authored-by: Amp <[email protected]>
Summary
.nvmrc, the Docker base default, all six browser test matrices, and the four CI/publishing/release workflow pins.next-11tag. No npm major upgrade is included.Validation
Using Node.js v24.22.1 and npm 11.21.1:
SHASUMS256.txt.npm ci,npm run build:dev,npm run lint, and changed-file Prettier checks passed.node --test scripts/*.test.js: 15 passing.CI=true npm test: 218 passing, 40 pending, then stopped because the Chrome binary is absent. This is not a complete integration-suite pass.GitHub CI must cover all six Docker browser jobs, leak check, lint, formatting, title validation, and CodeQL. No packages or images have been published.
Summary by CodeRabbit