codeql-action/lib
Cornelius Riemenschneider 3dcdbc9add Unset tracing variables after finalizing databases.
The tracer is very good at preserving itself, so unsetting the tracing-specific
variables from within a process will not end tracing for children of
that process.
The way the actions process model works means that we're running inside
a process for the entire build step that was launched with the tracer
variables set, so we'll have the tracer injected into the entire build
step and its children.
If we unset the variables in end-tracing, we will get into an intermediate
state: Not all variables in there are preserved by the tracer,
but the tracer is still active.
Usually, that wouldn't be a problem, but the autobuilders called from
the finalize step will suddenly run under a half-configured tracer.

Particularly, this half-configured tracer is unable to execute the dotnet
CLI without hangs, as the environment variable that prevents hangs for
dotnet on MacOS has been unset, but the tracer is still active.

This is an issue for the the go autobuilder, that invokes
user-provided build scripts in the hope of installing dependencies.
If that build script then invokes dotnet, it will hang.

This is only of concern for the Lua tracer that now implements proper
multi-language tracing: Previously, when encountering the go autobuilder,
the tracer disabled itself entirely, thus side-stepping any hangs.
In the new, multi-language tracing world, the tracer will stay active
as long as there is at least one other language that's been set up
for tracing.
Thus, we also get hangs when invoking the dotnet CLI through the go
autobuilder.
2022-07-12 11:33:44 +00:00
..
testdata Avoid analyzing excluded language files for line counting 2021-04-28 16:07:55 -07:00
actions-util.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
actions-util.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
actions-util.test.js Fix failing tests 2022-03-25 10:00:47 -07:00
actions-util.test.js.map Add typings for js-yaml 2022-06-14 07:50:47 -07:00
analysis-paths.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analysis-paths.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analysis-paths.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analysis-paths.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analyze-action-env.test.js Fix integration tests on v1 2022-05-11 15:53:57 +01:00
analyze-action-env.test.js.map Fix integration tests on v1 2022-05-11 15:53:57 +01:00
analyze-action-input.test.js Fix integration tests on v1 2022-05-11 15:53:57 +01:00
analyze-action-input.test.js.map Fix integration tests on v1 2022-05-11 15:53:57 +01:00
analyze-action.js Honor the Lua tracer FF for database trace-command invocations for scanned languages. 2022-06-27 16:04:29 +00:00
analyze-action.js.map Honor the Lua tracer FF for database trace-command invocations for scanned languages. 2022-06-27 16:04:29 +00:00
analyze.js Unset tracing variables after finalizing databases. 2022-07-12 11:33:44 +00:00
analyze.js.map Unset tracing variables after finalizing databases. 2022-07-12 11:33:44 +00:00
analyze.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analyze.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
api-client.js Include CodeQL CLI and action versions in status reports 2022-03-17 10:07:29 -07:00
api-client.js.map Include CodeQL CLI and action versions in status reports 2022-03-17 10:07:29 -07:00
api-client.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
api-client.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
api-compatibility.json Update supported GitHub Enterprise Server versions. 2022-06-16 00:11:36 +00:00
autobuild-action.js Prompt customers to upgrade from v1 to v2 2022-04-27 16:11:24 +01:00
autobuild-action.js.map Prompt customers to upgrade from v1 to v2 2022-04-27 16:11:24 +01:00
autobuild.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
autobuild.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
codeql.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
codeql.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
codeql.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
codeql.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
config-utils.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
config-utils.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
config-utils.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
config-utils.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
count-loc.js Remove old baseline LoC injection 2021-08-26 13:46:22 +01:00
count-loc.js.map Remove old baseline LoC injection 2021-08-26 13:46:22 +01:00
count-loc.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
count-loc.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
database-upload.js Remove check of database uploads feature flag 2022-02-15 14:10:33 +00:00
database-upload.js.map Remove check of database uploads feature flag 2022-02-15 14:10:33 +00:00
database-upload.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
database-upload.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
defaults.json Update default CodeQL version to 2.10.0 2022-06-27 09:01:12 -07:00
error-matcher.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
error-matcher.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
error-matcher.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
error-matcher.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
external-queries.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
external-queries.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
external-queries.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
external-queries.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
feature-flags.js Introduce a feature-flag to enable/disable lua-based tracing. 2022-05-16 09:16:38 +00:00
feature-flags.js.map Fix linter errors. 2022-05-16 09:40:10 +00:00
feature-flags.test.js Introduce a feature-flag to enable/disable lua-based tracing. 2022-05-16 09:16:38 +00:00
feature-flags.test.js.map Fix linter errors. 2022-05-16 09:40:10 +00:00
fingerprints.js Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.js.map Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.test.js Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.test.js.map Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
init-action.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
init-action.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
init.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
init.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
languages.js Add Swift as a supported language. 2022-05-27 16:29:13 +01:00
languages.js.map Add Swift as a supported language. 2022-05-27 16:29:13 +01:00
languages.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
languages.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
logging.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
logging.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
repository.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
repository.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
runner.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
runner.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
shared-environment.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
shared-environment.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
testing-utils.js Workaround PATH casing issues on Windows 2022-06-29 18:59:32 +01:00
testing-utils.js.map Workaround PATH casing issues on Windows 2022-06-29 18:59:32 +01:00
toolrunner-error-catcher.js Stop printing all output twice. 2021-12-09 13:21:32 +00:00
toolrunner-error-catcher.js.map Stop printing all output twice. 2021-12-09 13:21:32 +00:00
toolrunner-error-catcher.test.js Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
toolrunner-error-catcher.test.js.map Fix compile errors introduced by typescript 4.4.2 2021-09-10 14:06:27 -07:00
tracer-config.js Improve error handling for ending tracing 2022-02-23 16:43:38 +00:00
tracer-config.js.map Improve error handling for ending tracing 2022-02-23 16:43:38 +00:00
tracer-config.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
tracer-config.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
upload-lib.js Fix processing errors being caught and logged as a warning rather than failing the workflow run. 2022-05-03 10:06:19 +01:00
upload-lib.js.map Fix processing errors being caught and logged as a warning rather than failing the workflow run. 2022-05-03 10:06:19 +01:00
upload-lib.test.js Detect merge base as base_sha for upload 2022-02-01 15:38:43 +00:00
upload-lib.test.js.map Detect merge base as base_sha for upload 2022-02-01 15:38:43 +00:00
upload-sarif-action.js Don't wait for processing in test mode 2022-04-28 19:14:14 +01:00
upload-sarif-action.js.map Don't wait for processing in test mode 2022-04-28 19:14:14 +01:00
util.js Don't make temporary directories symlinks 2022-06-29 18:59:33 +01:00
util.js.map Don't make temporary directories symlinks 2022-06-29 18:59:33 +01:00
util.test.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
util.test.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00