From 4f9cc7b12e405f7cc7454297435c2067d4ac3d95 Mon Sep 17 00:00:00 2001
From: Norbert Szulc <norbert@icetek.io>
Date: Thu, 7 Mar 2024 20:36:30 +0100
Subject: [PATCH] fix(workers/repository): Verbose logging for updateArtifacts
 (#27772)

---
 lib/workers/repository/update/branch/get-updated.ts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/workers/repository/update/branch/get-updated.ts b/lib/workers/repository/update/branch/get-updated.ts
index e3dbf85f77..b036b178d9 100644
--- a/lib/workers/repository/update/branch/get-updated.ts
+++ b/lib/workers/repository/update/branch/get-updated.ts
@@ -288,6 +288,10 @@ export async function getUpdatedPackageFiles(
   }));
   const updatedArtifacts: FileChange[] = [];
   const artifactErrors: ArtifactError[] = [];
+  // istanbul ignore if
+  if (is.nonEmptyArray(updatedPackageFiles)) {
+    logger.debug('updateArtifacts for updatedPackageFiles');
+  }
   for (const packageFile of updatedPackageFiles) {
     const updatedDeps = packageFileUpdatedDeps[packageFile.path];
     const managers = packageFileManagers[packageFile.path];
@@ -311,6 +315,10 @@ export async function getUpdatedPackageFiles(
     path: name,
     contents: nonUpdatedFileContents[name],
   }));
+  // istanbul ignore if
+  if (is.nonEmptyArray(nonUpdatedPackageFiles)) {
+    logger.debug('updateArtifacts for nonUpdatedPackageFiles');
+  }
   for (const packageFile of nonUpdatedPackageFiles) {
     const updatedDeps = packageFileUpdatedDeps[packageFile.path];
     const managers = packageFileManagers[packageFile.path];
@@ -332,6 +340,10 @@ export async function getUpdatedPackageFiles(
   }
   if (!reuseExistingBranch) {
     // Only perform lock file maintenance if it's a fresh commit
+    // istanbul ignore if
+    if (is.nonEmptyArray(lockFileMaintenanceFiles)) {
+      logger.debug('updateArtifacts for lockFileMaintenanceFiles');
+    }
     for (const packageFileName of lockFileMaintenanceFiles) {
       const managers = packageFileManagers[packageFileName];
       if (is.nonEmptySet(managers)) {
-- 
GitLab