mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Add clarifying comments
This commit is contained in:
@@ -205,6 +205,8 @@ async function recordClearCleanupSizes(
|
||||
reports: DatabaseUploadResult[],
|
||||
logger: Logger,
|
||||
): Promise<void> {
|
||||
// Include both the cleanup and the re-bundling to record how much time taking this measurement adds
|
||||
// to the run.
|
||||
const startTime = performance.now();
|
||||
|
||||
try {
|
||||
|
||||
@@ -712,7 +712,13 @@ export function getBaseDatabaseOidsFilePath(config: Config): string {
|
||||
return path.join(config.dbLocation, BASE_DATABASE_OIDS_FILE_NAME);
|
||||
}
|
||||
|
||||
// Create a bundle for the given DB, if it doesn't already exist
|
||||
/**
|
||||
* Bundles the database for the given language into a `.zip` file, returning the path to it.
|
||||
*
|
||||
* If a bundle for `dbName` already exists (e.g. from an earlier call), it is deleted and
|
||||
* re-created, so each call produces a fresh bundle reflecting the current database contents and the
|
||||
* given `includeDiagnostics` value.
|
||||
*/
|
||||
export async function bundleDb(
|
||||
config: Config,
|
||||
language: Language,
|
||||
|
||||
Reference in New Issue
Block a user