Skip to content

chore: Update check-node-versions.mjs to check Production.dockerfile - #16824

Merged
akash1810 merged 1 commit into
mainfrom
aa/check-node-ecs
Oct 2, 2026
Merged

akash1810 merged 1 commit into
mainfrom
aa/check-node-ecs

Conversation

@akash1810

Copy link
Copy Markdown
Member

What does this change?

The check-node-versions.mjs script is used to check a consistent version of Node is used across the various parts of the project. Add Production.dockerfile to be exhaustive.

How has this change been tested?

I've run ./scripts/check-node-versions.mjs locally and it gave the desired output:

❯ node ./scripts/check-node-versions.mjs
Found node version 24 in `.nvmrc`
All 4 checked files use the correct Node version

I then updated Production.dockerfile to use Node 26 and correctly got the following output:

❯ node ./scripts/check-node-versions.mjs
Found node version 24 in `.nvmrc`
Node version in ../Production.dockerfile (26) does not match `.nvmrc` (24), expected them to match versions to the major level

The `check-node-versions.mjs` script is used to check a consistent version of Node is used across the various parts of the project.
Add `Production.dockerfile` to be exhaustive.
@akash1810
akash1810 requested a review from arelra September 30, 2026 15:38
@akash1810
akash1810 requested a review from a team as a code owner September 30, 2026 15:39
@akash1810 akash1810 added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Sep 30, 2026
/** @type {const} @satisfies {ReadonlyArray<{filepath: string, pattern: RegExp, matchLevel: MatchLevel}>}*/ ([
{
filepath: '../Production.dockerfile',
pattern: /^FROM dhi\.io\/node:(\d+)/m,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This regex was created offered by copilot - #16821 (comment).

@akash1810
akash1810 disabled auto-merge October 2, 2026 14:32
@akash1810
akash1810 added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 9ac2085 Oct 2, 2026
33 checks passed
@akash1810
akash1810 deleted the aa/check-node-ecs branch October 2, 2026 14:38
@gu-prout

gu-prout Bot commented Oct 2, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @akash1810 10 minutes and 13 seconds ago) Please check your changes!

@gu-prout gu-prout Bot added the Seen-on-PROD label Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants