Add an option to upload some debugging artifacts

This commit is contained in:
Edoardo Pirovano 2021-10-28 14:15:22 +01:00
parent 4293754ed2
commit bc31f604d3
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
40 changed files with 374 additions and 65 deletions

View file

@ -85,6 +85,7 @@ test("load empty config", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -102,6 +103,7 @@ test("load empty config", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -144,6 +146,7 @@ test("loading config saves config", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -172,6 +175,7 @@ test("load input outside of workspace", async (t) => {
undefined,
"../input",
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -207,6 +211,7 @@ test("load non-local input with invalid repo syntax", async (t) => {
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -243,6 +248,7 @@ test("load non-existent input", async (t) => {
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -326,6 +332,7 @@ test("load non-empty input", async (t) => {
gitHubVersion,
dbLocation: path.resolve(tmpDir, "codeql_databases"),
packs: {} as configUtils.Packs,
debugMode: false,
};
const languages = "javascript";
@ -337,6 +344,7 @@ test("load non-empty input", async (t) => {
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -400,6 +408,7 @@ test("Default queries are used", async (t) => {
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -471,6 +480,7 @@ test("Queries can be specified in config file", async (t) => {
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -536,6 +546,7 @@ test("Queries from config file can be overridden in workflow file", async (t) =>
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -599,6 +610,7 @@ test("Queries in workflow file can be used in tandem with the 'disable default q
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -655,6 +667,7 @@ test("Multiple queries can be specified in workflow file, no config file require
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -732,6 +745,7 @@ test("Queries in workflow file can be added to the set of queries without overri
undefined,
configFilePath,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -799,6 +813,7 @@ test("Invalid queries in workflow file handled correctly", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -863,6 +878,7 @@ test("API client used when reading remote config", async (t) => {
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -889,6 +905,7 @@ test("Remote config handles the case where a directory is provided", async (t) =
undefined,
repoReference,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -923,6 +940,7 @@ test("Invalid format of remote config handled correctly", async (t) => {
undefined,
repoReference,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -958,6 +976,7 @@ test("No detected languages", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -985,6 +1004,7 @@ test("Unknown languages", async (t) => {
undefined,
undefined,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -1034,6 +1054,7 @@ test("Config specifies packages", async (t) => {
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,
@ -1092,6 +1113,7 @@ test("Config specifies packages for multiple languages", async (t) => {
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example" },
tmpDir,
tmpDir,
@ -1166,6 +1188,7 @@ function doInvalidInputTest(
undefined,
configFile,
undefined,
false,
{ owner: "github", repo: "example " },
tmpDir,
tmpDir,