Override CODEQL_EXTRACTOR_GO_BUILD_TRACING with on when it's true
This commit is contained in:
parent
3069613ebd
commit
e195431677
33 changed files with 162 additions and 95 deletions
8
lib/tracer-config.js
generated
8
lib/tracer-config.js
generated
|
|
@ -33,9 +33,9 @@ const CRITICAL_TRACER_VARS = new Set([
|
|||
"SEMMLE_DEPTRACE_SOCKET",
|
||||
"SEMMLE_JAVA_TOOL_OPTIONS",
|
||||
]);
|
||||
async function endTracingForCluster(config) {
|
||||
async function endTracingForCluster(config, logger) {
|
||||
// If there are no traced languages, we don't need to do anything.
|
||||
if (!config.languages.some(languages_1.isTracedLanguage))
|
||||
if (!config.languages.some((l) => (0, languages_1.isTracedLanguage)(l, logger)))
|
||||
return;
|
||||
const envVariablesFile = path.resolve(config.dbLocation, "temp/tracingEnvironment/end-tracing.json");
|
||||
if (!fs.existsSync(envVariablesFile)) {
|
||||
|
|
@ -189,9 +189,9 @@ function concatTracerConfigs(tracerConfigs, config, writeBothEnvironments = fals
|
|||
return { env, spec };
|
||||
}
|
||||
exports.concatTracerConfigs = concatTracerConfigs;
|
||||
async function getCombinedTracerConfig(config, codeql) {
|
||||
async function getCombinedTracerConfig(config, codeql, logger) {
|
||||
// Abort if there are no traced languages as there's nothing to do
|
||||
const tracedLanguages = config.languages.filter(languages_1.isTracedLanguage);
|
||||
const tracedLanguages = config.languages.filter((l) => (0, languages_1.isTracedLanguage)(l, logger));
|
||||
if (tracedLanguages.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue