Henry Mercer
e6c21da23c
Refactoring: Rename KnownLanguage to BuiltInLanguage
2026-04-10 19:09:47 +01:00
Henry Mercer
55a0f2b2aa
Add environment variable override
2026-03-10 15:41:40 +00:00
Henry Mercer
bef08edf32
Update to log deprecation warning
...
Move rollout to April
2026-03-10 13:14:00 +00:00
Henry Mercer
55ae11793a
Reduce duplication of getFileCoverageInformationEnabled
2026-03-10 11:42:53 +00:00
Henry Mercer
9e8c05933f
Add ability to override via repository property
2026-03-09 17:08:13 +00:00
Henry Mercer
c102a6d8cd
Require tools feature flag
...
And now that we have this, drop the restriction to `github` org.
2026-03-09 17:07:10 +00:00
Henry Mercer
9308bcd6bb
Add unit tests for file coverage enablement
2026-01-27 13:55:22 +00:00
Michael B. Gale
2c8f4891d1
Add FF for config validation
2025-10-17 15:11:13 +01:00
Michael B. Gale
a512fe0868
Gate tools: toolcache behind FF
...
Mainly to allow us to disable it, if needed.
2025-10-10 13:49:06 +01:00
Chuan-kai Lin
821d3bd162
Merge branch 'main' into cklin/overlay-pack-check
2025-08-11 07:10:04 -07:00
Chuan-kai Lin
baac9295dc
Check both qlpack.yml and codeql-pack.yml
2025-08-08 10:34:53 -07:00
Chuan-kai Lin
8dbcef50df
Extract getGeneratedSuitePath()
2025-08-08 08:53:04 -07:00
Chuan-kai Lin
ee698cb5ba
init-action: inhibit non-empty dbLocation warning when restarting
2025-08-08 08:53:04 -07:00
Chuan-kai Lin
ee7cacdb6b
Inline runInit()
...
This commit inlines runInit(), so that it is easier to repeat the
runDatabaseInitCluster() call when needed.
2025-08-08 08:53:04 -07:00
Chuan-kai Lin
ed9d057cde
Extract runDatabaseInitCluster()
2025-08-08 08:53:04 -07:00
Chuan-kai Lin
c47e1541d8
Add checkPacksForOverlayCompatibility()
2025-08-08 08:53:03 -07:00
Henry Mercer
1afa0e7463
Cleanup extract to toolcache feature flag
2025-08-08 11:26:14 +01:00
Henry Mercer
ea05bf27b6
Use more explicit checks on .length for readability
2025-08-05 17:55:50 +01:00
Henry Mercer
c481481d7d
Merge branch 'main' into henrymercer/language-extensibility
2025-08-05 11:07:39 +01:00
Chuan-kai Lin
a336faa497
databaseInitCluster: use overlayDatabaseMode from config
...
This commit changes databaseInitCluster() to use overlayDatabaseMode
from AugmentationProperties instead of the overlayDatabaseMode
parameter. There is no behavior change because both overlayDatabaseMode
values are computed the same way.
The commit then cleans up the overlayDatabaseMode parameter and the code
paths that feed into it.
2025-07-03 12:35:24 -07:00
Henry Mercer
932be8feda
Rename Language enum and use generic Language where possible
2025-05-30 18:02:15 +01:00
Henry Mercer
c7f3c79ac0
Remove guards for fully enabled tool features
2025-05-30 17:52:01 +01:00
Chuan-kai Lin
ff5f0b9efd
Support overlay database creation
...
This commit adds support for creating overlay-base and overlay
databases, controlled via the CODEQL_OVERLAY_DATABASE_MODE environment
variable.
2025-03-10 13:25:46 -07:00
Chuan-kai Lin
270886f805
Pass overlay mode into databaseInitCluster()
...
This commit adds a OverlayDatabaseMode parameter to
databaseInitCluster(). The parameter controls the "codeql database init"
flags concerning overlay database creation.
There is no behavior change in this commit because we always pass
OverlayDatabaseMode.None to databaseInitCluster(). That will change in
the next commit.
2025-03-10 13:22:24 -07:00
Henry Mercer
b58f4471c8
Use @actions/io to locate binaries
2024-12-19 14:21:06 +00:00
Fotis Koutoulakis (@NlightNFotis)
5445a29a97
tests: instead of false, use old feature flag with default value of false
2024-11-12 17:59:47 +00:00
Henry Mercer
33f2dc57a4
Enable zstd bundles on GHES and remove feature flag
2024-11-01 15:24:51 +00:00
Henry Mercer
ddead5420c
Stream the download and extraction of zstd bundles
...
Behind a feature flag
2024-10-10 19:48:20 +01:00
Henry Mercer
a7a6a6951e
Determine zstd availability earlier on to simplify log
2024-09-23 22:39:47 +01:00
Henry Mercer
ac3fca3e9f
Use zstd bundle by default when feature flag enabled
2024-09-23 22:39:46 +01:00
Henry Mercer
dd7307d603
Refactoring: Simplify retrieving error message
2024-09-16 22:38:35 +02:00
Angela P Wen
202b3b97bf
Stop checking disk usage for MacOS ARM with SIP disabled ( #2434 )
...
* Stop checking disk usage for MacOS ARM with SIP disabled
On MacOS ARM machines where SIP is disabled, after the build tracer is initialized in the `init` Action, we receive warnings when we run send status reports due to the `df` binary. This change will make it so that we no longer run `df` for those machines.
2024-08-20 16:04:03 -07:00
Henry Mercer
50357f5d12
Add telemetry for time spent extracting CodeQL bundle
2024-08-08 17:46:21 +01:00
Henry Mercer
a52b209ec8
Enable direct tracing the autobuild build mode by default
2024-06-26 19:38:13 +01:00
Henry Mercer
e7d04fdb41
Enable unsafe call rule
2024-06-13 19:38:06 +01:00
Henry Mercer
3d849e9df2
Include underlying error in error message
2024-06-12 13:44:04 +01:00
Henry Mercer
1354fe5355
Attempt to clean up the database cluster directory
...
This will help to avoid issues where the database cluster directory is left in an inconsistent state.
2024-06-12 13:19:30 +01:00
Angela P Wen
ac2f82a1ff
Log warning if SIP is disabled and CLI version is < 2.15.1 ( #2261 )
...
* PR Checks: use `macos-12` runners for CLI v. < 2.15.1
Prior to CLI v2.15.1, MacOS ARM runners were not supported by the build tracer. "macos-latest" is now an ARM runner, so we run these tests on the old CLIs on Intel runners instead.
* Log a warning if SIP is disabled and CLI is < 2.15.1
* Add changenote for SIP-disabled support on old CLI versions
* Set up Python 3.11 for all MacOS checks
2024-04-25 22:20:13 +00:00
Henry Mercer
e37d0f3e7c
Use direct tracing when autobuild build mode specified
...
Behind a flag, for now
2024-04-12 17:06:35 +01:00
Rasmus Wriedt Larsen
c7eea240e2
Remove python dependency installation logic
...
I've left a few warning logging cases, but overall this feature is no
longer supported.
2024-04-04 17:12:58 +02:00
Henry Mercer
eb991df649
Only warn about path filters for CLIs that don't warn
2024-02-22 21:07:29 +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
55c1fd5777
Introduce codeql.supportsFeature
...
This is a slightly simpler API
2024-01-30 21:53:24 +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
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
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
Henry Mercer
f65fc6a926
Remove parsing of queries, packs, paths, and pathsIgnore
2024-01-04 16:27:05 +00:00
Henry Mercer
f934b28e51
Populate path filters env variables using the CLI
2024-01-04 15:17:20 +00:00
Henry Mercer
b683173003
Remove unused arguments
2024-01-04 15:05:15 +00:00