codeql-action/lib
Angela P Wen 65c74964a9
Respect Linux cgroup CPU number for --threads value (#2083)
We want to respect cgroup constraints so that when we run in a container, we respect the limits set for the container rather than use the host OS's number of cores.

We check both `/sys/fs/cgroup/cpuset.cpus.effective` (`cgroup v2`) and `/sys/fs/cgroup/cpuset.cpus` (`cgroup v1`) to find the number of cores available. We also check `sys/fs/cgroup/cpu.max` (v1, v2) to calculate the number of cores from the limits set in this file.

The max threads value is set to the minimum of these values, and if no values were found in these files, we default to the original value of the host OS.
2024-01-23 14:50:06 +00:00
..
testdata Avoid analyzing excluded language files for line counting 2021-04-28 16:07:55 -07:00
actions-util.js Improve error categorizations 2023-12-01 17:54:38 +00:00
actions-util.js.map Improve error categorizations 2023-12-01 17:54:38 +00:00
actions-util.test.js Address more comments from PR 2023-08-29 13:20:55 -07:00
actions-util.test.js.map Address more comments from PR 2023-08-29 13:20:55 -07:00
analyze-action-env.test.js Pull out a dedicated status report file 2023-08-07 16:13:59 +01:00
analyze-action-env.test.js.map Pull out a dedicated status report file 2023-08-07 16:13:59 +01:00
analyze-action-input.test.js Pull out a dedicated status report file 2023-08-07 16:13:59 +01:00
analyze-action-input.test.js.map Pull out a dedicated status report file 2023-08-07 16:13:59 +01:00
analyze-action-post-helper.js Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
analyze-action-post-helper.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
analyze-action-post-helper.test.js Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
analyze-action-post-helper.test.js.map Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
analyze-action-post.js Consistently wrap errors 2023-04-06 17:04:21 +01:00
analyze-action-post.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
analyze-action.js add v2 deprecation warning 2024-01-18 20:51:16 +00:00
analyze-action.js.map add v2 deprecation warning 2024-01-18 20:51:16 +00:00
analyze.js Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
analyze.js.map Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
analyze.test.js Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
analyze.test.js.map Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
api-client.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
api-client.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
api-client.test.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
api-client.test.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
api-compatibility.json Merge branch 'main' into update-supported-enterprise-server-versions 2024-01-02 19:13:58 +00:00
autobuild-action.js add v2 deprecation warning 2024-01-18 20:51:16 +00:00
autobuild-action.js.map add v2 deprecation warning 2024-01-18 20:51:16 +00:00
autobuild.js update javascript files 2023-12-07 16:00:04 +00:00
autobuild.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
codeql.js Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
codeql.js.map Clean up running queries workflow now that the queries are determined by the CLI 2024-01-05 19:11:02 +00:00
codeql.test.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
codeql.test.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
config-utils.js Remove code to download packs 2024-01-04 16:29:49 +00:00
config-utils.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
config-utils.test.js Remove code to download packs 2024-01-04 16:29:49 +00:00
config-utils.test.js.map Remove code to download packs 2024-01-04 16:29:49 +00:00
database-upload.js Add new param to test 2023-10-10 08:48:53 +00:00
database-upload.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
database-upload.test.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
database-upload.test.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
debug-artifacts.js Add a retention period of 7 days 2024-01-10 13:31:52 -08:00
debug-artifacts.js.map Add a retention period of 7 days 2024-01-10 13:31:52 -08:00
debug-artifacts.test.js Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
debug-artifacts.test.js.map Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
defaults.json Update default bundle to codeql-bundle-v2.16.0 2024-01-08 18:58:06 +00:00
diagnostics.js Include mkdirSync in try/catch 2023-10-05 13:48:56 +01:00
diagnostics.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
environment.js Make Go binary path check unconditional 2023-10-13 10:26:39 +01:00
environment.js.map Make Go binary path check unconditional 2023-10-13 10:26:39 +01:00
feature-flags.js C++: Set minimum version for CppTrapCachingEnabled FF. 2024-01-22 13:04:01 +00:00
feature-flags.js.map C++: Set minimum version for CppTrapCachingEnabled FF. 2024-01-22 13:04:01 +00:00
feature-flags.test.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
feature-flags.test.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
fingerprints.js Gracefully handle decodeURIComponent failure 2023-05-25 09:15:55 -04:00
fingerprints.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
fingerprints.test.js Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
fingerprints.test.js.map Fix linter errors 2023-01-18 21:00:05 +00:00
init-action-post-helper.js Only delete SARIF in PR check if not running on a fork (#2084) 2024-01-16 16:07:58 -08:00
init-action-post-helper.js.map Only delete SARIF in PR check if not running on a fork (#2084) 2024-01-16 16:07:58 -08:00
init-action-post-helper.test.js update javascript files 2023-12-07 16:00:04 +00:00
init-action-post-helper.test.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
init-action-post.js Include runner disk info in status report 2023-08-07 16:27:56 +01:00
init-action-post.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
init-action.js C++: Make C++ TRAP caching conditional on TRAP caching being enabled in general. 2024-01-22 13:03:40 +00:00
init-action.js.map C++: Make C++ TRAP caching conditional on TRAP caching being enabled in general. 2024-01-22 13:03:40 +00:00
init.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
init.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
init.test.js Handle empty lists as well as undefined ones 2024-01-11 12:07:18 +00:00
init.test.js.map Handle empty lists as well as undefined ones 2024-01-11 12:07:18 +00:00
languages.js Implement support for language aliasing 2023-09-14 16:11:20 +01:00
languages.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
languages.test.js Implement support for language aliasing 2023-09-14 16:11:20 +01:00
languages.test.js.map Implement support for language aliasing 2023-09-14 16:11:20 +01:00
logging.js Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
logging.js.map Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
repository.js Improve error categorizations 2023-12-01 17:54:38 +00:00
repository.js.map Improve error categorizations 2023-12-01 17:54:38 +00:00
resolve-environment-action.js add v2 deprecation warning 2024-01-18 20:51:16 +00:00
resolve-environment-action.js.map add v2 deprecation warning 2024-01-18 20:51:16 +00:00
resolve-environment.js Improve error categorizations 2023-12-01 17:54:38 +00:00
resolve-environment.js.map Improve error categorizations 2023-12-01 17:54:38 +00:00
setup-codeql.js Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
setup-codeql.js.map Remove code specific to GitHub AE 2024-01-08 13:28:39 +00:00
setup-codeql.test.js Remove fallback logic for mapping default CLI version to GitHub Release 2023-07-07 15:15:57 +01:00
setup-codeql.test.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
status-report.js Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
status-report.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
status-report.test.js Add runner image version to status report 2023-08-07 16:27:56 +01:00
status-report.test.js.map Add runner image version to status report 2023-08-07 16:27:56 +01:00
testing-utils.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
testing-utils.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tools-features.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tools-features.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tools-features.test.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tools-features.test.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tracer-config.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tracer-config.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tracer-config.test.js Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
tracer-config.test.js.map Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081) 2024-01-12 09:41:07 -08:00
trap-caching.js Support features key in version JSON output 2023-10-04 11:28:28 +01:00
trap-caching.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
trap-caching.test.js Remove parsing of queries, packs, paths, and pathsIgnore 2024-01-04 16:27:05 +00:00
trap-caching.test.js.map Remove parsing of queries, packs, paths, and pathsIgnore 2024-01-04 16:27:05 +00:00
upload-lib.js Remove result pruning for CodeQL 2.11.2 2023-11-27 12:58:49 +00:00
upload-lib.js.map Remove result pruning for CodeQL 2.11.2 2023-11-27 12:58:49 +00:00
upload-lib.test.js Remove result pruning for CodeQL 2.11.2 2023-11-27 12:58:49 +00:00
upload-lib.test.js.map Remove result pruning for CodeQL 2.11.2 2023-11-27 12:58:49 +00:00
upload-sarif-action.js add v2 deprecation warning 2024-01-18 20:51:16 +00:00
upload-sarif-action.js.map add v2 deprecation warning 2024-01-18 20:51:16 +00:00
util.js Respect Linux cgroup CPU number for --threads value (#2083) 2024-01-23 14:50:06 +00:00
util.js.map Respect Linux cgroup CPU number for --threads value (#2083) 2024-01-23 14:50:06 +00:00
util.test.js ensure deprecation warning is only shown once per job 2024-01-19 14:55:54 +00:00
util.test.js.map ensure deprecation warning is only shown once per job 2024-01-19 14:55:54 +00:00
workflow.js Factor out groupLanguagesByExtractor 2023-09-22 18:55:52 +01:00
workflow.js.map Bump the npm group with 12 updates (#2003) 2023-11-20 14:35:28 -08:00
workflow.test.js update javascript files 2023-12-07 16:00:04 +00:00
workflow.test.js.map Test that workflow with two different languages doesn't produce an error 2023-09-22 19:08:38 +01:00