End tracing early in autobuild Action for improved performance and reliability

This lets us achieve some performance and reliability improvements for
workflows that run autobuild directly without specifying a build mode.
This commit is contained in:
Henry Mercer 2024-05-09 15:06:36 +01:00
parent 7a6352f8e6
commit 5ac5c91bc1
9 changed files with 46 additions and 18 deletions

View file

@ -21,6 +21,7 @@ import {
sendStatusReport,
ActionName,
} from "./status-report";
import { endTracingForCluster } from "./tracer-config";
import {
checkActionVersion,
checkDiskUsage,
@ -125,6 +126,10 @@ async function run() {
await runAutobuild(config, language, features, logger);
}
}
// End tracing early to avoid tracing analyze. This improves the performance and reliability of
// the analyze step.
await endTracingForCluster(codeql, config, logger, features);
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
core.setFailed(