Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67e683b

Browse files
committed
Report bundled DB size in error if known
1 parentcb26a02 commit67e683b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎lib/analyze-action.js‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/database-upload.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,14 @@ export async function cleanupAndUploadDatabases(
9595

9696
constreports:DatabaseUploadResult[]=[];
9797
for(constlanguageofconfig.languages){
98+
letbundledDbSize:number|undefined=undefined;
9899
try{
99100
// Upload the database bundle.
100101
// Although we are uploading arbitrary file contents to the API, it's worth
101102
// noting that it's the API's job to validate that the contents is acceptable.
102103
// This API method is available to anyone with write access to the repo.
103104
constbundledDb=awaitbundleDb(config,language,codeql,language);
104-
constbundledDbSize=fs.statSync(bundledDb).size;
105+
bundledDbSize=fs.statSync(bundledDb).size;
105106
constbundledDbReadStream=fs.createReadStream(bundledDb);
106107
constcommitOid=awaitgitUtils.getCommitOid(
107108
actionsUtil.getRequiredInput("checkout_path"),
@@ -144,6 +145,7 @@ export async function cleanupAndUploadDatabases(
144145
reports.push({
145146
language,
146147
error:util.getErrorMessage(e),
148+
...(bundledDbSize ?{zipped_upload_size_bytes:bundledDbSize} :{}),
147149
});
148150
}
149151
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp