Introduce a feature-flag to enable/disable lua-based tracing.
This allows us to gradually roll out (or even roll back) Lua-based tracing in case problems occur.
This commit is contained in:
parent
e655565390
commit
9e9a8428c3
18 changed files with 98 additions and 59 deletions
2
lib/init-action.js
generated
2
lib/init-action.js
generated
|
|
@ -128,7 +128,7 @@ async function run() {
|
|||
(0, util_1.getMemoryFlagValue)((0, actions_util_1.getOptionalInput)("ram")).toString());
|
||||
core.exportVariable("CODEQL_THREADS", (0, util_1.getThreadsFlagValue)((0, actions_util_1.getOptionalInput)("threads"), logger).toString());
|
||||
const sourceRoot = path.resolve((0, util_1.getRequiredEnvParam)("GITHUB_WORKSPACE"), (0, actions_util_1.getOptionalInput)("source-root") || "");
|
||||
const tracerConfig = await (0, init_1.runInit)(codeql, config, sourceRoot, "Runner.Worker.exe", undefined);
|
||||
const tracerConfig = await (0, init_1.runInit)(codeql, config, sourceRoot, "Runner.Worker.exe", undefined, featureFlags);
|
||||
if (tracerConfig !== undefined) {
|
||||
for (const [key, value] of Object.entries(tracerConfig.env)) {
|
||||
core.exportVariable(key, value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue