Repository navigation
[3864 by Claude Opus 5.5] Move server and app images to Node 24 (Active LTS; @fly/sprites requires >=24) - #3866
Conversation
The server and service images now run on Node 24, and `.nvmrc` is `24`. I couldn't run any of the acceptance checks here: this container has no Docker, so `images:smoke`, `images:smoke:sqlite-startup` and the app-image build (where the `EBADENGINE` warning would show) still need to run. The full CI suite, the two live Fly smoke runs (Sprites and Fly Machines) and the run links for the PR also need to be done from CI. Changes - Dockerfiles: every `node:22-*` stage moved to the same variant on 24 (`node:24-alpine` / `node:24-slim`) in `docker/Dockerfile.app.prod` (3 stages), `docker/Dockerfile.launcher`, `docker/Dockerfile.node`, `propr-ui/Dockerfile` and `docs/Dockerfile`. I also moved `packages/api/Dockerfile.prod`, which the issue doesn't list: it's another server image, and `test/dockerNodeVersion.test.mjs` checks it alongside the others. - Pin test: `test/dockerNodeVersion.test.mjs` now requires 24 in every stage of those images. - Workflows: jobs that read `.nvmrc` (Validate Changes, `docker-images.yml`, `release-rollout.yml`, and others) now run on 24. The only workflow jobs that hard-code 22 test the CLI's Node 22 support, so I left them alone: the three in `pr-build-check.yml` (Darwin, Windows, Connect discovery) and the one in `preview-cli-bundle.yml`. The `[22, 24]` matrices in `cli-node-compatibility.yml` and `pr-build-check.yml` are unchanged. - Kept as they were: all `engines.node` ranges, `Dockerfile.agent`, the Sprite setup script and the desktop app. The CLI's range was already `>=22`, not the `>=22.12.0` the issue mentions, so I didn't touch it. - Docs and changelog: the Fly Sprites section of `docs/docs/architecture/agent-runtime.md` now says the worker runs on Node 24, which is what `@fly/sprites` requires. There's a new entry under Unreleased → Changed in `CHANGELOG.md`. Native modules, checked locally on Node v24.22.3 (glibc) - `better-sqlite3` 13.0.3: it has no install script and ships its prebuilt binaries inside the npm package, including `linuxmusl-x64` and `linuxmusl-arm64` for Alpine. They're built against Node's stable native API, so they don't depend on the Node version. It loaded on Node 24 and opened a database. I checked the musl binaries by inspecting them, not by running them on Alpine. - `@fly/sprites`: the CI smoke-test command passes on Node 24. - `ssh2` loads. `cpu-features` fails to load because the copy in this checkout was compiled for Node 22, and `ssh2` still loads without it, so the fallback is clean. The image runs `npm ci` on Node 24, so it builds `cpu-features` there. The changed pin test and two CI-classification test files (114 tests) pass on Node 24. There's nothing visual in this change, so I didn't make previews. ProPR-Agent: claude/claude-opus-5-5
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 8ef66c9 Summary of ChangesI fixed the Shard 4/4 failure. The tests that failed now pass on Node 24, the version CI uses after this PR's Cause: Fix: I dropped the
Results on Node 24.22.3, the same version as CI:
I only reran these suites, not the full sharded CI suite. Review digestRisk-tiered paths
Diff size: 6 files changed, +7/−7 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
I fixed the Shard 4/4 failure. The tests that failed now pass on Node 24, the version CI uses after this PR's `.nvmrc` change.
**Cause:** `test/dockerExecutorWatchdog.test.ts` crashed while loading, with `Cannot create mock because named exports cannot be applied to the provided default export.` Node 24's module mocking won't accept a class as the default export of a CommonJS package. It needs a plain object there before it can attach named exports. The test mocked `ioredis` with `namedExports: { Redis: FakeRedis, default: FakeRedis }`, which Node 22 accepted. Five other test suites used the same mock and failed the same way on Node 24. They didn't show up in this CI run only because shards 1–3 were cancelled.
**Fix:** I dropped the `default` entry so only the named `Redis` export is mocked, which is what most of the other `ioredis` mocks in the repo already do. The code under test only uses the named `Redis` export (`import { Redis } from 'ioredis'`, and bullmq calls `require("ioredis")`), so nothing needed the default. I made this one-line change in each of these files:
- `test/dockerExecutorWatchdog.test.ts`
- `test/dockerExecutorLiveOutput.test.ts`
- `test/dockerExecutorEnvironment.test.ts`
- `test/claudeExtensionEnvironment.test.ts`
- `test/liveAgentSessionOverflow.test.ts`
- `packages/core/test/managedDiagnostics.test.ts` (two places)
**Results on Node 24.22.3, the same version as CI:**
- **Before the fix:** all six suites failed.
- **After the fix:** they pass (14, 8, 5, 1 and 2 tests, plus 33/33 in `managedDiagnostics`).
- **Flaky case:** the first full run of `managedDiagnostics` had one failure: "credential cache evicts…" stopped after 10.6s. It passed when run alone and in a full-file rerun, so it looks like timing under load rather than this change.
- **Node 22:** four of the five `test/` suites still pass; I didn't rerun `managedDiagnostics` there.
- **Node 22 failure that isn't from this fix:** `claudeExtensionEnvironment` fails on Node 22 in this container with `table system_configs already exists`. It fails the same way with the unmodified file.
I only reran these suites, not the full sharded CI suite.
PR: #3866
Comment by: @propr-dev[bot] (ID: 7230539592)
Model: Claude Opus 5.5
ProPR-Agent: claude/claude-opus-5-5
|
CI failed: Full Test Suite Shard 3/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 23940ca Summary of ChangesBoth CI failures in Full Test Suite Shard 3/4 were caused by the switch to Node 24. CI's test jobs read
I ran only these two files, not the full shard. Shard 3/4 will be confirmed by the next CI run. Review digestRisk-tiered paths
Diff size: 2 files changed, +8/−4 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Both CI failures in Full Test Suite Shard 3/4 were caused by the switch to Node 24. CI's test jobs read `.nvmrc`, which this PR moved to 24, and Node 24's test runner behaves differently in two ways. The app code was fine, and neither failure was a flake. I changed two test files, and both tests now pass on Node 22.23.4 and on a downloaded Node 24.22.3. 1. **`test/nodeTestProof.test.mjs` (cancelled tests and per-test timeouts).** - **Cause:** the fixture `scripts/lib/fixtures/nodeTestProof/cancelled.mjs` got its "cancelled" case from a parent test that never awaited its subtest. Node 24 now waits for that subtest itself, so it passed and the expected `cancelled` result disappeared. - **Fix:** the subtest now runs inside the test that goes over its own 20 ms timeout, and the timeout cancels it. Node 22 and 24 now report the same thing: the subtest as `cancelledByParent` and the parent as `testTimeoutFailure`. The test's assertions didn't change. 2. **`packages/api/test/previewMediaProjection.test.ts` (consumers exit without opening a global database).** - **Cause:** this test starts a child test process and checks its output for the TAP line `ok N - generic task lists exclude native goal backing tasks`. Node 24 prints its spec format (`✔ …`) even when the output goes to a pipe, so the match failed. - **Fix:** the child is now started with `--test-reporter=tap`. No other test matches TAP output this way. I ran only these two files, not the full shard. Shard 3/4 will be confirmed by the next CI run. PR: #3866 Comment by: @propr-dev[bot] (ID: 7231040305) Model: Claude Opus 5.5 ProPR-Agent: claude/claude-opus-5-5
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR consistently moves server and service images to Node 24, with focused test adjustments for the new runtime. No code blocker is demonstrated, but image-level verification remains a material gap before declaring it merge-ready. ✅ Consistent runtime migration — All changed Dockerfile stages use Node 24 while preserving their Alpine or slim variants; ✅ Compatibility coverage retained — The explicit Node 22/24 CLI matrix remains intact, and current-head checks report successful CLI compatibility and full-suite runs. ✅ Test intent preserved — The cancellation fixture still exercises both timeout and child cancellation classifications. Explicit TAP output preserves the subprocess assertion without weakening it. This assessment uses the supplied diff and context; no commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Supply image acceptance evidenceAttach current-head results for the app-image build, ScoreThe changes are focused and consistent, with no verified regression and no current-head check failures. Missing image and live-runtime acceptance evidence prevents an unconditional merge-ready assessment. Score: 7/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
|
…merge) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Image and live acceptance evidence for head 23940ca (informational, no code changes requested). Images built locally from this head with
|
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryThanks for the evidence. I made no code changes, because you said none were needed. The branch head is still Your runs close the checks I couldn't do here, since this container has no Docker:
Two checks from the original list aren't in this evidence:
Nothing about this change is visual, so I didn't make any previews. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR consistently moves server and service images to Node 24 while retaining Node 22 CLI compatibility. The changes are focused, and no code blocker is evident from the supplied diff. One material verification gap remains before calling it merge-ready: the original objective identifies live smoke runs for both Fly Machines and Sprites, but the supplied acceptance evidence covers only Fly Machines. ✅ Consistent image migration — Every changed Node base-image stage moves to 24 while preserving its Alpine or slim variant. ✅ Focused test adaptations — Explicit TAP output preserves the subprocess assertion, and the revised cancellation fixture retains both cancellation and timeout coverage expected by its consumer. ✅ Substantial validation evidence — Current-head checks report 24 passes and no failures. The authorized follow-up reports successful image smoke tests, SQLite startup checks, native-module loading, and a live Fly Machines run for head This review is based on the supplied code and evidence; no commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Complete Sprites acceptance evidenceProvide the live Sprites smoke result and run link for the reviewed head. The original objective identifies this validation separately from Fly Machines, and the supplied SDK constructor smoke does not demonstrate a live Sprites session. This is an outstanding verification follow-up, not a demonstrated code defect or a request for additional implementation. ScoreThe implementation is focused and supported by passing checks and substantial image validation. The missing live Sprites acceptance evidence leaves a material verification gap, despite no verified code blocker. Score: 7/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Sprites acceptance for head 23940ca (informational, no code changes requested): Claude × Sprites ✅ 46121403773, built from this checkout on Node 24. Together with Claude × Fly Machines ✅ 46117352181 and the local |
|
/ultrafix goal=8 max=10 |
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryI didn't change any code. You flagged this update as informational, and nothing in it asks for edits. Here's where acceptance for head
These cover the acceptance checks I couldn't run in my container because it has no Docker: the image smoke tests, the app-image build, and both live Fly smoke runs. Your direct check also shows There are no previews, since nothing visual changed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within scope. The PR consistently moves server and service images to Node 24, updates the shared CI runtime, and makes focused test compatibility adjustments. ✅ Consistent runtime upgrade — All changed Docker stages use Node 24 while retaining their Alpine or slim variants. CLI Node 22/24 compatibility coverage remains intact. ✅ Preserved test intent — The cancellation fixture still exercises cancellation and timeout classification. Explicit TAP output preserves the subprocess assertion, and the Redis mocks retain the named export used by the supplied consumer. ✅ Acceptance evidence supplied — Current checks show 24 passed and no failures. Authorized follow-ups report image startup, SQLite startup, and both live runtime smoke tests passing for head This assessment is based on the supplied diff and context; no commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe changes satisfy the effective objective with focused scope and supporting acceptance evidence. No PR-introduced regression or merge blocker was identified. 🤖 Review Details
🤖 Review by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryThe merge had one conflict, in What the conflict was: Both branches added a new entry at the top of the
How I resolved it: I kept all four entries word for word and put this PR's #3864 entry first, followed by #3844, #3842 and #3841. Each entry is separated by a blank line, as elsewhere in the file, and the existing entries below them (the Mistral Vibe upgrade and #3752) are unchanged. Why: The entries describe separate changes, the Node 24 image move and the OpenCode/Vibe extension support, so the right fix was to keep both sides rather than choose one. The section lists entries newest-first by PR number, and #3864 is the highest, so it goes at the top. The markdown structure is intact and 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - CHANGELOG.md PR: #3866 Model: Claude Opus 5.5
I fixed the failing check. It wasn't a test failure: all 141 native durability tests passed in CI (`ℹ fail 0`). The script that checks the test inventory couldn't read the output and reported `executed=0` for every suite and `-1` for the totals, so it failed the step. **Cause:** the latest commit on the branch (#3866) changed `.nvmrc` to Node 24, and this desktop job reads its Node version from that file. `apps/desktop/scripts/run-native-durability.mjs` checks the inventory by looking for TAP lines like `# Subtest: …`, `1..N` and `# tests N`. Up to Node 22, `node --test` writes TAP when its output goes to a pipe. From Node 23 on it writes its human-readable "spec" format instead, so none of those lines were there to find. **Fix:** - `apps/desktop/scripts/run-native-durability.mjs`: the script now runs the tests with `--test-reporter=tap`, so they produce TAP on any Node version. I added a comment explaining why. - `apps/desktop/scripts/run-native-durability.test.mjs`: this test checks the exact command the script runs, so I added the new flag there. **Verified locally:** - On Node 24, the full native durability run exits 0 with every count matched: credential-service 87/87, profile-store 33/33, crash-recovery 4/4, pairing-shutdown 10/10, pairing-browser 7/7, and 141 executed and passed with 0 failed, cancelled or skipped. - The script's own 19 tests pass on both Node 22 and Node 24. Nothing in this change is visible to a user, so there are no previews. PR: #3774 Comment by: @propr-dev[bot] (ID: 7238223627) Model: Claude Opus 5.5 ProPR-Agent: claude/claude-opus-5-5
AI Implementation Summary
Closes #3864
Branch:
3864/claude-opus-5-5-move-server-and-app-image-20261127-2332-7jyCommits: ✅ Changes committed (1e3c583)
AI Processing Completed
Execution Details:
Summary:
The server and service images now run on Node 24, and
.nvmrcis24. I couldn't run any of the acceptance checks here: this container has no Docker, soimages:smoke,images:smoke:sqlite-startupand the app-image build (where theEBADENGINEwarning would show) still need to run. The full CI suite, the two live Fly smoke runs (Sprites and Fly Machines) and the run links for the PR also need to be done from CI.Changes
node:22-*stage moved to the same variant on 24 (node:24-alpine/node:24-slim) indocker/Dockerfile.app.prod(3 stages),docker/Dockerfile.launcher,docker/Dockerfile.node,propr-ui/Dockerfileanddocs/Dockerfile. I also movedpackages/api/Dockerfile.prod, which the issue doesn't list: it's another server image, andtest/dockerNodeVersion.test.mjschecks it alongside the others.test/dockerNodeVersion.test.mjsnow requires 24 in every stage of those images..nvmrc(Validate Changes,docker-images.yml,release-rollout.yml, and others) now run on 24. The only workflow jobs that hard-code 22 test the CLI's Node 22 support, so I left them alone: the three inpr-build-check.yml(Darwin, Windows, Connect discovery) and the one inpreview-cli-bundle.yml. The[22, 24]matrices incli-node-compatibility.ymlandpr-build-check.ymlare unchanged.engines.noderanges,Dockerfile.agent, the Sprite setup script and the desktop app. The CLI's range was already>=22, not the>=22.12.0the issue mentions, so I didn't touch it.docs/docs/architecture/agent-runtime.mdnow says the worker runs on Node 24, which is what@fly/spritesrequires. There's a new entry under Unreleased → Changed inCHANGELOG.md.Native modules, checked locally on Node v24.22.3 (glibc)
better-sqlite313.0.3: it has no install script and ships its prebuilt binaries inside the npm package, includinglinuxmusl-x64andlinuxmusl-arm64for Alpine. They're built against Node's stable native API, so they don't depend on the Node version. It loaded on Node 24 and opened a database. I checked the musl binaries by inspecting them, not by running them on Alpine.@fly/sprites: the CI smoke-test command passes on Node 24.ssh2loads.cpu-featuresfails to load because the copy in this checkout was compiled for Node 22, andssh2still loads without it, so the fallback is clean. The image runsnpm cion Node 24, so it buildscpu-featuresthere.The changed pin test and two CI-classification test files (114 tests) pass on Node 24. There's nothing visual in this change, so I didn't make previews.
Review digest
Risk-tiered paths
.nvmrc(+1/−1)docker/Dockerfile.app.prod(+3/−3)docker/Dockerfile.launcher(+1/−1)docker/Dockerfile.node(+1/−1)packages/api/Dockerfile.prod(+2/−2)propr-ui/Dockerfile(+2/−2)CHANGELOG.md(+11/−0)docs/Dockerfile(+2/−2)docs/docs/architecture/agent-runtime.md(+1/−1)test/dockerNodeVersion.test.mjs(+2/−2)Diff size: 10 files changed, +26/−15 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3864.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!