chore(runtime): WordPress PHP 8.5 + Node.js 24.22.1 baseline (BIT-31729) #56

Merged
spark merged 1 commits from chore/BIT-31729-runtime-php84-node24 into main 2026-10-23 19:01:56 +01:00
Owner

Summary

  • Bump WordPress Docker images from wordpress:6-php8.3-fpm → wordpress:6-php8.5-fpm (both wordpress and wordpress-andebol).
  • Pin Node.js 24.22.1 across .nvmrc (repo + packages), package.json engines, @types/node ^24, Gitea CI (.gitea/workflows/test.yml), and legacy .github/workflows/nodejs-ci.yml.
  • Update deploy/lxc/setup.sh to NodeSource setup_24.x; sync docs (deployment.md, bridge.md, wordpress/README.md).
  • Audited TS (frontend/bridge/writer-pipeline) and repo PHP surface: no custom themes/plugins in-tree; no info.php/test.php probes; no native C++ addons requiring rebuild beyond Astro’s optional sharp transitive dep (install/build OK on Node 24.22.1).

Verification (this agent)

NODE=v24.22.1
writer-pipeline: 79 pass
bridge: 62 pass
frontend lib: 47 pass
bridge+writer typecheck OK
frontend `astro build` OK
docker: wordpress:6-php8.5-fpm → PHP 8.5.6

Host / CT binary update (human — do not SSH from agents)

Target CT: news-project-test (/opt/news-platform).

1. Host Node (PM2 Astro + bridge + writer-pipeline):

# as root on the CT
node -v   # expect old 18/20/22
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
apt-get install -y nodejs
node -v   # expect v24.22.x (Active LTS; pin/verify 24.22.1 if NodeSource lags)
which node  # typically /usr/bin/node
cd /opt/news-platform/bridge && npm ci && npm run build
cd /opt/news-platform/frontend && npm ci && npm run build
cd /opt/news-platform/writer-pipeline && npm ci && npm run build
pm2 restart all   # or restart astro-frontend + fastify-bridge (+ writer units)

2. WordPress PHP (Docker only — no host PHP-FPM):

cd /opt/news-platform/wordpress
git pull   # after merge
docker compose pull wordpress wordpress-andebol
docker compose up -d --force-recreate wordpress wordpress-andebol
docker compose exec wordpress php -v          # expect PHP 8.5.x
docker compose exec wordpress-andebol php -v

Note: Official Hub tag wordpress:6-php8.5-fpm currently embeds PHP 8.5.6 (not 8.5.12). Re-pull when Docker Library publishes a newer patch; do not run host PHP for WP.

Merge policy

Do not merge without explicit confirmation from Peter (Ordem do Peter / R3 on this issue). CI must be green first.

## Summary - Bump WordPress Docker images from `wordpress:6-php8.3-fpm` → **`wordpress:6-php8.5-fpm`** (both `wordpress` and `wordpress-andebol`). - Pin **Node.js 24.22.1** across `.nvmrc` (repo + packages), `package.json` `engines`, `@types/node` ^24, Gitea CI (`.gitea/workflows/test.yml`), and legacy `.github/workflows/nodejs-ci.yml`. - Update `deploy/lxc/setup.sh` to NodeSource **setup_24.x**; sync docs (`deployment.md`, `bridge.md`, `wordpress/README.md`). - Audited TS (frontend/bridge/writer-pipeline) and repo PHP surface: no custom themes/plugins in-tree; no `info.php`/`test.php` probes; no native C++ addons requiring rebuild beyond Astro’s optional `sharp` transitive dep (install/build OK on Node 24.22.1). ## Verification (this agent) ``` NODE=v24.22.1 writer-pipeline: 79 pass bridge: 62 pass frontend lib: 47 pass bridge+writer typecheck OK frontend `astro build` OK docker: wordpress:6-php8.5-fpm → PHP 8.5.6 ``` ## Host / CT binary update (human — do not SSH from agents) Target CT: **news-project-test** (`/opt/news-platform`). **1. Host Node (PM2 Astro + bridge + writer-pipeline):** ```bash # as root on the CT node -v # expect old 18/20/22 curl -fsSL https://deb.nodesource.com/setup_24.x | bash - apt-get install -y nodejs node -v # expect v24.22.x (Active LTS; pin/verify 24.22.1 if NodeSource lags) which node # typically /usr/bin/node cd /opt/news-platform/bridge && npm ci && npm run build cd /opt/news-platform/frontend && npm ci && npm run build cd /opt/news-platform/writer-pipeline && npm ci && npm run build pm2 restart all # or restart astro-frontend + fastify-bridge (+ writer units) ``` **2. WordPress PHP (Docker only — no host PHP-FPM):** ```bash cd /opt/news-platform/wordpress git pull # after merge docker compose pull wordpress wordpress-andebol docker compose up -d --force-recreate wordpress wordpress-andebol docker compose exec wordpress php -v # expect PHP 8.5.x docker compose exec wordpress-andebol php -v ``` **Note:** Official Hub tag `wordpress:6-php8.5-fpm` currently embeds **PHP 8.5.6** (not 8.5.12). Re-pull when Docker Library publishes a newer patch; do not run host PHP for WP. ## Merge policy **Do not merge without explicit confirmation from Peter** (Ordem do Peter / R3 on this issue). CI must be green first.
spark added 1 commit 2026-10-23 18:52:33 +01:00
chore(runtime): WordPress PHP 8.5 + Node.js 24.22.1 baseline (BIT-31729)
Tests / bridge tests (push) Successful in 39s
Tests / writer-pipeline tests (push) Successful in 42s
Tests / writer-pipeline tests (pull_request) Successful in 45s
Tests / frontend lib tests (push) Successful in 55s
Tests / bridge tests (pull_request) Successful in 35s
Tests / frontend lib tests (pull_request) Successful in 47s
e723e3ee5b
Align docker-compose, engines, nvmrc, and CI with the company runtime baseline.
Official wordpress:6-php8.5-fpm ships PHP 8.5.6 today; host Node must move to 24.22.1 Active LTS.

Paperclip-Issue: BIT-31729
Paperclip-Run: 8b5ae44d-b3e7-430e-871e-d5fcb1bd9fb1
CODEOWNERS rules requested review from founding-engineer 2026-10-23 18:52:33 +01:00
paperclip-review-bot left a comment
Member

auto-approve: CI success on e723e3ee5b (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on e723e3ee5bb7 (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success on e723e3ee5b (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on e723e3ee5bb7 (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success on e723e3ee5b (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on e723e3ee5bb7 (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-10-23 19:01:54 +01:00
spark merged commit ccb6552746 into main 2026-10-23 19:01:56 +01:00
Sign in to join this conversation.