GeezerVison is showing github.com — Add clarifying comments · github/codeql-action@9cfb67b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/database-upload.ts +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -205,6 +205,8 @@ async function recordClearCleanupSizes( |
205 | 205 | reports: DatabaseUploadResult[], |
206 | 206 | logger: Logger, |
207 | 207 | ): Promise<void> { |
| 208 | + // Include both the cleanup and the re-bundling to record how much time taking this measurement adds |
| 209 | + // to the run. |
208 | 210 | const startTime = performance.now(); |
209 | 211 |
|
210 | 212 | try { |
|
Collapse file
Copy file name to clipboardExpand all lines: src/util.ts +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -712,7 +712,13 @@ export function getBaseDatabaseOidsFilePath(config: Config): string { |
712 | 712 | return path.join(config.dbLocation, BASE_DATABASE_OIDS_FILE_NAME); |
713 | 713 | } |
714 | 714 |
|
715 | | -// Create a bundle for the given DB, if it doesn't already exist |
| 715 | +/** |
| 716 | + * Bundles the database for the given language into a `.zip` file, returning the path to it. |
| 717 | + * |
| 718 | + * If a bundle for `dbName` already exists (e.g. from an earlier call), it is deleted and |
| 719 | + * re-created, so each call produces a fresh bundle reflecting the current database contents and the |
| 720 | + * given `includeDiagnostics` value. |
| 721 | + */ |
716 | 722 | export async function bundleDb( |
717 | 723 | config: Config, |
718 | 724 | language: Language, |
|