From af573943efd83f2f636ec74882e58a44f96962aa Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Tue, 2 Jul 2024 07:40:38 +0200 Subject: [PATCH 1/2] fix(lookup): better warn logs for unexpected downgrade --- lib/workers/repository/process/lookup/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/process/lookup/index.ts b/lib/workers/repository/process/lookup/index.ts index d2cc1510f2a817..cad084354d13ef 100644 --- a/lib/workers/repository/process/lookup/index.ts +++ b/lib/workers/repository/process/lookup/index.ts @@ -460,7 +460,15 @@ export async function lookupUpdates( versioning.isGreaterThan(compareValue, update.newValue) ) { logger.warn( - { update, allVersions, filteredReleases }, + { + packageName: config.packageName, + currentValue: config.currentValue, + compareValue, + currentVersion: config.currentVersion, + update, + allVersionsLength: allVersions.length, + filteredReleases, + }, 'Unexpected downgrade detected: skipping', ); } else { From 01c9ff6db435990ea3c985f84137f6eab0a4fa8f Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Tue, 2 Jul 2024 07:42:42 +0200 Subject: [PATCH 2/2] only versions --- lib/workers/repository/process/lookup/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workers/repository/process/lookup/index.ts b/lib/workers/repository/process/lookup/index.ts index cad084354d13ef..0b97f426e5f4ed 100644 --- a/lib/workers/repository/process/lookup/index.ts +++ b/lib/workers/repository/process/lookup/index.ts @@ -467,7 +467,7 @@ export async function lookupUpdates( currentVersion: config.currentVersion, update, allVersionsLength: allVersions.length, - filteredReleases, + filteredReleaseVersions: filteredReleases.map((r) => r.version), }, 'Unexpected downgrade detected: skipping', );