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
actions-util.js
actions-util.js.map
actions-util.test.js
actions-util.test.js.map
analyze-action-env.test.js
analyze-action-env.test.js.map
analyze-action-input.test.js
analyze-action-input.test.js.map
analyze-action-post-helper.js
analyze-action-post-helper.js.map
analyze-action-post-helper.test.js
analyze-action-post-helper.test.js.map
analyze-action-post.js
analyze-action-post.js.map
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
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
autobuild.js.map
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
database-upload.js.map
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
debug-artifacts.test.js.map
defaults.json Update default bundle to codeql-bundle-v2.16.0 2024-01-08 18:58:06 +00:00
diagnostics.js
diagnostics.js.map
environment.js
environment.js.map
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
fingerprints.js.map
fingerprints.test.js
fingerprints.test.js.map
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
init-action-post-helper.test.js.map
init-action-post.js
init-action-post.js.map
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
languages.js.map
languages.test.js
languages.test.js.map
logging.js
logging.js.map
repository.js
repository.js.map
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
resolve-environment.js.map
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
setup-codeql.test.js.map
status-report.js
status-report.js.map
status-report.test.js
status-report.test.js.map
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
trap-caching.js.map
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
upload-lib.js.map
upload-lib.test.js
upload-lib.test.js.map
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
workflow.js.map
workflow.test.js
workflow.test.js.map