Henry Mercer
e85017e674
Merge pull request #2514 from github/henrymercer/zstd-better-failure-logging
...
Capture stderr from extracting Zstandard bundles
2024-10-02 22:14:53 +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
Angela P Wen
a196a714b8
Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled ( #2482 )
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
Co-authored-by: Henry Mercer <henrymercer@github.com >
2024-10-01 09:59:05 -07:00
Henry Mercer
1aa7f6f05d
Refactor: Pull out generic tool invocation functionality
2024-10-01 14:39:04 +01:00
Henry Mercer
bc68dc9d95
Extract constant for first std-compressed version
2024-09-24 17:39:33 +01:00
Henry Mercer
20bd6feb0b
Merge branch 'main' into henrymercer/zstd-experiment
2024-09-23 23:06:24 +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
e7309d2b5c
Add feature flag for using zstd bundle
2024-09-23 22:39:46 +01:00
Henry Mercer
e0a151e64e
Fix inconsistency in autobuild error tracking
2024-09-23 22:34:32 +01:00
Chris Smowton
e0e2d7557d
Merge branch 'main' into update-bundle/codeql-bundle-v2.19.0
2024-09-18 13:24:05 +01:00
Remco Vermeulen
a1a585f2ab
Merge branch 'main' into rvermeulen/uri-errors-as-warnings
2024-09-17 14:09:52 -07:00
Henry Mercer
6e24973d7a
Improve logging for combined SARIF debug artifact
2024-09-17 11:15:08 +02:00
Henry Mercer
d0a3cf2152
Improve logging for debug artifacts
2024-09-17 11:08:27 +02:00
Henry Mercer
78d398ebc6
Improve docs and method naming
2024-09-17 10:58:00 +02:00
Remco Vermeulen
642bbfc83a
Turn invalid helpUri attribute into a warning
2024-09-16 20:22:13 -07:00
Henry Mercer
213bf3678c
Improve documentation
2024-09-16 23:05:17 +02:00
Henry Mercer
dd7307d603
Refactoring: Simplify retrieving error message
2024-09-16 22:38:35 +02:00
Henry Mercer
bbd7c801a0
Fall back to partial database bundle if CLI command fails
2024-09-16 22:29:11 +02:00
Henry Mercer
80d7a6c8d4
Tolerate failures in uploading debug artifacts
2024-09-16 22:20:22 +02:00
github-actions[bot]
bbd9c4a63d
Update default bundle to codeql-bundle-v2.19.0
2024-09-16 16:57:27 +00:00
Henry Mercer
d061f2cdd0
Handle CLI errors when creating debug artifacts
2024-09-16 18:39:39 +02:00
Angela P Wen
fe22310da9
Merge pull request #2475 from github/angelapwen/refactor-debug-artifacts-upload
...
Refactor: prepare debug artifacts for `artifact` upgrades
2024-09-13 09:47:26 -07:00
Angela P Wen
bc660fcf8c
Copy SARIF file to database location rather than move
2024-09-12 12:58:13 -07:00
Angela P Wen
e7716806b8
Rename upload-debug-artifacts to combined-sarif-artifacts
...
More accurately describes what these artifacts are, rather than the step they're uploaded in.
2024-09-12 12:56:38 -07:00
Angela P Wen
cb7faf53f6
Refactor: move combined SARIF debug artifact logic to debug-artifact
2024-09-12 12:55:49 -07:00
Angela P Wen
d4bfd40513
Use .push rather than .concat
2024-09-11 16:37:04 -07:00
Angela P Wen
82ce3131fa
Remove unused helper file
2024-09-11 16:36:48 -07:00
Angela P Wen
c098b253f6
Only upload upload-sarif debug artifacts at most once
...
Previously, we uploaded combined SARIF artifacts in both the `analyze-post` and `upload-sarif-post` steps. This change ensures that these artifacts are uploaded at most once — in `analyze-post` if it is a first-party run and `upload-sarif-post` if it is a third-party run.
This is a defensive check because as we upgrade to the new `artifact` dependencies we will not be able to upload artifacts to the same artifact directory.
2024-09-11 15:11:27 -07:00
Angela P Wen
b296f2676c
Refactor: upload all available debug artifacts in init-post
...
Previously, we uploaded SARIF artifacts in the `analyze-post` step and database and log artifacts in the `init-post` step. As we migrate to the updated `artifact` dependencies, we want to switch to uploading all artifacts in one step.
In order to upload all artifacts in one go and maintain the artifacts at the root of the debug directory, we first move SARIF artifacts to the database directory. This should not affect any other consumers of the SARIF file as this occurs in the `init-post` step.
2024-09-11 15:09:29 -07:00
github-actions[bot]
2a9bba1c35
Update default bundle to codeql-bundle-v2.18.4
2024-09-10 13:26:08 +00:00
Henry Mercer
9b41ced437
Merge pull request #2464 from github/henrymercer/tools-url-status-report
...
Add standard tools URLs to status report
2024-09-05 19:43:52 +01:00
Henry Mercer
0aafba91ba
Add standard tools URLs to status report
2024-09-05 19:40:26 +02:00
Henry Mercer
de6fe7e20a
Add job run UUID to SARIF output
2024-09-05 14:52:43 +02:00
Simon Friis Vindum
878047babe
Merge branch 'main' into use-cache-cleanup-flag
2024-09-02 08:33:48 +02:00
Simon Friis Vindum
9a16e925c6
Guard usage of cache-cleanup option by version check
2024-09-02 08:32:47 +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
335044a8db
Add detected tar version to telemetry
2024-08-29 17:45:08 +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
Simon Friis Vindum
e4525acbcb
Use cache-cleanup command line option
...
The --mode command line option to has been renamed to --cache-cleanup
2024-08-28 16:48:01 +02:00
github-actions[bot]
2966897c67
Update default bundle to codeql-bundle-v2.18.3
2024-08-27 20:04:11 +00:00
Henry Mercer
ab408a875b
Merge branch 'main' into update-supported-enterprise-server-versions
2024-08-27 13:10:43 +01:00
Dave Bartolomeo
276a3bec54
Fix formatting
2024-08-23 17:10:21 -04:00