Put TRAP cache cleanup behind a feature flag

This commit is contained in:
Henry Mercer 2024-05-22 19:14:50 +01:00
parent 4f2b1826e9
commit 6ccd5631d8
9 changed files with 35 additions and 6 deletions

2
lib/analyze-action.js generated
View file

@ -199,7 +199,7 @@ async function run() {
didUploadTrapCaches = await (0, trap_caching_1.uploadTrapCaches)(codeql, config, logger);
trapCacheUploadTime = perf_hooks_1.performance.now() - trapCacheUploadStartTime;
// Clean up TRAP caches
trapCacheCleanupTelemetry = await (0, trap_caching_1.cleanupTrapCaches)(config, logger);
trapCacheCleanupTelemetry = await (0, trap_caching_1.cleanupTrapCaches)(config, features, logger);
// We don't upload results in test mode, so don't wait for processing
if (util.isInTestMode()) {
logger.debug("In test mode. Waiting for processing is disabled.");