-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1051 from github/henrymercer/run-atm-on-windows
Run ML-powered queries on Windows with CodeQL CLI 2.9.0+
- Loading branch information
Showing
11 changed files
with
108 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1804,42 +1804,64 @@ test( | |
"security-extended", | ||
undefined | ||
); | ||
// Test that the ~0.1.0 version of ML-powered queries is run on v2.8.3 of the CLI. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.8.3", | ||
true, | ||
undefined, | ||
"security-extended", | ||
process.platform === "win32" ? undefined : "~0.1.0" | ||
); | ||
// Test that ML-powered queries aren't run when the user hasn't specified that we should run the | ||
// `security-extended` or `security-and-quality` query suite. | ||
test(mlPoweredQueriesMacro, "2.7.5", true, undefined, undefined, undefined); | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-extended`. | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-extended` on | ||
// versions of the CodeQL CLI prior to 2.9.0. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
"2.8.5", | ||
true, | ||
undefined, | ||
"security-extended", | ||
process.platform === "win32" ? undefined : "~0.1.0" | ||
process.platform === "win32" ? undefined : "~0.2.0" | ||
); | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-and-quality`. | ||
// Test that ML-powered queries are run on non-Windows platforms running `security-and-quality` on | ||
// versions of the CodeQL CLI prior to 2.9.0. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
"2.8.5", | ||
true, | ||
undefined, | ||
"security-and-quality", | ||
process.platform === "win32" ? undefined : "~0.1.0" | ||
process.platform === "win32" ? undefined : "~0.2.0" | ||
); | ||
// Test that we don't inject an ML-powered query pack if the user has already specified one. | ||
// Test that ML-powered queries are run on all platforms running `security-extended` on CodeQL CLI | ||
// 2.9.0+. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.7.5", | ||
"2.9.0", | ||
true, | ||
"codeql/[email protected]", | ||
"security-and-quality", | ||
process.platform === "win32" ? undefined : "0.0.1" | ||
undefined, | ||
"security-extended", | ||
"~0.2.0" | ||
); | ||
// Test that the ~0.2.0 version of ML-powered queries is run on v2.8.4 of the CLI. | ||
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL | ||
// CLI 2.9.0+. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.8.4", | ||
"2.9.0", | ||
true, | ||
undefined, | ||
"security-extended", | ||
process.platform === "win32" ? undefined : "~0.2.0" | ||
"security-and-quality", | ||
"~0.2.0" | ||
); | ||
// Test that we don't inject an ML-powered query pack if the user has already specified one. | ||
test( | ||
mlPoweredQueriesMacro, | ||
"2.9.0", | ||
true, | ||
"codeql/[email protected]", | ||
"security-and-quality", | ||
"0.0.1" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters