Skip to content

Commit

Permalink
fix(workers/repository): Verbose logging for updateArtifacts (#27772)
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Mar 7, 2024
1 parent 74ce0c8 commit 4f9cc7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/workers/repository/update/branch/get-updated.ts
Expand Up @@ -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];
Expand All @@ -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];
Expand All @@ -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)) {
Expand Down

0 comments on commit 4f9cc7b

Please sign in to comment.