Skip to content

build: move node-sqitch and knative-job-service images to Node 22 - #2088

Closed
pyramation wants to merge 2 commits into
mainfrom
feat/node-22-minimum
Closed

pyramation wants to merge 2 commits into
mainfrom
feat/node-22-minimum

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Node 20 is end of life. The node-sqitch and knative-job-service Dockerfiles, and the version manifest in the Sqitch image workflow, move from Node 20 to 22-bookworm to match the root image. CI and .nvmrc were already on 22.

Tested locally

  • node-sqitch: the image builds. A smoke test shows Node v22.23.5, sqitch v1.1.0 and DBD::Pg loaded.
  • knative-job-service: the image builds, but I couldn't smoke-test it. The build reports No projects matched the filters in "/app" because its workspace no longer exists on main. That Dockerfile was already stale before this change.

libpg-query and parser opened this PR for Dan
Implemented in session Audit parser repos for Node 22 minimum
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Maintenance
    • Updated the Node.js base image to version 22 for job and Sqitch containers. The Sqitch container now uses the Debian Bookworm image instead of Alpine, with its system packages and command-line tools provided through the updated environment.

@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. No issues found.


This PR updates two Docker images and their version pin file, switching the base/runtime tooling to newer versions and relocating the sqitch installation path in the node-sqitch image. All scanner lenses (correctness, security, holistic, and a domain specialist on Docker build hygiene) completed, and their two candidate findings were adjudicated below the reporting threshold, leaving nothing to flag.

Reviewed commit: abfed79

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

No actionable comments were generated in the recent review.

Walkthrough

The Knative job service and Sqitch container definitions now use Node.js 22 Bookworm. The Sqitch Dockerfile replaces Alpine package installation with apt-get and moves Sqitch files and environment paths under /opt/sqitch.

Changes: Knative job service image

Layer / File(s) Summary
Update Knative job service base image
docker/jobs/knative-job-service.Dockerfile
The shared base version changes to 22-bookworm, affecting both Dockerfile stages.

Sqitch image migration

Layer / File(s) Summary
Set Bookworm base and build dependencies
docker/node-sqitch/Dockerfile, docker/node-sqitch/version.yaml
The image version changes to 22-bookworm. The build stage replaces Alpine package installation with apt-get and configures Perl and UTC.
Configure runtime packages and paths
docker/node-sqitch/Dockerfile
The runtime stage installs packages with apt-get and copies Sqitch to /opt/sqitch. PATH and PERL5LIB use the Sqitch paths. The separate Alpine package installation is removed.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Suggested reviewers: anmol1696

Security architecture risk: Minimal · up to abfed

The images move to Node 22 without an identified increase in deployment privileges or access. Sqitch gets a new image tag, but the publishing process does not remove the previous tag. No affected deployment was identified; external image consumers and rollback availability could not be verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The directly evidenced scope is the two image definitions and the new Sqitch tag in the existing registry namespace. Runtime effects require a downstream consumer to adopt or rebuild an image; the publishing workflow does not deploy either image.

Trust Boundaries and Controls

  • observed — Registry authentication still uses the workflow token, with contents read and packages write permissions. The unchanged Makefile passes the base image name and version as build arguments, not the registry token.

Hardening Proposals

  • proposed — Before switching a downstream migration job, verify that it invokes Sqitch through PATH, check PostgreSQL connectivity using the job's normal identity, and record a retrievable previous image digest for rollback.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: moving the node-sqitch and knative-job-service images from Node 20 to Node 22. The raw summary confirms both Dockerfiles and the version manifest switch to node 22-boo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: moving the node-sqitch and knative-job-service images from Node 20 to Node 22. The raw summary confirms both Dockerfiles and the version manifest switch to node 22-bookworm, and the objectives describe the same move to match the root image. The title is specific and short. It does not mention the removal of the Alpine steps or the change to the timezone and PATH setup, which is expected for a title.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a7b1c02 and abfed79.

Files selected for processing: 3

  • docker/jobs/knative-job-service.Dockerfile
  • docker/node-sqitch/Dockerfile
  • docker/node-sqitch/version.yaml

Limit details: You’ve used all 10 included reviews currently available.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 finding. Devin automatically fixed it.

Fixed by Devin (1)
  • Missing editor blocks Sqitch changes — The Alpine image had busybox vi; the Bookworm runtime stage now installs vim-tiny and less.

View findings in Devin Review · Follow Devin's work

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Closing: Dan wants only GitHub Actions moved to Node 22, not the Docker images. CI in this repo is already on Node 22.

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