Skip to content

chore(executor): run the executor-service image on Node 24 (stage 2 of #500) - #504

Merged
Alajmah merged 1 commit into
masterfrom
chore/node-24-executor-image-v2
Nov 23, 2026
Merged

Alajmah merged 1 commit into
masterfrom
chore/node-24-executor-image-v2

Conversation

@Alajmah

@Alajmah Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

File Change
packages/executor-service/Dockerfile the base image moves from node:20-alpine to node:24-alpine. The comment that names the base image follows
.github/workflows/ci.yml the executor image job checks, in the built image, the identity contract the service depends on

The 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_UID and CONTAINER_GID), and it writes into /workspace-tmp as the image's own non-root user. Both depend on the base image. A different base image could move the node user's id or drop it. So the job now requires four things inside the built image:

Check In the image
The node user exists at uid 1000 and gid 1000 uid=1000(node) gid=1000(node)
The service process runs as that user uid=1000(node) gid=1000(node) groups=1000(node)
/workspace-tmp accepts a write by that user a file is created and removed
docker-cli is present docker --version answers

The match is on the whole number: uid=1000, not uid=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-images is skipped on a manual run by design.

docker-build-executor-service:

Fact Result
Base image built from node:24-alpine@sha256:116b800c…
Node in the image v24.22.3
Service process identity uid=1000(node) gid=1000(node) groups=1000(node)
Identity contract kept: node user at 1000:1000, service runs as it, workspace writable, docker-cli present
Health endpoint status ok, ready false, as expected without a socket

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:

Check How
Image identity the revision label and the digest of the running executor image are the ones the deploy run pulled
Node in the running image read from the image itself: expected v24.x
The other two images read from the image as well: expected v20.20.2, unchanged
Service health /health of the executor, and the deploy's executor gate
Calls from the app the executor's validation endpoint answers a request from the app, with the production validator image and its digest unchanged
The jobs it runs one real validation of a commit, observed from the executor's own log
Validator the image is the pinned digest e2c10a61…, unchanged
Ten services, SHA, retention as for every release

Not covered

  • The validator image stays pinned and is not rebuilt: its rebuild is on hold. The executor will run Node 24 while the validator image it launches still runs Node 20. The two talk through the Docker socket, with files and exit codes.
  • The validator path was not exercised in this run. CI has no Docker socket for the executor, so ready is false there by design.
  • Nothing ran under load.

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:28:32.777897Z d4bcebd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gitwire-hq gitwire-hq Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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.
--- _GitWire AI Review Gate (bundle-driven v2) · Structured schema · Scope-validated · Devil's Advocate · AI recommendation — maintainers and repository policy retain authority_ ### Finding details (not annotatable inline) - **[MEDIUM] Node 20 → 24 major bump lacks demonstrated functional verification**

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.

@Alajmah

Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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 /health with status ok and ready false, which is the expected answer in CI because the job gives the executor no Docker socket; and the identity contract inside the image: the node user at uid 1000 and gid 1000, the service process running as that user, a write into /workspace-tmp, docker-cli present.

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 engines and the README last. The other Dockerfiles still say Node 20 on purpose. Each gets its own pull request.

No code change follows from these two findings, so the branch stays as it is.

@Alajmah
Alajmah merged commit cd23a11 into master Nov 23, 2026
39 checks passed
@Alajmah

Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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.

# Check Result
1 The running executor image is the published digest yes: gitwire-executor-service@sha256:bde3910092a0…, the digest the deploy run pulled; revision label cd23a11
2 Executor on Node 24, app and dashboard on Node 20 read from each published image: executor v24.22.3; app v20.20.2 (gitwire-app@sha256:1c5e4d61…); dashboard v20.20.2 (gitwire-dashboard@sha256:08a36639…)
3 /health and readiness status ok, ready: true, git_sha cd23a110…, runtime docker 29.9.3; the process runs as uid=1000(node); validator identity in the config is the pinned digest e2c10a61…
4 A validation call from the app to the executor exercised directly against /v1/validate on the executor's own network, with the same contract the application sends (the same body executorServiceBackend.run builds); HTTP 200 both times
5 At least one real validation job, result recorded two real validator executions, both complete end to end: image inspection matched the pinned digest, the workspace was materialized, the validator container ran from the pinned digest, and hashed reports came back. Run A: descriptor path, eslint over a clean probe file, exit 2 after 20.7 s. Run B: the legacy npm run lint template over the merged baseline, exit 2 after 17.2 s. Both verdicts fail
6 Validator image unchanged the executor inspected sha256:e2c10a61… and matched it against its configuration; the image was not rebuilt
7 Ten containers, rollback images, retention 10 running, 9 healthy (the tenth is the tunnel, no health check); cd23a11, d2aa070, 4e45982, ad45e16 keep 3 images each; retention removed the 3 images of 3847171 (3 succeeded, 0 failed)

The verdict, stated exactly

Both 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 observed

The validator containers used --rm. The workspace directory held the same 5 entries after the runs as before them, so the two runs left nothing behind. No error or warning line appeared in the executor's log. The reports were returned to the caller and not persisted anywhere; no database, GitHub or queue write was involved.

Requested ruling

  1. Does a completed, hashed, real execution with a fail verdict satisfy the gate, given that the failing command is the validator image's own June baseline and not the executor?
  2. If yes, stage 3 (app) may be prepared. If no, the options are a rebuilt validator image (on hold by standing decision) or an accepted fail-verdict proof.

@Alajmah

Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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.

Step Result
Positions found two on CT 115: /opt/gitwire/.env and /opt/gitwire/config/production.env (single source; the staged release envs of past deploys also held the old value and are transient runner temp files — the old value is now dead everywhere)
Timing new value generated with openssl rand -hex 32 on CT 115; both files patched in place at about 14:31Z; both containers recreated at 14:32:23Z
Scope only gitwire-app and gitwire-executor-service recreated. The dashboard, bot, landing, docs, demo, postgres, redis and tunnel containers kept their exact start times
Permissions /opt/gitwire/.env was mode 644 while holding secrets; tightened to 600 (runner:runner unchanged), same as config/production.env
Verification the two containers carry the same new value (sha256 compared, values not printed); /v1/validate with no token → 401; with the old value → 401; with the new value → past auth (400 on an empty body); the app's call to the executor with its own token → 200; both containers healthy; app /health ok; executor ready: true
Cleanup the temporary file holding the old value was removed; the files' owners are unchanged (runner:runner), so future deploys are unaffected

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.

@Alajmah

Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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 4e45982, Node v20.20.2, digest sha256:5e9bb0f9f42f…) ran as a throwaway container with the same mounts as production (docker socket, workspace volume, docker group), the pinned validator digest, and the same inputs as run A (descriptor path, eslint over the clean probe file). The production executor (Node v24.22.3) had produced the recorded run A. Both executors launched the same pinned validator container and returned hashed reports.

The verdicts match (both fail); the exit codes do not.

Executor overall eslint exit duration inspected digest
Node 24 (production) fail 2 20,714 ms e2c10a61…
Node 20 (previous, throwaway) fail 1 221 ms e2c10a61…

exit 1 means eslint ran and reported problems; exit 2 means eslint hit a fatal error. The 20.7 s against 0.2 s points the same way. So operational equivalence is not established at the exit-code level, and the outputs are hashed by design, so the cause of the difference cannot be read from the reports. Two environmental differences between the runs are recorded for honesty: the throwaway ran without the --read-only flag (production's executor does not set it either — my first throwaway attempt added it and the service failed before execution; the successful comparison ran without it), and the throwaway needed the docker group (--group-add 990) that compose adds to the production executor.

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 this

The 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 pass is not available on the June baseline. The stage-3 gate stays open.

Recorded for the decision

  • Both executors completed the real path end to end: image inspection matched the pinned digest, workspace materialized, validator container ran, hashed report returned.
  • The difference sits inside the validator's eslint execution on the June baseline, in an environment whose remaining variable (eslint's execution context in the June image) cannot be inspected through hashed outputs.
  • Options that remain: read the eslint failure directly by running the same validator command against the same workspace outside the executor's hashing (a one-off diagnostic, not a gate), a rebuilt validator baseline (on hold), or accepting the recorded difference and closing the gate as "orchestration proven, lint verdict inherits the June baseline".

@Alajmah

Alajmah commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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

Fact Value
Command npx --no-install eslint probe-clean.js, workdir /workspace, the exact argv of run A
Exit code 2
Duration 20 s
stdout / stderr 0 bytes / 0 bytes

The environment was then inspected (read-only, no second eslint run): eslint resolves fine (eslint 8.57.1 at /workspace/node_modules), the probe file is intact, HOME=/workspace is writable — and there is no ESLint configuration file at the workspace root. The tracked tree confirms it: the only eslint config in the repository is packages/web-dashboard/eslint.config.mjs; nothing at the root.

The cause

eslint 8.57 finds no configuration for a file placed at the workspace root, and that is its documented fatal path: exit 2. The probe file of run A sat at the workspace root, where the June baseline has no config. So the exit 2 of run A — and of the diagnostic — is an artifact of the probe input's placement, in a baseline whose root carries no eslint configuration. It is not attributable to Node 24, to the executor, or to a broken validator install (eslint resolves and its binary is present).

What this explains, and what it does not

Explained: 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 gate

The evidence now reads: the executor on Node 24 executed the real path correctly, and its fail verdict with exit 2 is the expected eslint behaviour for a root-level file in a baseline without a root config. Whether that closes the stage-2 gate as "orchestration proven; the lint verdict is an input artifact of the June baseline" is the maintainer's ruling on this record.

Housekeeping

  • Raw outputs: kept on CT 115 during the diagnostic, removed with the workspace afterwards; nothing was published unfiltered.
  • The container removed itself (--rm); the workspace directory and the diagnostic files were deleted; 0 leftover diag-* paths remain on the host.
  • A read-only introspection of the seeded workspace (one sh with ls/node -e, no eslint execution) supplied the missing pieces after the authorized run produced zero output bytes.

Alajmah added a commit that referenced this pull request Nov 23, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant