Commit Graph

43 Commits

Author SHA1 Message Date
Henry Mercer 44e589b637 Fix feature flag lookup when uploading DB 2026-01-05 14:07:03 +00:00
Henry Mercer a2917b0733 Check !== undefined rather than truthiness 2025-12-17 16:27:36 +00:00
Henry Mercer 67e683bd1b Report bundled DB size in error if known 2025-12-17 16:02:55 +00:00
Henry Mercer e9626872ef Merge branch 'main' into henrymercer/database-upload-telemetry 2025-12-16 15:53:31 +00:00
Henry Mercer 19c7f96922 Rename isOverlayBase 2025-12-16 15:41:50 +00:00
Henry Mercer ae5de9a20d Use getErrorMessage in log too 2025-12-16 15:41:04 +00:00
Henry Mercer 0cb86337c5 Prefer performance.now() 2025-12-16 15:38:29 +00:00
Henry Mercer 5d063dd3af Populate database upload results telemetry 2025-12-15 12:55:12 +00:00
Henry Mercer 8e921c3145 Return status report from cleanupAndUploadDatabases 2025-12-15 12:55:12 +00:00
Henry Mercer 1fc7d3785d Rename GHE_DOTCOM to GHEC_DR
This more closely reflects the published naming https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/about-github-enterprise-cloud-with-data-residency
2025-12-10 17:41:19 +00:00
Henry Mercer c649c5993d Upload overlay base DB to API behind FF 2025-11-18 18:43:19 +00:00
Henry Mercer 31042e9879 Rename function calls to make destructive operation clearer 2025-11-18 18:42:15 +00:00
Michael B. Gale 79ed9569a3 Always skip database upload if AnalysisKind.CodeScanning is not enabled 2025-10-21 12:33:56 +01:00
Henry Mercer c7884c6fd8 Clean up the database if it will be uploaded 2025-08-07 11:47:45 +01:00
Chuan-kai Lin b0cd76b9fb Move Git functions to git-utils.ts 2024-12-10 08:44:11 -08:00
Henry Mercer 2f54d9fcfa Enable no console rule 2024-06-13 19:47:29 +01:00
Henry Mercer 12243c759f Disable database upload in test mode 2024-06-11 19:07:13 +01:00
Koen Vlaswinkel 24766fcf56 Fix trailing slash on uploads URL 2024-05-13 16:31:17 +02:00
Koen Vlaswinkel bc3670a4f4 Enable database uploads for GHEC-DR 2024-05-13 13:27:07 +02:00
Nora e62d946796 Add new param to test 2023-10-10 08:48:53 +00:00
Nora 8193a92e41 Await commitOid 2023-10-09 07:43:35 +00:00
Nora aed2e7f47f Add commit id to params 2023-10-06 13:16:13 +00:00
Nora 075eb6aaea Use getCommitOid to get the id 2023-10-05 14:47:51 +00:00
Nora 1727de39fe Add commit sha to database upload 2023-10-05 09:49:13 +00:00
Angela P Wen b16296be30 Auto-fix linting errors 2023-07-25 10:34:21 +02:00
Robert a9337bc304 Close stream after use 2023-01-09 11:00:43 +00:00
Robert e8f7169839 Move database bundling to inside the try-catch 2023-01-06 15:28:25 +00:00
Robert 6ce923c375 Use a stream when uploading database contents 2023-01-06 15:16:51 +00:00
Henry Mercer 9df773d1a3 Remove unneeded apiDetails input to getApiClient 2022-11-14 19:55:30 +00:00
Robert 8aa32bd9c9 Remove check of database uploads feature flag 2022-02-15 14:10:33 +00:00
Robin Neatherway 486633d442 Try string literal key 2022-01-25 16:33:09 +00:00
Robin Neatherway 751af2a9e3 Set contentType for database uploads 2022-01-24 15:54:46 +00:00
Robin Neatherway 1a686e7d76 Remove old upload path
The `useUploadDomain` approach is now fully enabled
2022-01-24 15:47:08 +00:00
Edoardo Pirovano e677af3fd0 Make name of debugging artifact and DB within it configurable 2022-01-07 15:10:26 +00:00
Henry Mercer 6d62c245ec Represent feature flags using an enum
Replaces the previous string literal type
2021-12-16 13:38:34 +00:00
Henry Mercer d6499fad61 Use new feature flag architecture when uploading databases 2021-12-15 13:17:05 +00:00
Robert c82e09aa41 Delete bundled db before recreating 2021-12-01 12:25:57 +00:00
Robert 460d053698 Upload using uploads.github.com if enabled for that repository 2021-12-01 12:13:46 +00:00
Edoardo Pirovano bc31f604d3 Add an option to upload some debugging artifacts 2021-11-01 16:12:50 +00:00
Edoardo Pirovano 70d2efc353 Enforce a minimum version of CodeQL CLI 2021-08-18 11:48:12 +01:00
Robert 96edcdfd20 use templating for language param 2021-07-13 17:05:40 +01:00
Robert b0b9ab80cc Update databases URL 2021-07-13 14:09:56 +01:00
Robert 146c897909 Upload CodeQL databases 2021-06-22 13:05:12 +01:00