From ac955dbb6a714fed0ff1123db3b3cbb26299a70a Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Nov 2026 11:05:05 +0000 Subject: [PATCH 1/4] ci: test Node 24 and 26, default single-version jobs to 26 Node 26 is Active LTS. Backend, admin and upgrade matrices now run 24 (the engines floor) and 26. Single-version jobs move to 26. Windows drops the 24.16.0 pin in favour of check-latest: true so the runner's cached 24.15.0 (libuv TCP-connect overrun, nodejs/node#63620) is never picked. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw --- .github/workflows/backend-tests.yml | 55 +++++++++---------- .github/workflows/build-and-deploy-docs.yml | 2 +- .github/workflows/deb-package.yml | 8 +-- .github/workflows/downstream-smoke.yml | 2 +- .github/workflows/frontend-admin-tests.yml | 5 +- .github/workflows/frontend-tests.yml | 8 +-- .github/workflows/handleRelease.yml | 2 +- .github/workflows/installer-test.yml | 4 +- .github/workflows/load-test.yml | 6 +- .github/workflows/perform-type-check.yml | 2 +- .github/workflows/rate-limit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/releaseEtherpad.yml | 4 +- .github/workflows/update-plugins.yml | 2 +- .../workflows/upgrade-from-latest-release.yml | 5 +- .../backend-tests-flake-mitigation.test.ts | 13 ++++- 16 files changed, 65 insertions(+), 57 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 1eca7975978..bd5fc40c3a2 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -26,8 +26,9 @@ jobs: strategy: fail-fast: false matrix: - # Etherpad requires Node >= 24 (see package.json engines.node). - node: ${{ fromJSON('[24]') }} + # Etherpad requires Node >= 24 (see package.json engines.node). Test the + # floor (24) and the current Active LTS (26). + node: ${{ fromJSON('[24, 26]') }} steps: - name: Checkout repository @@ -83,7 +84,7 @@ jobs: strategy: fail-fast: false matrix: - node: ${{ fromJSON('[24]') }} + node: ${{ fromJSON('[24, 26]') }} steps: - name: Checkout repository @@ -152,19 +153,16 @@ jobs: strategy: fail-fast: false matrix: - # Etherpad requires Node >= 24 (see package.json engines.node). - # Windows pins Node 24.16.0, not the runner-default 24.15.0. Node 24.15.0's - # bundled libuv (1.51.0) has a stack buffer overrun in the Windows TCP-connect - # path (uv__tcp_connect), proven by a /GS __fastfail full-memory dump under the - # backend suite's heavy localhost connection churn -- the long-standing Windows - # backend silent-ELIFECYCLE flake (memory corruption, so no JS/Node - # observability). Bisect: 24.15.0 crashes (4/4 on 127.0.0.1), 24.16.0 - # (libuv 1.52.1) is clean (0/8). Stays on the 24 LTS line. Pin explicitly - # because setup-node's default check-latest:false reuses the runner's - # pre-cached 24.15.0 for a bare "24". - # Tracking: https://github.com/nodejs/node/issues/63620 — drop this pin - # back to plain "24" once the fix is across the supported 24.x baseline. - node: ${{ fromJSON('["24.16.0"]') }} + # Etherpad requires Node >= 24 (see package.json engines.node). Test the + # floor (24) and the current Active LTS (26). + # Windows needs libuv >= 1.52.1 (Node >= 24.16.0). Node 24.15.0's + # bundled libuv 1.51.0 has a stack buffer overrun in the Windows + # TCP-connect path (uv__tcp_connect) that the backend suite's localhost + # connection churn hits as a silent ELIFECYCLE crash + # (nodejs/node#63620, fixed in 24.16.0). The runner image can still + # pre-cache 24.15.0 for a bare "24", so this job sets check-latest: true + # to always resolve the newest 24.x / 26.x release instead of pinning. + node: ${{ fromJSON('[24, 26]') }} name: Windows without plugins runs-on: windows-latest steps: @@ -186,6 +184,7 @@ jobs: uses: actions/setup-node@v7 with: node-version: ${{ matrix.node }} + check-latest: true cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite @@ -217,19 +216,16 @@ jobs: strategy: fail-fast: false matrix: - # Etherpad requires Node >= 24 (see package.json engines.node). - # Windows pins Node 24.16.0, not the runner-default 24.15.0. Node 24.15.0's - # bundled libuv (1.51.0) has a stack buffer overrun in the Windows TCP-connect - # path (uv__tcp_connect), proven by a /GS __fastfail full-memory dump under the - # backend suite's heavy localhost connection churn -- the long-standing Windows - # backend silent-ELIFECYCLE flake (memory corruption, so no JS/Node - # observability). Bisect: 24.15.0 crashes (4/4 on 127.0.0.1), 24.16.0 - # (libuv 1.52.1) is clean (0/8). Stays on the 24 LTS line. Pin explicitly - # because setup-node's default check-latest:false reuses the runner's - # pre-cached 24.15.0 for a bare "24". - # Tracking: https://github.com/nodejs/node/issues/63620 — drop this pin - # back to plain "24" once the fix is across the supported 24.x baseline. - node: ${{ fromJSON('["24.16.0"]') }} + # Etherpad requires Node >= 24 (see package.json engines.node). Test the + # floor (24) and the current Active LTS (26). + # Windows needs libuv >= 1.52.1 (Node >= 24.16.0). Node 24.15.0's + # bundled libuv 1.51.0 has a stack buffer overrun in the Windows + # TCP-connect path (uv__tcp_connect) that the backend suite's localhost + # connection churn hits as a silent ELIFECYCLE crash + # (nodejs/node#63620, fixed in 24.16.0). The runner image can still + # pre-cache 24.15.0 for a bare "24", so this job sets check-latest: true + # to always resolve the newest 24.x / 26.x release instead of pinning. + node: ${{ fromJSON('[24, 26]') }} name: Windows with Plugins runs-on: windows-latest @@ -252,6 +248,7 @@ jobs: uses: actions/setup-node@v7 with: node-version: ${{ matrix.node }} + check-latest: true cache: pnpm - name: Install dependencies run: pnpm install diff --git a/.github/workflows/build-and-deploy-docs.yml b/.github/workflows/build-and-deploy-docs.yml index 548fd74c736..4d0593f269d 100644 --- a/.github/workflows/build-and-deploy-docs.yml +++ b/.github/workflows/build-and-deploy-docs.yml @@ -60,7 +60,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Setup Pages if: github.event_name == 'push' diff --git a/.github/workflows/deb-package.yml b/.github/workflows/deb-package.yml index bbc07bccb58..8596fd81e88 100644 --- a/.github/workflows/deb-package.yml +++ b/.github/workflows/deb-package.yml @@ -71,7 +71,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v7 with: - node-version: '24' + node-version: '26' cache: pnpm - name: Resolve version @@ -143,11 +143,11 @@ jobs: # `Depends: nodejs (>= 24)`. Add NodeSource's apt repo # explicitly (key + sources.list) instead of `curl | sudo bash` # so we don't execute network-fetched code as root. - NODE_MAJOR=24 + NODE_MAJOR=26 # GitHub runner images often ship a NodeSource node_20.x list # preinstalled (sometimes as a .sources deb822 file). Wipe any # existing nodesource entries so the only Node candidate apt sees - # is our node_24.x repo. Otherwise `apt-get install -y nodejs` + # is our node_${NODE_MAJOR}.x repo. Otherwise `apt-get install -y nodejs` # picks the higher-version 20.x build that's already cached and # `dpkg -i` then fails on `Depends: nodejs (>= 24)`. sudo rm -f /etc/apt/sources.list.d/nodesource.list \ @@ -159,7 +159,7 @@ jobs: | sudo gpg --dearmor --yes -o "${KEYRING}" echo "deb [signed-by=${KEYRING}] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" \ | sudo tee /etc/apt/sources.list.d/nodesource.list - # Pin nodejs to the 24.x line so neither Ubuntu's noble-updates + # Pin nodejs to the ${NODE_MAJOR}.x line so neither Ubuntu's noble-updates # 20.x nor any leftover NodeSource cache can win the resolver. printf 'Package: nodejs\nPin: version %s.*\nPin-Priority: 1001\n' "${NODE_MAJOR}" \ | sudo tee /etc/apt/preferences.d/nodesource >/dev/null diff --git a/.github/workflows/downstream-smoke.yml b/.github/workflows/downstream-smoke.yml index 53203e035eb..0f276a46b9c 100644 --- a/.github/workflows/downstream-smoke.yml +++ b/.github/workflows/downstream-smoke.yml @@ -44,7 +44,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install dependencies diff --git a/.github/workflows/frontend-admin-tests.yml b/.github/workflows/frontend-admin-tests.yml index 47f3ce55b32..bf91fe9565b 100644 --- a/.github/workflows/frontend-admin-tests.yml +++ b/.github/workflows/frontend-admin-tests.yml @@ -21,8 +21,9 @@ jobs: strategy: fail-fast: false matrix: - # Etherpad requires Node >= 24 (see package.json engines.node). - node: ${{ fromJSON('[24]') }} + # Etherpad requires Node >= 24 (see package.json engines.node). Test the + # floor (24) and the current Active LTS (26). + node: ${{ fromJSON('[24, 26]') }} steps: - diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 6a2e3ba8880..f1cdbdc7bc5 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -44,7 +44,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite @@ -121,7 +121,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite run: pnpm install --frozen-lockfile @@ -201,7 +201,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite run: pnpm install --frozen-lockfile @@ -306,7 +306,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite run: pnpm install --frozen-lockfile diff --git a/.github/workflows/handleRelease.yml b/.github/workflows/handleRelease.yml index 331633a428c..c200b6e38cb 100644 --- a/.github/workflows/handleRelease.yml +++ b/.github/workflows/handleRelease.yml @@ -42,7 +42,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite run: pnpm install --frozen-lockfile diff --git a/.github/workflows/installer-test.yml b/.github/workflows/installer-test.yml index eba6a341a62..688dfb70a4c 100644 --- a/.github/workflows/installer-test.yml +++ b/.github/workflows/installer-test.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' - name: Pre-install pnpm (avoid sudo prompt in the installer) run: npm install -g pnpm @@ -126,7 +126,7 @@ jobs: - uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' - name: Pre-install pnpm run: npm install -g pnpm diff --git a/.github/workflows/load-test.yml b/.github/workflows/load-test.yml index 1e5ae103b32..adea56a0e62 100644 --- a/.github/workflows/load-test.yml +++ b/.github/workflows/load-test.yml @@ -39,7 +39,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite @@ -77,7 +77,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install etherpad-load-test @@ -140,7 +140,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite diff --git a/.github/workflows/perform-type-check.yml b/.github/workflows/perform-type-check.yml index 011535e6f04..03ec1494d04 100644 --- a/.github/workflows/perform-type-check.yml +++ b/.github/workflows/perform-type-check.yml @@ -39,7 +39,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - name: Install all dependencies and symlink for ep_etherpad-lite run: pnpm install --frozen-lockfile diff --git a/.github/workflows/rate-limit.yml b/.github/workflows/rate-limit.yml index 5d162cf9083..b90fce142eb 100644 --- a/.github/workflows/rate-limit.yml +++ b/.github/workflows/rate-limit.yml @@ -42,7 +42,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16f6f0dbb83..5784b46711e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' cache: pnpm cache-dependency-path: etherpad/pnpm-lock.yaml - name: Install dependencies ether.github.com diff --git a/.github/workflows/releaseEtherpad.yml b/.github/workflows/releaseEtherpad.yml index 1433184effa..dfcf5363cf6 100644 --- a/.github/workflows/releaseEtherpad.yml +++ b/.github/workflows/releaseEtherpad.yml @@ -49,8 +49,8 @@ jobs: - uses: actions/setup-node@v7 with: # OIDC trusted publishing needs npm >= 11.5.1, which requires - # Node >= 22.9.0. Node 24 satisfies that and matches the rest of CI. - node-version: 24 + # Node >= 22.9.0. Node 26 (Active LTS) satisfies that and matches the rest of CI. + node-version: '26' registry-url: https://registry.npmjs.org/ - name: Upgrade npm to >=11.5.1 (required for trusted publishing) run: npm install -g npm@latest diff --git a/.github/workflows/update-plugins.yml b/.github/workflows/update-plugins.yml index 7505f2464a7..485befc950d 100644 --- a/.github/workflows/update-plugins.yml +++ b/.github/workflows/update-plugins.yml @@ -26,7 +26,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version: '26' - name: Install bin dependencies working-directory: ./bin diff --git a/.github/workflows/upgrade-from-latest-release.yml b/.github/workflows/upgrade-from-latest-release.yml index 6752f4e437c..733e38369a3 100644 --- a/.github/workflows/upgrade-from-latest-release.yml +++ b/.github/workflows/upgrade-from-latest-release.yml @@ -28,8 +28,9 @@ jobs: strategy: fail-fast: false matrix: - # Etherpad requires Node >= 24 (see package.json engines.node). - node: ${{ fromJSON('[24]') }} + # Etherpad requires Node >= 24 (see package.json engines.node). Test the + # floor (24) and the current Active LTS (26). + node: ${{ fromJSON('[24, 26]') }} steps: - name: Check out latest release diff --git a/src/tests/backend-new/specs/backend-tests-flake-mitigation.test.ts b/src/tests/backend-new/specs/backend-tests-flake-mitigation.test.ts index ebc8eb4d55e..6ff9d17de81 100644 --- a/src/tests/backend-new/specs/backend-tests-flake-mitigation.test.ts +++ b/src/tests/backend-new/specs/backend-tests-flake-mitigation.test.ts @@ -3,8 +3,9 @@ // Source-level lint pinning the one remaining Windows backend-test CI // invariant after the silent-ELIFECYCLE flake was root-caused and fixed // (the in-process process.exit path is gated in src/node/server.ts, and the -// Windows jobs run on Node 24.16.0 to avoid the libuv TCP-connect stack -// overrun in 24.15.0 — tracked upstream as nodejs/node#63620): +// Windows jobs resolve the newest 24.x/26.x with check-latest so they never +// fall back to the runner's cached 24.15.0, whose libuv has the TCP-connect +// stack overrun tracked upstream as nodejs/node#63620): // // mocha --exit on the Windows CI jobs, and ONLY there, so a leaked handle // can't hang the job at post-suite drain. Linux/local keep natural drain so @@ -37,6 +38,14 @@ describe('backend-tests Windows --exit invariant', () => { 'workflow no longer has any Linux jobs (sanity check)').toBe(true); }); + it('Windows setup-node steps keep check-latest so a cached 24.15.0 is never used', () => { + // A bare "24" on windows-latest resolves to the runner's pre-cached + // toolcache build unless check-latest is set. 24.15.0 (libuv 1.51.0) + // crashes the backend suite (nodejs/node#63620). + const checkLatest = (workflow.match(/^\s+check-latest: true$/gm) || []).length; + expect(checkLatest, 'both Windows jobs must set check-latest: true').toBe(2); + }); + it('mocha test script does not bake --exit in globally', () => { // Counterpart to the workflow check: if a future refactor moves // --exit back into src/package.json it would silently apply to From e4f0e0b4cfe92a7b9eba1dcc1840c1464c686692 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Nov 2026 11:05:05 +0000 Subject: [PATCH 2/4] build(snap): bundle Node 26.13.1 and verify its sha256 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw --- snap/README.md | 2 +- snap/snapcraft.yaml | 26 ++++++++++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/snap/README.md b/snap/README.md index ca8a0ca3221..48e752bf3b8 100644 --- a/snap/README.md +++ b/snap/README.md @@ -69,7 +69,7 @@ Logs: `sudo snap logs etherpad -f`. ``` $SNAP/ # = /snap/etherpad/current (read-only squashfs) ├── opt/ -│ ├── node/bin/node # pinned Node.js 22.12.0 +│ ├── node/bin/node # pinned Node.js 26.x LTS (NODE_VERSION in snapcraft.yaml) │ └── etherpad/ │ ├── src/ # ep_etherpad-lite workspace package (with node_modules incl. tsx) │ ├── admin/, ui/, doc/ # other workspace packages (built artefacts) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 23b9d544828..bf6304a7773 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -3,20 +3,20 @@ # Design notes: # - base: core24 chosen because Etherpad requires Node.js >= 24 and # core24 (Ubuntu 24.04 LTS) ships glibc/OpenSSL versions matching modern -# Node 24 binaries. core22 also works but ships older TLS/CA bundles. +# Node 24/26 binaries. core22 also works but ships older TLS/CA bundles. # - confinement: strict. Etherpad is a pure Node.js HTTP service. The only # native Node module (`rusty-store-kv`) ships as a prebuilt napi-rs # binary, so no node-gyp compile is performed at install time and # strict confinement works cleanly. # - We use `dump` + a manual override-build (rather than the npm plugin) -# because this repo is a pnpm workspace and we pin Node.js 24 manually. +# because this repo is a pnpm workspace and we pin Node.js 26 manually. name: etherpad title: Etherpad summary: Real-time collaborative document editor description: | Etherpad is a highly customizable open-source online editor providing collaborative editing in real-time. This snap bundles Etherpad with a - pinned Node.js 24 runtime. On first launch a default `settings.json` + pinned Node.js 26 (LTS) runtime. On first launch a default `settings.json` is copied into `$SNAP_COMMON/etc` where it can be edited. Pad data is stored in `$SNAP_COMMON/var` and survives snap refreshes. @@ -91,18 +91,28 @@ parts: override-build: | set -eu - # -- 1. Install Node.js 24 from the official tarball. Node 24 is the - # minimum supported runtime (see package.json engines.node). - NODE_VERSION=24.15.0 + # -- 1. Install Node.js 26 (Active LTS) from the official tarball. + # Node 24 is still the minimum supported runtime (package.json + # engines.node); the snap ships the current LTS. When bumping + # NODE_VERSION, update both SHA256 values from + # https://nodejs.org/dist/v${NODE_VERSION}/SHASUMS256.txt + NODE_VERSION=26.13.1 ARCH="$(dpkg --print-architecture)" case "${ARCH}" in - amd64) NODE_ARCH=x64 ;; - arm64) NODE_ARCH=arm64 ;; + amd64) + NODE_ARCH=x64 + NODE_SHA256=5c063e46bab0fbc1c17cc445d7ff129cbdcd0471be6ed83b6ab864f8143bc864 + ;; + arm64) + NODE_ARCH=arm64 + NODE_SHA256=89e1853138db51e8b82d3e98ba9c0d3f2956a28e5e55ea1b7e12d25aae92d5dd + ;; *) echo "Unsupported arch ${ARCH}"; exit 1 ;; esac NODE_TGZ="node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz" curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/${NODE_TGZ}" \ -o "/tmp/${NODE_TGZ}" + echo "${NODE_SHA256} /tmp/${NODE_TGZ}" | sha256sum -c - mkdir -p "${CRAFT_PART_INSTALL}/opt/node" tar -xJf "/tmp/${NODE_TGZ}" -C "${CRAFT_PART_INSTALL}/opt/node" \ --strip-components=1 From c46e5bca2811e065d69014024de476a94aeef11f Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Nov 2026 11:05:05 +0000 Subject: [PATCH 3/4] chore: remove dead buildForWindows.sh and legacy bin/deb-src packaging buildForWindows.sh downloaded Node 22 and would fail the >=24 check. buildDebian.sh and bin/deb-src installed Node 0.10.4 with an upstart job and are superseded by packaging/ (nfpm). Nothing references either. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw --- bin/buildDebian.sh | 44 ------------- bin/buildForWindows.sh | 75 ---------------------- bin/deb-src/DEBIAN/control | 9 --- bin/deb-src/DEBIAN/postinst | 7 -- bin/deb-src/DEBIAN/preinst | 26 -------- bin/deb-src/DEBIAN/prerm | 4 -- bin/deb-src/sysroot/etc/init/etherpad.conf | 28 -------- 7 files changed, 193 deletions(-) delete mode 100755 bin/buildDebian.sh delete mode 100755 bin/buildForWindows.sh delete mode 100644 bin/deb-src/DEBIAN/control delete mode 100755 bin/deb-src/DEBIAN/postinst delete mode 100755 bin/deb-src/DEBIAN/preinst delete mode 100755 bin/deb-src/DEBIAN/prerm delete mode 100644 bin/deb-src/sysroot/etc/init/etherpad.conf diff --git a/bin/buildDebian.sh b/bin/buildDebian.sh deleted file mode 100755 index f1f5675ecfd..00000000000 --- a/bin/buildDebian.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -# IMPORTANT -# Protect against misspelling a var and rm -rf / -set -u -set -e - -SRC=/tmp/etherpad-deb-src -DIST=/tmp/etherpad-deb-dist -SYSROOT=${SRC}/sysroot -DEBIAN=${SRC}/DEBIAN - -rm -rf ${DIST} -mkdir -p ${DIST}/ - -rm -rf ${SRC} -rsync -a bin/deb-src/ ${SRC}/ -mkdir -p ${SYSROOT}/opt/ - -rsync --exclude '.git' -a . ${SYSROOT}/opt/etherpad/ --delete -mkdir -p ${SYSROOT}/usr/share/doc -cp README.md ${SYSROOT}/usr/share/doc/etherpad -find ${SRC}/ -type d -exec chmod 0755 {} \; -find ${SRC}/ -type f -exec chmod go-w {} \; -chown -R root:root ${SRC}/ - -let SIZE=$(du -s ${SYSROOT} | sed s'/\s\+.*//')+8 -pushd ${SYSROOT}/ -tar czf ${DIST}/data.tar.gz [a-z]* -popd -sed s"/SIZE/${SIZE}/" -i ${DEBIAN}/control -pushd ${DEBIAN} -tar czf ${DIST}/control.tar.gz * -popd - -pushd ${DIST}/ -echo 2.0 > ./debian-binary - -find ${DIST}/ -type d -exec chmod 0755 {} \; -find ${DIST}/ -type f -exec chmod go-w {} \; -chown -R root:root ${DIST}/ -ar r ${DIST}/etherpad-1.deb debian-binary control.tar.gz data.tar.gz -popd -rsync -a ${DIST}/etherpad-1.deb ./ diff --git a/bin/buildForWindows.sh b/bin/buildForWindows.sh deleted file mode 100755 index 2eb659ada38..00000000000 --- a/bin/buildForWindows.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh - -set -e - -pecho() { printf %s\\n "$*"; } -log() { pecho "$@"; } -error() { log "ERROR: $@" >&2; } -fatal() { error "$@"; exit 1; } -try() { "$@" || fatal "'$@' failed"; } -is_cmd() { command -v "$@" >/dev/null 2>&1; } - -for x in git unzip wget zip; do - is_cmd "${x}" || fatal "Please install ${x}" -done - -# Move to the folder where Etherpad is checked out -try cd "${0%/*}" -workdir=$(try git rev-parse --show-toplevel) || exit 1 -try cd "${workdir}" -[ -f src/package.json ] || fatal "failed to cd to etherpad root directory" - -# See https://github.com/msys2/MSYS2-packages/issues/1216 -export MSYSTEM=winsymlinks:lnk - -OUTPUT=${workdir}/etherpad-win.zip - -TMP_FOLDER=$(try mktemp -d) || exit 1 -trap 'exit 1' HUP INT TERM -trap 'log "cleaning up..."; try cd / && try rm -rf "${TMP_FOLDER}"' EXIT - -log "create a clean environment in $TMP_FOLDER..." -try export GIT_WORK_TREE=${TMP_FOLDER}; git checkout HEAD -f \ - || fatal "failed to copy etherpad to temporary folder" -try mkdir "${TMP_FOLDER}"/.git -try git rev-parse HEAD >${TMP_FOLDER}/.git/HEAD -# Disable symlinks to avoid problems with Windows -#try pnpm i "${TMP_FOLDER}"/src/node_modules - -try cd "${TMP_FOLDER}" -[ -f src/package.json ] || fatal "failed to copy etherpad to temporary folder" - -# setting NODE_ENV=production ensures that dev dependencies are not installed, -# making the windows package smaller -export NODE_ENV=development - -rm -rf node_modules || true -rm -rf src/node_modules || true - -#log "do a normal unix install first..." -#$(try cd ./bin/installDeps.sh) - -# Install admin frontend -try pnpm install -try pnpm run build:etherpad - -# Nuke the admin folder as it is not needed anymore :D -rm -rf admin -rm -rf oidc -rm -rf src/node_modules - -log "copy the windows settings template..." -try cp settings.json.template settings.json - -#log "resolve symbolic links..." -#try cp -rL node_modules node_modules_resolved -#try rm -rf node_modules -#try mv node_modules_resolved node_modules - -log "download windows node..." -try wget "https://nodejs.org/dist/latest-v22.x/win-x64/node.exe" -O node.exe - -log "create the zip..." -try zip -9 -r "${OUTPUT}" ./* - -log "Finished. You can find the zip at ${OUTPUT}" diff --git a/bin/deb-src/DEBIAN/control b/bin/deb-src/DEBIAN/control deleted file mode 100644 index a516dc6d400..00000000000 --- a/bin/deb-src/DEBIAN/control +++ /dev/null @@ -1,9 +0,0 @@ -Package: etherpad -Version: 1.3 -Section: base -Priority: optional -Architecture: i386 -Installed-Size: SIZE -Depends: -Maintainer: John McLear -Description: Etherpad is a collaborative editor. diff --git a/bin/deb-src/DEBIAN/postinst b/bin/deb-src/DEBIAN/postinst deleted file mode 100755 index 2f483f7e233..00000000000 --- a/bin/deb-src/DEBIAN/postinst +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# Start the services! - -service etherpad start -echo "Give Etherpad about 3 minutes to install dependencies then visit http://localhost:9001 in your web browser" -echo "To stop etherpad type 'service etherpad stop', To restart type 'service etherpad restart'". -rm -f /tmp/etherpad.log /tmp/etherpad.err diff --git a/bin/deb-src/DEBIAN/preinst b/bin/deb-src/DEBIAN/preinst deleted file mode 100755 index e5b5e0b7472..00000000000 --- a/bin/deb-src/DEBIAN/preinst +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Installs node if it isn't already installed -# -# Don't steamroll over a previously installed node version -# TODO provide a local version of node? - -VER="0.10.4" -ARCH="x86" -if [ `arch | grep 64` ] -then - ARCH="x64" -fi - -# TODO test version -if [ ! -f /usr/local/bin/node ] -then - pushd /tmp - wget -c "http://nodejs.org/dist/v${VER}/node-v${VER}-linux-${ARCH}.tar.gz" - rm -rf /tmp/node-v${VER}-linux-${ARCH} - tar xf node-v${VER}-linux-${ARCH}.tar.gz -C /tmp/ - cp -a /tmp/node-v${VER}-linux-${ARCH}/* /usr/local/ -fi - -# Create Etherpad user -adduser --system etherpad diff --git a/bin/deb-src/DEBIAN/prerm b/bin/deb-src/DEBIAN/prerm deleted file mode 100755 index 5e3d0f8a09f..00000000000 --- a/bin/deb-src/DEBIAN/prerm +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# Stop the appserver: -service etherpad stop || true diff --git a/bin/deb-src/sysroot/etc/init/etherpad.conf b/bin/deb-src/sysroot/etc/init/etherpad.conf deleted file mode 100644 index ea8349d1016..00000000000 --- a/bin/deb-src/sysroot/etc/init/etherpad.conf +++ /dev/null @@ -1,28 +0,0 @@ -description "etherpad" - -start on started networking -stop on runlevel [!2345] - -env EPHOME=/opt/etherpad -env EPLOGS=/var/log/etherpad -env EPUSER=etherpad - -respawn - -pre-start script - cd $EPHOME - mkdir $EPLOGS ||true - chown $EPUSER $EPLOGS ||true - chmod 0755 $EPLOGS ||true - chown -R $EPUSER $EPHOME/var ||true - $EPHOME/bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; } -end script - -script - cd $EPHOME/ - exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node --import tsx src/node/server.ts \ - >> $EPLOGS/access.log \ - 2>> $EPLOGS/error.log - echo "Etherpad is running on http://localhost:9001 - To change settings edit /opt/etherpad/settings.json" - -end script From 6fec242d7335def927697a2224e905b0de2d8c20 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Nov 2026 11:05:05 +0000 Subject: [PATCH 4/4] docs: recommend Node 26 LTS, keep >=24 as the floor Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw --- AGENTS.MD | 2 +- README.md | 6 +++--- doc/faq.md | 2 +- packaging/README.md | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AGENTS.MD b/AGENTS.MD index d1c99bc8903..d15670fe7c2 100644 --- a/AGENTS.MD +++ b/AGENTS.MD @@ -6,7 +6,7 @@ Welcome to the Etherpad project. This guide provides essential context and instr Etherpad is a real-time collaborative editor designed to be lightweight, scalable, and highly extensible via plugins. ## Technical Stack -- **Runtime:** Node.js >= 22.12.0 +- **Runtime:** Node.js >= 24 (26 LTS recommended; CI tests 24 and 26) - **Package Manager:** pnpm (>= 11.0.0) - **Languages:** TypeScript (primary for new code), JavaScript (legacy), CSS, HTML - **Backend:** Express.js 5, Socket.io 4 diff --git a/README.md b/README.md index 200790dfc7b..a89bf29123e 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ For more than a decade, Etherpad has quietly underpinned the documents that matt ### Quick install (one-liner) -The fastest way to get Etherpad running. Requires `git` and Node.js >= 24. +The fastest way to get Etherpad running. Requires `git` and Node.js >= 24 (26 LTS recommended). **macOS / Linux / WSL:** @@ -158,11 +158,11 @@ volumes: ### Requirements -[Node.js](https://nodejs.org/) >= 24. +[Node.js](https://nodejs.org/) >= 24. Node.js 26 (current LTS) is recommended. CI tests 24 and 26. ### Windows, macOS, Linux -1. Download the latest Node.js runtime from [nodejs.org](https://nodejs.org/). +1. Download the latest Node.js LTS runtime (26) from [nodejs.org](https://nodejs.org/). 2. Install pnpm: `npm install -g pnpm` (Administrator privileges may be required). 3. Clone the repository: `git clone -b master` 4. Run `pnpm i` diff --git a/doc/faq.md b/doc/faq.md index e10817bd8ce..0a7ef23e72f 100644 --- a/doc/faq.md +++ b/doc/faq.md @@ -58,7 +58,7 @@ repository to satisfy that dependency. ### From source -Etherpad requires [Node.js](https://nodejs.org/) >= 24 and `pnpm`. +Etherpad requires [Node.js](https://nodejs.org/) >= 24 (26 LTS recommended) and `pnpm`. ```bash git clone -b master https://github.com/ether/etherpad diff --git a/packaging/README.md b/packaging/README.md index c5e2d000c49..7211ac2ff5d 100644 --- a/packaging/README.md +++ b/packaging/README.md @@ -19,7 +19,7 @@ Built artefacts land in `./dist/`. ## Building locally -Prereqs: Node 24 (current LTS; matches `engines.node` floor), pnpm 12+, nfpm. +Prereqs: Node 26 (current LTS; the `engines.node` floor is 24), pnpm 12+, nfpm. ```sh pnpm install --frozen-lockfile @@ -85,13 +85,13 @@ curl http://localhost:9001/health `apt` will pull in `nodejs (>= 24)` (matches Etherpad's `engines.node`). If your distro's repos still ship a pre-Node-24 `nodejs` package, add -NodeSource's `node_24.x` apt repo before `apt install`: +NodeSource's `node_26.x` apt repo (current LTS) before `apt install`: ```sh KEYRING=/usr/share/keyrings/nodesource.gpg curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ | sudo gpg --dearmor --yes -o "${KEYRING}" -echo "deb [signed-by=${KEYRING}] https://deb.nodesource.com/node_24.x nodistro main" \ +echo "deb [signed-by=${KEYRING}] https://deb.nodesource.com/node_26.x nodistro main" \ | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt-get update ```