Henry Mercer
f54f0731d1
Merge branch 'main' into henrymercer/semver-bundles
2023-05-17 14:45:33 +01:00
Henry Mercer
a1be09ed8a
Remove redundant query help version flag
2023-05-16 18:20:13 +01:00
Henry Mercer
2bf10dc4b9
Extract semantic CLI version from URL when requesting specific tools
2023-05-16 14:47:32 +01:00
Andrew Eisenberg
2754e10472
Move to the codeql-testing org
...
Refer to the packages in codeql-testing, not in dsp-testing.
2023-04-04 13:39:56 -07:00
Henry Mercer
ade432fd68
Remove duplicate locations from output of database interpret-results
2023-03-24 20:30:57 +00:00
Henry Mercer
fc1366f6ec
Gate config export behind a feature flag
2023-03-09 16:44:45 +00:00
Henry Mercer
4b1f530308
Export configuration information for green runs
2023-03-07 21:22:43 +00:00
Henry Mercer
c310f094dd
Fix name of qlconfig file argument
2023-03-07 08:46:58 -08:00
Henry Mercer
4366485427
Avoid passing an undefined qlconfig arg
2023-03-07 08:46:57 -08:00
Henry Mercer
8340258886
Avoid writing user-config.yaml file while running tests
2023-03-07 08:46:57 -08:00
Andrew Eisenberg
5492b7d104
Add tests for generateRegistries with an existing CODEQL_REGISTRIES_AUTH
2023-02-09 13:37:08 -08:00
Andrew Eisenberg
3c81243bb1
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2023-02-09 12:25:33 -08:00
Andrew Eisenberg
e2f72f11e4
Merge remote-tracking branch 'upstream/main' into aeisenberg/qlconfig-in-cli
2023-02-09 09:47:43 -08: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
Andrew Eisenberg
bbe8d375fd
Ensure qlconfig file is created when config parsing in cli is on
...
Previously, with the config parsing in the cli feature flag turned on,
the CLI was not able to download packs from other registries. This PR
adds the codeql-action changes required for this. The CLI changes will
be in a separate, internal PR.
2023-02-07 10:40:56 -08:00
Henry Mercer
6d47a7c8b1
Add regression test for bundle from different repo
2023-02-06 16:25:07 +00:00
Henry Mercer
e0fc1c91b2
Add regression test for a bundle URL without a tag
2023-02-03 19:13:24 +00:00
Angela P Wen
4664f39699
Ensure that tools_download_duration_ms is int ( #1513 )
2023-01-27 09:03:57 +00:00
Henry Mercer
0a9e9db27f
Add failing regression test
2023-01-26 11:49:24 +00:00
Angela P Wen
24ca6b0400
Send tools telemetry to init status report ( #1497 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2023-01-25 11:09:18 -08:00
Henry Mercer
291cc75959
Add test case
2023-01-20 15:30:57 +00:00
Henry Mercer
ba93815e25
Merge branch 'main' into henrymercer/upgrade-typescript
2023-01-19 16:15:51 +00:00
Henry Mercer
5f644f971e
Upgrade TypeScript to 9.2.0
2023-01-18 20:59:57 +00:00
Henry Mercer
8a4abfd10a
Support cli-version-x.y.z-pre.txt marker files
2023-01-18 15:55:23 +00:00
Henry Mercer
0be20e5ce1
Use the CLI version when caching the bundle in telemetry too
2023-01-12 21:09:09 +00:00
Henry Mercer
33206d299e
Include the bundle version in the toolcache version number
...
This gives us an easy cache hit when requesting the same tools URL.
2023-01-12 20:56:31 +00:00
Henry Mercer
c2e39e078f
Cache explicitly requested bundles with their URL if possible
2023-01-12 20:44:05 +00:00
Henry Mercer
a89ad76881
Expand note about defaults.json compatibility
...
In the future we might convert the file to JSON with comments, or add
this note to a JSON schema.
2023-01-12 15:46:12 +00:00
Henry Mercer
648838c4a0
Allow using a x.y.z-yyyymmdd toolcache version for CLI x.y.z.
2023-01-12 15:41:07 +00:00
Henry Mercer
23d151db1c
Add test for using default version with no requested URL on Dotcom
2023-01-11 19:06:50 +00:00
Henry Mercer
c3be36f5cb
Use new default version to set up CodeQL
2023-01-11 19:06:50 +00:00
Henry Mercer
bd2f52fcef
Move CodeQL setup to its own file
2023-01-11 19:06:50 +00:00
Henry Mercer
a76fe4f9bd
Enable mapping from CLI version to bundle tag name
2023-01-11 19:06:50 +00:00
Henry Mercer
6ba0a36550
Add JSDoc for mockDownloadApi
2023-01-11 15:25:21 +00:00
Henry Mercer
4a918790cd
Merge branch 'main' into henrymercer/fix-ghae-setup-test
2023-01-11 15:23:04 +00:00
Henry Mercer
28a9b2d6d7
Add a note regarding the sinon workaround
2023-01-10 19:43:23 +00:00
Henry Mercer
9f8ddbdfd7
Fix GHAE CodeQL setup test
2023-01-10 19:36:29 +00:00
Henry Mercer
9203e314a3
Improve CodeQL setup test structure and naming
2023-01-10 19:35:21 +00:00
Andrew Eisenberg
4023575d64
Send the external repository token to the CLI
...
This commit does a few related things:
1. Bumps the minimum version for cli config parsing to 2.10.6
2. Ensures that if cli config parsing is enabled, then remove repos
are _not_ downloaded by the action. It happens in the CLI.
3. Passes the `--external-repository-token-stdin` option to the CLI
and passes the appropriate token via stdin if cli config parsing is
enabled.
2023-01-06 14:46:28 -08:00
Henry Mercer
2cbc140ac5
Enable file baseline export by default
...
This is now fully rolled out.
2022-12-05 14:10:06 +00:00
Angela P Wen
aa0e650c6a
Surface fatal CLI errors in interpret-results and run-queries ( #1407 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2022-12-02 14:05:21 +01:00
Andrew Eisenberg
f79028af27
Add the feature to bypass the toolcache for kotlin and swift
...
This works by moving the logic to check for toolcache bypass out of
creating the codeql instance. The logic now _may_ perform an API request
in order to check what languages are in the repository. This check is
redundant because the same call is being made later in the action when
the actual list of languages is calculated.
2022-11-23 15:11:20 -08:00
Henry Mercer
bc341c5dd1
Remove fallback logic for GHES 2.22 when determining Action repository
2022-11-23 18:19:25 +00:00
Henry Mercer
3d46406f3b
Remove runner-only input to databaseInitCluster
2022-11-14 18:49:17 +00:00
Henry Mercer
b498c79130
Remove concept of Actions / runner mode
2022-11-14 16:37:48 +00:00
Henry Mercer
89e18934d3
Forward file baseline information enablement to CLI
2022-11-01 17:10:53 +00:00
Henry Mercer
43c3ed9c28
More feature flag renaming
2022-10-11 11:52:55 -07:00
Andrew Eisenberg
701cea34ba
More renaming
2022-10-11 10:39:40 -07:00
Andrew Eisenberg
1a17c59fb0
More renaming
...
Avoid usage of "Feature Flag" unless we are talking specifically about
the response from github features api. Otherwise, use terms like
"Toggleable features".
Note both "toggleable" and "togglable" appear to be valid spellings of
the word. I chose the first for no good reason.
2022-10-07 11:33:32 -07:00
Andrew Eisenberg
6de05e4b24
Rename FeatureFlag -> Feature
2022-10-06 13:06:10 -07:00