Skip to content
Snippets Groups Projects
Unverified Commit 03f5c5cb authored by RahulGautamSingh's avatar RahulGautamSingh Committed by GitHub
Browse files

feat: remove `RENOVATE_X_IGNORE_NODE_WARN` (#29835)

parent a581f7b7
No related branches found
Tags 37.416.0
No related merge requests found
......@@ -2250,6 +2250,10 @@ Be careful with remapping `warn` or `error` messages to lower log levels, as it
{
"matchMessage": "Package lookup error",
"newLogLevel": "warn"
},
{
"matchMessage": "/^Please upgrade the version of Node.js/",
"newLogLevel": "info"
}
]
}
......
......@@ -82,10 +82,6 @@ Default value: `250` (milliseconds).
If set to any value, Renovate will use a "hard" `process.exit()` once all work is done, even if a sub-process is otherwise delaying Node.js from exiting.
See [issue 8660](https://github.com/renovatebot/renovate/issues/8660) for background on why this was created.
## `RENOVATE_X_IGNORE_NODE_WARN`
Suppress the default warning when a deprecated version of Node.js is used to run Renovate.
## `RENOVATE_X_IGNORE_RE2`
Skip initializing `RE2` for regular expressions and instead use Node-native `RegExp` instead.
......
......@@ -73,7 +73,7 @@ function checkEnv(): void {
const range = pkg.engines!.node!;
const rangeNext = pkg['engines-next']?.node;
if (process.release?.name !== 'node' || !process.versions?.node) {
logger[process.env.RENOVATE_X_IGNORE_NODE_WARN ? 'info' : 'warn'](
logger.warn(
{ release: process.release, versions: process.versions },
'Unknown node environment detected.',
);
......@@ -86,7 +86,7 @@ function checkEnv(): void {
rangeNext &&
!semver.satisfies(process.versions?.node, rangeNext)
) {
logger[process.env.RENOVATE_X_IGNORE_NODE_WARN ? 'info' : 'warn'](
logger.warn(
{ versions: process.versions },
`Please upgrade the version of Node.js used to run Renovate to satisfy "${rangeNext}". Support for your current version will be removed in Renovate's next major release.`,
);
......@@ -173,12 +173,12 @@ export async function start(): Promise<number> {
await validatePresets(config);
setGlobalLogLevelRemaps(config.logLevelRemap);
checkEnv();
// validate secrets. Will throw and abort if invalid
validateConfigSecrets(config);
setGlobalLogLevelRemaps(config.logLevelRemap);
});
// autodiscover repositories (needs to come after platform initialization)
......
......@@ -51,8 +51,6 @@ LABEL org.opencontainers.image.source="https://github.com/renovatebot/renovate"
WORKDIR /usr/src/app
ENV RENOVATE_X_IGNORE_NODE_WARN=true
COPY tools/docker/bin/ /usr/local/bin/
CMD ["renovate"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment