Angela P Wen
8cb81db135
Add unit tests for getCgroupCpuCountFromCpus
2024-02-16 12:48:04 +00:00
Angela P Wen
ef0a773901
Account for existing but empty cpus file
...
If a CPU file exists but is empty, previously we reported this file with a CPU count of 1, which resulted in a single-threaded run.
2024-02-15 16:18:04 +00:00
Henry Mercer
381e65f460
Allow generated user config file to be outside the workspace
2024-02-15 12:07:48 +00:00
Nick Rolfe
f00392ec30
Deprecate fine-grained parallelism feature-flag
2024-02-14 17:21:01 +00:00
Henry Mercer
eb60ca25f8
Merge branch 'main' into henrymercer/java-buildless-rollback
2024-02-14 15:18:48 +00:00
Angela P Wen
7b30fefa68
Add common CLI configuration error categories ( #2130 )
...
Co-authored-by: Henry Mercer <henry@henrymercer.name >
2024-02-14 13:57:38 +00:00
Henry Mercer
191f59f435
Store generated config file in temporary directory
...
This prevents it from becoming part of the analysis.
2024-02-13 15:59:45 +00:00
Henry Mercer
4e5f9c0873
Introduce a rollback mechanism for Java buildless
2024-02-12 23:11:48 +00:00
Henry Mercer
77be28fbdb
Add feature flag for disabling Java buildless
2024-02-12 23:11:47 +00:00
Josh Soref
5a6da1d85d
Treat status reports as non-critical
...
Change `sendStatusReport` to `void`
2024-02-12 13:56:10 -05:00
Dave Bartolomeo
b0346e4adb
Merge branch 'main' into update-bundle/codeql-bundle-v2.16.2
2024-02-12 09:34:51 -08:00
github-actions[bot]
8fae32eb18
Update default bundle to codeql-bundle-v2.16.2
2024-02-08 18:18:58 +00:00
Angela P Wen
1515e2bb20
Refactor configuration errors ( #2105 )
...
Refactor the existing classes of configuration errors into their own file; consolidate the place we check for configuration errors into `codeql.ts`, where the actual command invocations happen.
Also, rename the `UserError` type to `ConfigurationError` to standardize on a single term.
2024-02-08 17:20:03 +00:00
Henry Mercer
8fb654e590
Don't run autobuild in analyze if already ran in autobuild
2024-02-07 13:19:29 +00:00
Henry Mercer
0fe34bd39a
Extract language appropriately in analyze step when build mode specified
2024-02-07 13:19:29 +00:00
Henry Mercer
f9dea84e29
Status report: Handle failures determining disk usage
2024-02-02 16:31:04 +00:00
Henry Mercer
81eb6b2bf4
Merge pull request #2108 from github/henrymercer/build-mode-input
...
Add experimental `build-mode` input
2024-02-02 10:46:37 +00:00
Rasmus Wriedt Larsen
483bef1dab
Merge pull request #2106 from github/rasmuswl/default-no-dep-inst
...
Python: disable dependency installation on GHES
2024-02-01 14:14:12 +01:00
Henry Mercer
d982a14465
Pass build mode to database init when set
2024-01-31 14:55:09 +00:00
Henry Mercer
55c1fd5777
Introduce codeql.supportsFeature
...
This is a slightly simpler API
2024-01-30 21:53:24 +00:00
Henry Mercer
0166a8a567
Add build mode to configuration
2024-01-30 19:10:37 +00:00
Henry Mercer
d2e867f3be
Refactoring: Introduce common method to stub a config
...
This means that we don't need to update irrelevant test cases when we
add a new configuration property.
2024-01-30 19:00:04 +00:00
Henry Mercer
ec42edcaab
Refactoring: Create interface for config initialization
...
This eliminates argument order mistakes, and also lets us add new inputs
without having to update every test.
2024-01-30 18:59:59 +00:00
Rasmus Wriedt Larsen
e33271d071
Python: No dep installation by default for everyone
...
As announced in https://github.blog/changelog/2024-01-23-codeql-2-16-python-dependency-installation-disabled-new-queries-and-bug-fixes/ we have turned on this feature flag for github.com already.
This change ensures that users on GHES also has this feature enabled by
default.
2024-01-30 17:11:12 +01:00
Angela P Wen
61bf02577c
Send overall job status in init-post status report ( #2097 )
...
Co-authored-by: Henry Mercer <henry@henrymercer.name >
2024-01-26 05:11:46 -08:00
github-actions[bot]
75af1f5948
Update default bundle to codeql-bundle-v2.16.1
2024-01-24 00:02:56 +00:00
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
Alexandre Boulgakov
d0c5ea08fd
C++: Set minimum version for CppTrapCachingEnabled FF.
2024-01-22 13:04:01 +00:00
Alexandre Boulgakov
a246aaa40c
C++: Make C++ TRAP caching conditional on TRAP caching being enabled in general.
2024-01-22 13:03:40 +00:00
Alexandre Boulgakov
f1915cce98
C++: Map C++ TRAP caching flag to env var.
2024-01-22 13:02:45 +00:00
Alexandre Boulgakov
2949ab83fb
C++: Add feature flag for TRAP caching.
2024-01-22 13:01:47 +00:00
Ian Lynagh
545bf65803
Run "npm run build"
2024-01-19 16:52:23 +00:00
nickfyson
e86ee7f7b4
fix typo in comment
2024-01-19 15:03:13 +00:00
nickfyson
4f9fb97304
update wording of deprecation warning
2024-01-19 15:01:15 +00:00
nickfyson
a854253aca
ensure deprecation warning is only shown once per job
2024-01-19 14:55:54 +00:00
nickfyson
f72cffc780
add v2 deprecation warning
2024-01-18 20:51:16 +00:00
Angela P Wen
f65ecd09c7
Only delete SARIF in PR check if not running on a fork ( #2084 )
2024-01-16 16:07:58 -08:00
Alexander Eyers-Taylor
1fea7a57e7
Merge branch 'main' into update-bundle/codeql-bundle-v2.16.0
2024-01-15 15:55:29 +00:00
Angela P Wen
96531062ba
Stop setting CODEQL_RUNNER environment variable if CLI already sets it ( #2081 )
...
* Check `setsCodeqlRunnerEnvVar` is set in the CLI with `ToolsFeatures`
* Stop setting `CODEQL_RUNNER` env var when CLI does
* Add optional `features` parameter in test utils
* Test that `CODEQL_RUNNER` is not set if CLI sets it
2024-01-12 09:41:07 -08:00
Henry Mercer
eb14aeb61d
Merge pull request #2080 from github/henrymercer/fix-unconditional-warning
...
Fix `paths`/`paths-ignore` warning that would appear unconditionally
2024-01-11 12:34:53 +00:00
Henry Mercer
30597e33ea
Handle empty lists as well as undefined ones
2024-01-11 12:07:18 +00:00
Henry Mercer
94e68911d7
Fix paths/paths-ignore warning that would appear unconditionally
2024-01-11 11:54:24 +00:00
Andrew Eisenberg
f5a82188bc
Add a retention period of 7 days
...
For debug artifacts. Ensures they don't stick around
too long since these can be large.
2024-01-10 13:31:52 -08:00
github-actions[bot]
72e5036933
Update default bundle to codeql-bundle-v2.16.0
2024-01-08 18:58:06 +00:00
Henry Mercer
415881f4cf
Remove code specific to GitHub AE
2024-01-08 13:28:39 +00:00
Henry Mercer
838a022982
Clean up running queries workflow now that the queries are determined by the CLI
2024-01-05 19:11:02 +00:00
Henry Mercer
a533ec62b3
Merge branch 'main' into henrymercer/remove-action-config-parsing
2024-01-05 16:14:49 +00:00
Rasmus Wriedt Larsen
9926570d4c
Generate JS
2024-01-05 10:32:41 +01:00
Rasmus Wriedt Larsen
2e27b3c56b
Create helper isPythonDependencyInstallationDisabled
2024-01-05 10:23:04 +01:00
Rasmus Wriedt Larsen
afef25e1e7
Add comment for force enabling dependency extraction
2024-01-05 10:21:34 +01:00