Fotis Koutoulakis (@NlightNFotis)
0dc76a996d
feat: use http agent that respects environment proxy settings when streaming
2024-12-04 19:29:22 +00:00
Henry Mercer
4a7b2d6c90
Merge branch 'main' into henrymercer/extract-direct-to-toolcache
2024-12-04 10:06:51 +00:00
github-actions[bot]
44e03577b2
Rebuild
2024-12-03 18:39:38 +00:00
Henry Mercer
7bcf845de9
Record telemetry for cache operation duration
2024-12-03 18:23:15 +00:00
Henry Mercer
0b2048550c
Write toolcache marker file
2024-12-03 18:05:53 +00:00
Henry Mercer
198fb4b4b2
Extract directly to toolcache when feature enabled
2024-12-02 18:23:41 +00:00
Angela P Wen
b500b62cea
Throw configuration error when tar is not available
2024-11-18 11:21:11 -08: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
26077f3119
Remove fallback to gzip
...
Data shows it is unneeded
2024-11-01 15:29:16 +00:00
Henry Mercer
33f2dc57a4
Enable zstd bundles on GHES and remove feature flag
2024-11-01 15:24:51 +00:00
Henry Mercer
1f4b0cb523
Add regression test
2024-10-28 20:07:52 +00:00
Henry Mercer
b07135c4b8
Improve robustness of extracting bundle tag name
2024-10-28 20:07:12 +00:00
Henry Mercer
e5048f5d84
Tweak a couple of log messages
2024-10-22 21:19:34 +01:00
Henry Mercer
ab636d7049
Node 16 fix: Import performance
2024-10-10 19:55:07 +01:00
Henry Mercer
4dca88a5fc
Logging: Add a space after a URL for easier copying
2024-10-10 19:48:21 +01:00
Henry Mercer
222ac621e3
Improve duration formatting
2024-10-10 19:48:21 +01:00
Henry Mercer
edd7713837
Only echo command if we are streaming the stdout
2024-10-10 19:48:21 +01:00
Henry Mercer
90c42c41ec
Improve logging
2024-10-10 19:48:21 +01: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
eefb943f7e
Don't use Zstandard bundles on Windows
...
In testing, gzip performs better than Zstandard on Windows.
2024-10-10 19:24:32 +01:00
Henry Mercer
28db28fc03
Improve clean up if extraction fails
2024-10-02 15:45:55 +01:00
Henry Mercer
3da852e107
Capture stderr from extracting .tar.zst
2024-10-02 15:32:34 +01:00
Henry Mercer
bc68dc9d95
Extract constant for first std-compressed version
2024-09-24 17:39:33 +01:00
Henry Mercer
0abc1ec90b
Capture reason if zstd fails unexpectedly
2024-09-23 22:53:13 +01:00
Henry Mercer
4d015b8cba
Fall back to gzip if zstd fails
2024-09-23 22:53:13 +01:00
Henry Mercer
a7a6a6951e
Determine zstd availability earlier on to simplify log
2024-09-23 22:39:47 +01:00
Henry Mercer
db98c27941
Gate zstd enablement on tar version
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
0aafba91ba
Add standard tools URLs to status report
2024-09-05 19:40:26 +02:00
Henry Mercer
27dbb1ab21
Infer compression method from URL
...
Using the downloaded path is unreliable since we may have removed the file extension.
2024-08-29 18:09:34 +01:00
Henry Mercer
379271d235
Support passing local zstd-compressed bundles
2024-08-29 18:08:18 +01:00
Henry Mercer
ffa1b05b27
Only try zstd for specified version ranges of tar
2024-08-29 17:28:43 +01:00
Henry Mercer
cf64c3e3a3
Add telemetry for compression method
2024-08-29 17:26:14 +01:00
Henry Mercer
e2572269a1
Experiment with asking tar to figure out the decompression method
2024-08-29 16:49:45 +01:00
Henry Mercer
50357f5d12
Add telemetry for time spent extracting CodeQL bundle
2024-08-08 17:46:21 +01:00
Henry Mercer
0407820509
Remove CLI version lookup based on release assets
...
This is now superseded by semantically versioned bundles
2024-08-05 19:28:35 +01:00
Henry Mercer
48c11ed2ba
Remove supporting code for CodeQL 2.13.0 through 2.13.4
2024-08-05 19:28:35 +01:00
github-actions[bot]
9cf3243b0b
Rebuild
2024-06-25 09:21:42 +00:00
Fotis Koutoulakis (@NlightNFotis)
df4819e3a1
Soften deprecation message wording and remove unhelpful version strings from some locations
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
bcc13653e8
Move logging messages to downstream function and add deprecation notice
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
4522b08a7e
[SYNC] Sync files in lib/ as requested by CI check that is failing
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
998a4c720d
Change overriding log message to make default version more explicit.
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
c92bbd4223
Add test for CodeQL version appearing in log.
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
cff15d7117
Add logging for CodeQL CLI Version and add tests to the logger for it.
2024-05-13 14:51:06 +01:00
Fotis Koutoulakis (@NlightNFotis)
cbe408dfc9
Add option tools: linked for init action.
...
Also ensure that option latest remains compatible, and add tests for
the two options.
2024-05-13 14:51:06 +01:00
Henry Mercer
1a60a91726
Remove support for CodeQL v2.12.5 and earlier
2024-04-09 12:29:14 +01: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
415881f4cf
Remove code specific to GitHub AE
2024-01-08 13:28:39 +00:00
Henry Mercer
1d367b0bec
Improve error categorizations
2023-12-01 17:54:38 +00:00
Henry Mercer
bd32fab74f
Provide token when downloading from GHES API
2023-10-12 17:26:42 +01:00