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
hoshino tsuyoshi
3f7850a179
Improve downloading log message ( #1920 )
...
Previously, a trailing `.` character was recognized as part of the URL in GitHub Actions log output. We add an additional space before it to distinguish.
2023-10-05 21:21:52 +00:00
Henry Mercer
76584bd0a0
Simplify toolcache version number for semantically versioned bundles
2023-08-10 14:36:04 +01:00
Henry Mercer
61cdd2503b
Factor out common code for cleaning up bundle artifacts
2023-08-01 19:47:57 +01:00
Henry Mercer
92c848eb82
Improve variable naming
2023-08-01 19:21:17 +01:00
Henry Mercer
f93fb8df6e
Clean up non-toolcached bundle
2023-08-01 18:50:45 +01:00
Henry Mercer
38adb40e7a
Delete bundle archive after extracting it
2023-08-01 17:49:21 +01:00
Henry Mercer
5658fd1df2
Fix dependency cycle between trap-caching and init
2023-07-19 17:30:33 +01:00
Henry Mercer
c1f49580cf
Fix dependency incompatibilities
2023-07-13 11:20:39 +01:00
Henry Mercer
dc0234b48c
Remove redundant checks
2023-07-07 15:32:20 +01:00
Henry Mercer
bec18d1625
Remove fallback logic for mapping default CLI version to GitHub Release
...
The default version feature flags will now always point to a CLI version
with a semantically versioned bundle, so we can find the GitHub
Release directly from the CLI version.
2023-07-07 15:15:57 +01:00
Henry Mercer
6418c5d819
Skip an API call when downloading a CodeQL version with a semver bundle
...
Previously, we made an API call to look up the CLI version to release
mapping when the default CLI version was requested on Dotcom and that
CLI wasn't in the toolcache.
Now we compute the tag name directly for semver bundles.
2023-07-07 10:58:57 +01:00
Henry Mercer
2bf10dc4b9
Extract semantic CLI version from URL when requesting specific tools
2023-05-16 14:47:32 +01:00
Henry Mercer
e5c2f32a9f
Consistently wrap errors
2023-04-06 17:04:21 +01:00
Henry Mercer
db534af2ae
Remove feature flags for bypassing the toolcache
...
- We can now use the default bundle version feature flags to remediate a
bad bundle update.
- Controlled switchover ensures that a repo consistently gets the same
bundle version, so we no longer have alert churn concerns with Kotlin
and Swift.
2023-02-08 15:20:51 +00:00
Henry Mercer
2b674f7ab9
Fix toolcache behavior when downloading bundle from another repo
2023-02-06 16:25:07 +00:00
Henry Mercer
d3f2b2e6d2
Warn when multiple bundles for a single CLI are found in the toolcache
2023-02-06 12:28:33 +00:00
Henry Mercer
d49282c3b5
Rename forceLatest to forceShippedTools
2023-02-06 11:57:48 +00:00