Node 22 everywhere: engines, README, drop the Node 20 job #88
No files matched your search
+3
-19
@@ -23,8 +23,8 @@ concurrency:
|
|||||||
|
|
||||||
# Node comes from each job's container image, not actions/setup-node: the runner
|
# Node comes from each job's container image, not actions/setup-node: the runner
|
||||||
# shares one tool cache volume between concurrent jobs, and parallel setup-node
|
# shares one tool cache volume between concurrent jobs, and parallel setup-node
|
||||||
# runs overwrote each other's Node install mid-job. Node 22 is the target for production
|
# runs overwrote each other's Node install mid-job. Node 22 matches production
|
||||||
# (CT 122) and the worker (CT 153); Test (Node 20) covers them until they move (#45).
|
# (CT 122) and the worker (CT 153), both on NodeSource's node_22.x since 2026-11-23.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@@ -63,22 +63,6 @@ jobs:
|
|||||||
- name: Run jest with coverage
|
- name: Run jest with coverage
|
||||||
run: npm test -- --ci
|
run: npm test -- --ci
|
||||||
|
|
||||||
# The unit tests on Node 20 as well, while production (CT 122, CT 153) still runs it
|
|
||||||
# during the move to Node 22 (#45). Not a required check. Remove once both hosts are on 22.
|
|
||||||
test-node20:
|
|
||||||
name: Test (Node 20)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 20
|
|
||||||
container: node:20-bookworm@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
||||||
with:
|
|
||||||
persist-credentials: false # no job pushes; keep the token out of .git/config
|
|
||||||
- name: Install dependencies (lockfile only)
|
|
||||||
run: npm ci
|
|
||||||
- name: Run jest
|
|
||||||
run: npx jest --ci
|
|
||||||
|
|
||||||
audit:
|
audit:
|
||||||
name: Security (npm audit)
|
name: Security (npm audit)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -120,7 +104,7 @@ jobs:
|
|||||||
name: Integration (api)
|
name: Integration (api)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 25
|
timeout-minutes: 25
|
||||||
container: node:22-bookworm@sha256:e13726ca604184d7a91fcacab1fc09eefd642dc28e79ac34e85540dd93b78cfb # the server and workers on Node 22, production's target
|
container: node:22-bookworm@sha256:e13726ca604184d7a91fcacab1fc09eefd642dc28e79ac34e85540dd93b78cfb # the server and workers on production's Node
|
||||||
env:
|
env:
|
||||||
DB_HOST: 127.0.0.1
|
DB_HOST: 127.0.0.1
|
||||||
DB_PORT: '3306'
|
DB_PORT: '3306'
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ The central orchestration hub that:
|
|||||||
- Stores all data in MariaDB database
|
- Stores all data in MariaDB database
|
||||||
|
|
||||||
**Technology Stack:**
|
**Technology Stack:**
|
||||||
- Node.js 20.x
|
- Node.js 22.x
|
||||||
- Express.js (web framework)
|
- Express.js (web framework)
|
||||||
- WebSocket (ws package) for real-time bidirectional communication
|
- WebSocket (ws package) for real-time bidirectional communication
|
||||||
- MySQL2 (MariaDB driver)
|
- MySQL2 (MariaDB driver)
|
||||||
@@ -185,7 +185,7 @@ Lightweight execution agents that:
|
|||||||
- Automatically reconnect on connection loss
|
- Automatically reconnect on connection loss
|
||||||
|
|
||||||
**Technology Stack:**
|
**Technology Stack:**
|
||||||
- Node.js 20.x
|
- Node.js 22.x
|
||||||
- WebSocket client
|
- WebSocket client
|
||||||
- Child process execution
|
- Child process execution
|
||||||
- System metrics collection
|
- System metrics collection
|
||||||
@@ -213,7 +213,7 @@ Lightweight execution agents that:
|
|||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- **Node.js 20.x** or higher
|
- **Node.js 22.x** or higher
|
||||||
- **MariaDB 10.x** or higher
|
- **MariaDB 10.x** or higher
|
||||||
- **Authelia** configured for SSO (optional but recommended)
|
- **Authelia** configured for SSO (optional but recommended)
|
||||||
- **Network Connectivity** between server and workers
|
- **Network Connectivity** between server and workers
|
||||||
@@ -732,10 +732,15 @@ Both Pulse hooks (`pulse-deploy` on CT 122 and `pulse-worker-deploy` on CT 153)
|
|||||||
from the CI runner, 10.10.10.70, as well as requiring the signature. If the runner's address changes,
|
from the CI runner, 10.10.10.70, as well as requiring the signature. If the runner's address changes,
|
||||||
deploys fail in CI (the verify step times out) until the `ip-range` is updated on both hosts.
|
deploys fail in CI (the verify step times out) until the `ip-range` is updated on both hosts.
|
||||||
|
|
||||||
To add a worker host, install Node 20 and the worker as above, give it a `.env` with `WORKER_NAME`,
|
To add a worker host, install Node 22 and the worker as above, give it a `.env` with `WORKER_NAME`,
|
||||||
`PULSE_SERVER`, `PULSE_WS` and `WORKER_API_KEY`, and add its hook (one hook URL per host in the
|
`PULSE_SERVER`, `PULSE_WS` and `WORKER_API_KEY`, and add its hook (one hook URL per host in the
|
||||||
`Deploy worker` job).
|
`Deploy worker` job).
|
||||||
|
|
||||||
|
Production installs Node from NodeSource's `node_22.x` apt repository. On Debian 13, use
|
||||||
|
NodeSource's current signing key (`https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key`,
|
||||||
|
dearmored to `/usr/share/keyrings/nodesource.gpg`): copies from before January 2026 bind the
|
||||||
|
key with SHA-1, which Debian 13 rejects, so `apt-get update` reports the repository as unsigned.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**PULSE** - Orchestrating your infrastructure, one heartbeat at a time. ⚡
|
**PULSE** - Orchestrating your infrastructure, one heartbeat at a time. ⚡
|
||||||
|
|||||||
Generated
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
"jest": "^30.5.2"
|
"jest": "^30.5.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=22"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=22"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js",
|
"start": "node server.js",
|
||||||
|
|||||||
Reference in new issue
Block a user