mirror of
https://github.com/github/codeql-action.git
synced 2026-05-21 07:20:09 +00:00
Mark Swift incompatible OS as configuration error
This commit is contained in:
Generated
+6
@@ -161960,6 +161960,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -107434,6 +107434,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -104016,6 +104016,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -165315,6 +165315,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -107837,6 +107837,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -104015,6 +104015,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -105062,6 +105062,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -162127,6 +162127,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -107067,6 +107067,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -161791,6 +161791,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Generated
+6
@@ -108505,6 +108505,12 @@ var cliErrorsConfig = {
|
||||
)
|
||||
]
|
||||
},
|
||||
["SwiftIncompatibleOs" /* SwiftIncompatibleOs */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS")
|
||||
]
|
||||
},
|
||||
["UnsupportedBuildMode" /* UnsupportedBuildMode */]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
@@ -299,6 +299,20 @@ test("wrapCliConfigurationError - swift build failed", (t) => {
|
||||
t.true(wrappedError instanceof ConfigurationError);
|
||||
});
|
||||
|
||||
test("wrapCliConfigurationError - swift incompatible os", (t) => {
|
||||
const commandError = new CommandInvocationError(
|
||||
"codeql",
|
||||
["swift/tools/autobuild.sh"],
|
||||
1,
|
||||
"2026-04-01 18:35:00 EST ERRO [extractor/main] [incompatible-os] Currently, Swift analysis is only supported on macOS. (IncompatibleOs.cpp:26)",
|
||||
);
|
||||
const cliError = new CliError(commandError);
|
||||
|
||||
const wrappedError = wrapCliConfigurationError(cliError);
|
||||
|
||||
t.true(wrappedError instanceof ConfigurationError);
|
||||
});
|
||||
|
||||
test("wrapCliConfigurationError - pack cannot be found", (t) => {
|
||||
const commandError = new CommandInvocationError(
|
||||
"codeql",
|
||||
|
||||
@@ -144,6 +144,7 @@ export enum CliConfigErrorCategory {
|
||||
OutOfMemoryOrDisk = "OutOfMemoryOrDisk",
|
||||
PackCannotBeFound = "PackCannotBeFound",
|
||||
PackMissingAuth = "PackMissingAuth",
|
||||
SwiftIncompatibleOs = "SwiftIncompatibleOs",
|
||||
SwiftBuildFailed = "SwiftBuildFailed",
|
||||
UnsupportedBuildMode = "UnsupportedBuildMode",
|
||||
}
|
||||
@@ -281,6 +282,12 @@ const cliErrorsConfig: Record<CliConfigErrorCategory, CliErrorConfiguration> = {
|
||||
),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.SwiftIncompatibleOs]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("\\[incompatible-os\\]"),
|
||||
new RegExp("Swift analysis is only supported on macOS"),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.UnsupportedBuildMode]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
||||
Reference in New Issue
Block a user