Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
4f9cc7b1
Unverified
Commit
4f9cc7b1
authored
1 year ago
by
Norbert Szulc
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(workers/repository): Verbose logging for updateArtifacts (#27772)
parent
74ce0c81
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/repository/update/branch/get-updated.ts
+12
-0
12 additions, 0 deletions
lib/workers/repository/update/branch/get-updated.ts
with
12 additions
and
0 deletions
lib/workers/repository/update/branch/get-updated.ts
+
12
−
0
View file @
4f9cc7b1
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment