Skip to content
Snippets Groups Projects
Unverified Commit 4f9cc7b1 authored by Norbert Szulc's avatar Norbert Szulc Committed by GitHub
Browse files

fix(workers/repository): Verbose logging for updateArtifacts (#27772)

parent 74ce0c81
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment