Tidy up telemetry call
This commit is contained in:
Родитель
7e6aa4d65a
Коммит
8dba596f10
|
@ -220,14 +220,9 @@ async function run() {
|
|||
hasBadExpectErrorInput()) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
if (error instanceof analyze_1.CodeQLAnalysisError) {
|
||||
const stats = { ...error.queriesStatusReport };
|
||||
await sendStatusReport(startedAt, config, stats, error.error, // use the underlying error in case it is a configuration error
|
||||
trapCacheUploadTime, dbCreationTimings, didUploadTrapCaches, trapCacheCleanupTelemetry, logger);
|
||||
}
|
||||
else {
|
||||
await sendStatusReport(startedAt, config, undefined, error, trapCacheUploadTime, dbCreationTimings, didUploadTrapCaches, trapCacheCleanupTelemetry, logger);
|
||||
}
|
||||
await sendStatusReport(startedAt, config, error instanceof analyze_1.CodeQLAnalysisError
|
||||
? error.queriesStatusReport
|
||||
: undefined, error instanceof analyze_1.CodeQLAnalysisError ? error.error : error, trapCacheUploadTime, dbCreationTimings, didUploadTrapCaches, trapCacheCleanupTelemetry, logger);
|
||||
return;
|
||||
}
|
||||
if (runStats && uploadResult) {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -356,33 +356,19 @@ async function run() {
|
|||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
if (error instanceof CodeQLAnalysisError) {
|
||||
const stats = { ...error.queriesStatusReport };
|
||||
await sendStatusReport(
|
||||
startedAt,
|
||||
config,
|
||||
stats,
|
||||
error.error, // use the underlying error in case it is a configuration error
|
||||
trapCacheUploadTime,
|
||||
dbCreationTimings,
|
||||
didUploadTrapCaches,
|
||||
trapCacheCleanupTelemetry,
|
||||
logger,
|
||||
);
|
||||
} else {
|
||||
await sendStatusReport(
|
||||
startedAt,
|
||||
config,
|
||||
undefined,
|
||||
error,
|
||||
trapCacheUploadTime,
|
||||
dbCreationTimings,
|
||||
didUploadTrapCaches,
|
||||
trapCacheCleanupTelemetry,
|
||||
logger,
|
||||
);
|
||||
}
|
||||
|
||||
await sendStatusReport(
|
||||
startedAt,
|
||||
config,
|
||||
error instanceof CodeQLAnalysisError
|
||||
? error.queriesStatusReport
|
||||
: undefined,
|
||||
error instanceof CodeQLAnalysisError ? error.error : error,
|
||||
trapCacheUploadTime,
|
||||
dbCreationTimings,
|
||||
didUploadTrapCaches,
|
||||
trapCacheCleanupTelemetry,
|
||||
logger,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче