Repository navigation
chore(executor): run the executor-service image on Node 24 (stage 2 of #500) - #504
Conversation
Stage 2 of the Node 24 transition (#500), after stage 1 (#503). Node 20 reached end of life on 2026-04-30. packages/executor-service/Dockerfile: the base image moves from node:20-alpine to node:24-alpine, and the comment beside it follows. The service has no npm dependencies, so nothing else in the image changes. .github/workflows/ci.yml: the executor image job now checks, inside the built image, what the service depends on and what a change of the base image could move. The validator containers run as --user=1000:1000 and the service writes into /workspace-tmp as the image's own non-root user. So the job requires that the node user is at uid 1000 and gid 1000, that the service process runs as that user, that /workspace-tmp accepts its write, and that docker-cli is present. It also prints the Node version of the image. A merge publishes a release and recreates the three release services. The app and the dashboard keep their Node 20 images until their own stages. Signed-off-by: Alajmah <55954113+Alajmah@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🤖 AI Code Review — ✅ Approved
Confidence: high · Findings: 2
AI judgment: APPROVE · Evidence: COMPLETE · Authority: advisory
Evidence complete · 2/2 changed files accounted for
Other findings (2)
- [medium] Node 20 → 24 major bump lacks demonstrated functional verification
⚠️ unverified - [low] Node version parity across repo config not checked (staged-migration residue)
⚠️ unverified
🔮 Devil's Advocate (3 turns): 1 false positive dropped · 2 missed risks found
❌ 1 finding overruled by Devil's Advocate
False positives eliminated by adversarial challenge pass.The review fixated on slow-moving base-image drift but overlooked the immediate risk actually introduced by this PR: a two-major-version runtime jump (20 → 24) for a service that executes CI workloads. The added check validates the uid/gid contract and prints the version, but nothing in the diff demonstrates the executor's real workload still passes on Node 24 — transitive dependency engine ranges, native/musl prebuilt binaries on alpine, removed or behavior-changed Node APIs between 20 and 24, and npm lifecycle changes. If CI does not run the executor's test suite against the new image, the first signal of breakage will be production.
-
[LOW] Node version parity across repo config not checked (staged-migration residue)
This is 'stage 2' of a staged migration (#500), yet the review did not verify whether the other Node references were bumped in lockstep: package.json
engines, .nvmrc/volta config, CI job matrices, and any stage-1 artifacts. If those remain on Node 20, contributors and CI test against Node 20 while production executors run Node 24 — a dev/prod skew that undermines the very drift-protection theme the PR claims to advance. At minimum the review should have flagged verifying parity.
|
The automated review on this pull request has two findings. Both are marked unverified by the review itself. What the pull request holds: Functional verification of the image on Node 24. What ran on the Node 24 image, in run 45123353905: the build; the service booting and answering What has not run on Node 24: the validator path, meaning a validation container launched by the executor. CI cannot exercise it without a socket. The review of 2026-11-23 asks for it after the deployment: image identity, the service's health, its calls from the app, and the jobs it runs, with the validator image and its digest unchanged. That is the proof for this stage, and it is listed in the description under "What a merge does". Node versions not uniform across the repository. That is the design of the transition, as the review of 2026-11-23 ordered it: one image per unit, in the order executor, app, dashboard, and No code change follows from these two findings, so the branch stays as it is. |
Stage 2 evidence, recorded after the deployment (2026-11-23)The merge and the deployment are recorded in the CI and deploy runs above. This comment covers the seven production checks the review of 2026-11-23 asked for.
The verdict, stated exactlyBoth real executions completed and produced hashed reports. The command inside the validator exited 2 both times — an eslint fatal error, not lint findings. That points at the validator image's own content: its baseline repository is from June 2026, and the same baseline would presumably fail the same way under the previous executor. That last part is an expectation, not something I measured; the previous executor is no longer running. So: the orchestration on Node 24 is proven; a clean lint pass was not obtained, because the June baseline fails eslint with exit 2. Per the review's rule — if the real validator execution fails, stop and do not start the app stage — I am not starting stage 3. The validator did launch and report, but the command's verdict is not a pass, and whether that satisfies "نجاح عملية تحقق حقيقية" is the maintainer's call. Side effects: none observedThe validator containers used Requested ruling
|
Executor service token rotated (2026-11-23, security incident closed)Rotated under the maintainer's immediate authorization, after the token's value was printed into this session's transcript during the stage-2 verification. No part of the old or new value appears here or anywhere on GitHub.
The incident is closed on the conditions the review set: new value proven accepted, old value proven rejected, no value recorded in any unauthorized place. |
The executor equivalence test the review authorized: run, result, and the state of the gate (2026-11-23)The comparison was performed as authorized: the retained previous executor image (release The verdicts match (both
The throwaway was removed; the one workspace directory it left was removed as well (the five entries from June 2026 were kept). The pinned validator image is untouched. The gate's state after thisThe comparison answers the review's question — "do both executors produce the same execution result for the same validator and inputs?" — with no, not at exit-code detail. Under the review's own framing, a behavioural-equivalence acceptance is therefore not available on this evidence, and a real Recorded for the decision
|
The authorized ESLint diagnostic: the exit-2 cause is identified (2026-11-23)One diagnostic run, as authorized: the pinned validator image, run A's command and inputs, an isolated read-only container, no secrets, no network. The raw output stayed on CT 115 in mode-600 files and the workspace was removed afterwards. Result
The environment was then inspected (read-only, no second eslint run): eslint resolves fine ( The cause
What this explains, and what it does notExplained: run A's exit 2 (executor on Node 24) and the diagnostic's exit 2 are the same no-config fatal path. Still open: the Node 20 equivalence run returned exit 1 in 221 ms — too fast to have seeded the June baseline (the copy alone takes about 20 s), and a no-config failure would be exit 2 there as well. That run's internals cannot be read through hashed outputs, so its exit 1 remains unattributed. It does not affect this cause identification. The gateThe evidence now reads: the executor on Node 24 executed the real path correctly, and its Housekeeping
|
Stage 3 of the Node 24 transition (#500), after stages 1 (#503) and 2 (#504). Node 20 reached end of life on 2026-04-30. The change is the base image of the app Dockerfile, and nothing else: the lockfile is unchanged and no locked package refuses Node 24. A merge publishes a release and recreates the three release services; the executor keeps its Node 24 image from #504 and the dashboard keeps its Node 20 image until its own stage. The merge is on hold pending review; the stage-2 production gate (a recorded real validation through the executor) is still being closed separately. Signed-off-by: Alajmah <55954113+Alajmah@users.noreply.github.com>
Status
Stage 2 of the Node 24 transition (#500). Stage 1 is complete: #503 merged, published, deployed, and the images were read to still hold Node 20. Created for review. The merge and the deployment need the maintainer's approval of this head.
What this changes
packages/executor-service/Dockerfilenode:20-alpinetonode:24-alpine. The comment that names the base image follows.github/workflows/ci.ymlThe service has no npm dependencies, so nothing else in the image changes.
Why the identity check is part of this unit
The executor runs each validator container with
--user=1000:1000(packages/executor-service/src/validatorRunner.js,CONTAINER_UIDandCONTAINER_GID), and it writes into/workspace-tmpas the image's own non-root user. Both depend on the base image. A different base image could move thenodeuser's id or drop it. So the job now requires four things inside the built image:nodeuser exists at uid 1000 and gid 1000uid=1000(node) gid=1000(node)uid=1000(node) gid=1000(node) groups=1000(node)/workspace-tmpaccepts a write by that userdocker-cliis presentdocker --versionanswersThe match is on the whole number:
uid=1000, notuid=10000. The job also prints the Node version of the image.Verification
Manual CI run on this branch, commit
d4bcebd: https://github.com/Octo-Lex/GitWire/actions/runs/45123353905. All 16 jobs passed;publish-release-imagesis skipped on a manual run by design.docker-build-executor-service:node:24-alpine@sha256:116b800c…uid=1000(node) gid=1000(node) groups=1000(node)Earlier evidence, with the images moved together:
study/node-24-compat(7c83535), run 45076485501, and the first form of this unit (a53941f), run 45115252692. Both built the image and answered on Node 24.The identity check was written after the first form of this unit was validated, so it ran on the Node 24 image only. It was not run on a Node 20 image.
What a merge does
A merge publishes a release and recreates the three release services. After it, the executor runs on Node 24. The app and the dashboard keep their Node 20 images: their Dockerfiles are not in this pull request, and their stages follow as their own units.
After the deployment I will check, and record on this pull request:
/healthof the executor, and the deploy's executor gatee2c10a61…, unchangedNot covered
readyis false there by design.