Repository navigation
feat(cli): send the Node.js version as written and print the release each check runs on [RED-1340] - #1622
Open
kiroushi wants to merge 4 commits into
Open
feat(cli): send the Node.js version as written and print the release each check runs on [RED-1340]#1622kiroushi wants to merge 4 commits into
kiroushi wants to merge 4 commits into
Conversation
…h check runs on Node.js detection reads package.json devEngines.runtime and engines.runtime first, then .node-version, .nvmrc, .tool-versions, volta.node and engines.node as before. Each field takes the first entry named node, as an object or an array. The CLI sends every Node.js value as written, trimmed and without a leading v. Checkly resolves it to a release or refuses it, so the CLI's Node.js remap rules, its Node.js default and its notices are gone. Engine.node() takes any version or semver range. Bun detection and its rules are unchanged. checkly deploy and checkly deploy --preview print one line per requested version, the file or field it came from and the release Checkly reports in the new resolvedNodeVersion diff field. A check whose engine comes from Engine.node() names the file that calls it. A deploy preview that Checkly refuses with a 400 now fails the command with Checkly's message. The fallback to the dry-run summary could not deploy the same payload and printed the message twice.
…the config directory The requested Node.js version and its source live in an internal registry instead of a public method on PlaywrightCheck. A second validation keeps the source it found the first time. Version-manager aliases such as lts/* fall through in .node-version and .tool-versions, as they do in .nvmrc. A runtime field takes its first node entry with a string version. An explicit version given as a finite number is sent as its string form. Every source is named relative to the directory of the Checkly config, for example ../../package.json devEngines.runtime for a config in a workspace package. A refused preview reads "Could not check what this deploy would change." above Checkly's message. The reference describes refused versions without patch numbers.
An explicit engine whose version is missing, NaN or empty after trimming is still sent, but it gets no Node.js line. A runtime field skips node entries whose version is empty after trimming. The reference gives a non-alias example of a refused value.
kiroushi
marked this pull request as ready for review
November 27, 2026 09:43
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected Components
The CLI sends a Playwright Check Suite's Node.js version as the project writes it, instead of reducing it to a major. Checkly resolves it to an exact release.
checkly deployandcheckly deploy --previewprint that release.package.jsondevEngines.runtimefirst, thenpackage.jsonengines.runtime, then.node-version,.nvmrc,.tool-versions,volta.nodeandengines.nodein their earlier order. Each runtime field is an object or an array of objects. The first entry namednodewith a non-emptyversioncounts, andonFailis ignored. An entry for another runtime is ignored.v. A version-manager alias (lts/*,lts,node,stable,latest) in.node-version,.nvmrcor.tool-versionsis skipped, as before. A value that is not a string is skipped.checkly deploy,checkly deploy --preview,checkly testandcheckly pw-test.Engine.node()takes any Node.js version or semver range, such as'24','24.11.0','^24.11.0'or'>=22'.Node.js ^24 (package.json devEngines.runtime) runs 24.22.2.The release comes from the diff entry'sresolvedEngineVersion. A response without the field gives the line without its release part.--output jsonand the agent plan pass the field through and add no text.../../package.json devEngines.runtimefor a config inpackages/app. An explicit engine names the file that callsEngine.node().checkly deploywith Checkly's message. Before, the CLI warned, fell back to a dry run and printed the same message a second time.User-visible changes
.nvmrcsays20ran 22.23.4 and now runs the newest available 20.x.engines.node>=18, ran 22.23.4 and now runs the newest available 20.x.Engine.node('abc')deployed 22 and now fails the deploy..node-versioniron, was skipped and is now sent, and Checkly refuses it.pnpm workspaces
pnpm checks the running Node.js only against the workspace root's
devEngines.runtimeandengines.runtime, whenonFailiserrororwarn. The CLI reads the same root manifest. WithonFail: "download", pnpm also installs each project's own runtime from that project's manifest. The CLI does not read a sub-package's field.Notes for the Reviewer
This needs a Checkly API that accepts Node.js versions and ranges and returns
resolvedEngineVersionin the deploy and preview diff. Both are live.Tests
Unit tests cover each detection source and the order, both shapes of the runtime fields, another runtime's entry, pass-through values, the aliases in each version file, Bun, the printed sources, and the deploy and preview lines with the field, without it and with null.