Skip to content

Commit 56733fb

Browse files
committed
Add log group for downloading overlay-base DB
1 parent 7c5585e commit 56733fb

2 files changed

Lines changed: 31 additions & 21 deletions

File tree

lib/init-action.js

Lines changed: 15 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -465,18 +465,23 @@ async function run(startedAt: Date) {
465465
// necessary preparations. So, in that mode, we would assume that
466466
// everything is in order and let the analysis fail if that turns out not
467467
// to be the case.
468-
overlayBaseDatabaseStats = await downloadOverlayBaseDatabaseFromCache(
469-
codeql,
470-
config,
471-
logger,
468+
await withGroupAsync(
469+
"Checking cache for overlay-base database",
470+
async () => {
471+
overlayBaseDatabaseStats = await downloadOverlayBaseDatabaseFromCache(
472+
codeql,
473+
config,
474+
logger,
475+
);
476+
if (!overlayBaseDatabaseStats) {
477+
config.overlayDatabaseMode = OverlayDatabaseMode.None;
478+
logger.info(
479+
"No overlay-base database found in cache, " +
480+
`reverting overlay database mode to ${OverlayDatabaseMode.None}.`,
481+
);
482+
}
483+
},
472484
);
473-
if (!overlayBaseDatabaseStats) {
474-
config.overlayDatabaseMode = OverlayDatabaseMode.None;
475-
logger.info(
476-
"No overlay-base database found in cache, " +
477-
`reverting overlay database mode to ${OverlayDatabaseMode.None}.`,
478-
);
479-
}
480485
}
481486

482487
if (config.overlayDatabaseMode !== OverlayDatabaseMode.Overlay) {

0 commit comments

Comments
 (0)