Skip to content

Commit 73e4480

Browse files
committed
Update test expectations
1 parent 2c21679 commit 73e4480

File tree

9 files changed

+252
-18
lines changed

9 files changed

+252
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
{"markdownMessage": "It looks like an Android build may have failed. Ensure the Code Scanning workflow installs any dependencies such as the NDK or React Native, and that the Gradle and Android SDK versions being used are compatible. Suspicious output line: ` > Minimum supported Gradle version is 7.4. Current version is 7.3. If using the gradle wrapper, try editing the distributionUrl in <test-root-directory>/gradle/wrapper/gradle-wrapper.properties to gradle-7.4-all.zip`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/android-build-failure", "name": "Android build failure"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
2-
{"markdownMessage": "It looks like an Android build may have failed. Ensure the Code Scanning workflow installs any dependencies such as the NDK or React Native, and that the Gradle and Android SDK versions being used are compatible. Suspicious output line: `Caused by: java.lang.RuntimeException: Minimum supported Gradle version is 7.4. Current version is 7.3. If using the gradle wrapper, try editing the distributionUrl in <test-root-directory>/gradle/wrapper/gradle-wrapper.properties to gradle-7.4-all.zip`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/android-build-failure", "name": "Android build failure"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
1+
{
2+
"markdownMessage": "An Android build may have failed. Ensure the Code Scanning workflow installs required dependencies, and that the [https://developer.android.com/studio/releases/gradle-plugin#updating-gradle](Gradle and Android SDK versions are compatible). Suspicious output line: ` > Minimum supported Gradle version is 7.4. Current version is 7.3. If using the gradle wrapper, try editing the distributionUrl in <test-root-directory>/gradle/wrapper/gradle-wrapper.properties to gradle-7.4-all.zip`",
3+
"severity": "error",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/android-build-failure",
7+
"name": "Android build failure"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": true,
12+
"telemetry": true
13+
}
14+
}
15+
{
16+
"markdownMessage": "An Android build may have failed. Ensure the Code Scanning workflow installs required dependencies, and that the [https://developer.android.com/studio/releases/gradle-plugin#updating-gradle](Gradle and Android SDK versions are compatible). Suspicious output line: `Caused by: java.lang.RuntimeException: Minimum supported Gradle version is 7.4. Current version is 7.3. If using the gradle wrapper, try editing the distributionUrl in <test-root-directory>/gradle/wrapper/gradle-wrapper.properties to gradle-7.4-all.zip`",
17+
"severity": "error",
18+
"source": {
19+
"extractorName": "java",
20+
"id": "java/autobuilder/android-build-failure",
21+
"name": "Android build failure"
22+
},
23+
"visibility": {
24+
"cliSummaryTable": false,
25+
"statusPage": false,
26+
"telemetry": true
27+
}
28+
}
Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1-
{"markdownMessage": "A compilation error was observed while autobuilding your code. Please check that the needed compiler version and other tools are installed in your Code Scanning workflow. Suspicious output line: `[ERROR] COMPILATION ERROR : `", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/compilation-error", "name": "Some of your code may have failed to compile"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
2-
{"markdownMessage": "A compilation error was observed while autobuilding your code. Please check that the needed compiler version and other tools are installed in your Code Scanning workflow. Suspicious output line: `[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project maven-sample: Compilation failure`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/compilation-error", "name": "Some of your code may have failed to compile"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
3-
{"markdownMessage": "A compilation error was observed while autobuilding your code. Please check that the needed compiler version and other tools are installed in your Code Scanning workflow. Suspicious output line: `org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project maven-sample: Compilation failure`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/compilation-error", "name": "Some of your code may have failed to compile"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
1+
{
2+
"markdownMessage": "A compilation error was observed while autobuilding your code. Check that your Code Scanning workflow installs the needed compiler version and dependencies. Suspicious output line: `[ERROR] COMPILATION ERROR : `",
3+
"severity": "error",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/compilation-error",
7+
"name": "Some of your code may have failed to compile"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": true,
12+
"telemetry": true
13+
}
14+
}
15+
{
16+
"markdownMessage": "A compilation error was observed while autobuilding your code. Check that your Code Scanning workflow installs the needed compiler version and dependencies. Suspicious output line: `[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project maven-sample: Compilation failure`",
17+
"severity": "error",
18+
"source": {
19+
"extractorName": "java",
20+
"id": "java/autobuilder/compilation-error",
21+
"name": "Some of your code may have failed to compile"
22+
},
23+
"visibility": {
24+
"cliSummaryTable": false,
25+
"statusPage": false,
26+
"telemetry": true
27+
}
28+
}
29+
{
30+
"markdownMessage": "A compilation error was observed while autobuilding your code. Check that your Code Scanning workflow installs the needed compiler version and dependencies. Suspicious output line: `org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project maven-sample: Compilation failure`",
31+
"severity": "error",
32+
"source": {
33+
"extractorName": "java",
34+
"id": "java/autobuilder/compilation-error",
35+
"name": "Some of your code may have failed to compile"
36+
},
37+
"visibility": {
38+
"cliSummaryTable": false,
39+
"statusPage": false,
40+
"telemetry": true
41+
}
42+
}
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
{"markdownMessage": "In the course of building your code, it looks like a dependency failed to download. Check that all dependencies are available, including supplying credentials to access any private dependencies. Suspicious output line: `Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact junit:junit-nonesuch:jar:4.11 in central (https://repo.maven.apache.org/maven2)`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/dependency-download-failure", "name": "Failed to download a dependency"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
1+
{
2+
"markdownMessage": "A dependency failed to download. Check that all dependencies are available, and [https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md#set-up-secrets-in-github-action-workflows](supply credentials for any private dependencies). Suspicious output line: `Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact junit:junit-nonesuch:jar:4.11 in central (https://repo.maven.apache.org/maven2)`",
3+
"severity": "error",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/dependency-download-failure",
7+
"name": "Failed to download a dependency"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": true,
12+
"telemetry": true
13+
}
14+
}
Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
{"markdownMessage": "Your project may need a different JDK version. Consider adding an `actions/setup-java` step to the Code Scanning workflow file. Suspicious output line: `> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/wrong-jdk-version", "name": "Your project may need a different JDK version"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
2-
{"markdownMessage": "Your project may need a different JDK version. Consider adding an `actions/setup-java` step to the Code Scanning workflow file. Suspicious output line: `Caused by: java.lang.IllegalArgumentException: Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/wrong-jdk-version", "name": "Your project may need a different JDK version"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
1+
{
2+
"markdownMessage": "Your project may need a different JDK version. Ensure your Code Scanning workflow file has [https://github.com/actions/setup-java#eclipse-temurin](an appropriate `setup-java` step). Suspicious output line: `> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.`",
3+
"severity": "error",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/wrong-jdk-version",
7+
"name": "Your project may need a different JDK version"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": true,
12+
"telemetry": true
13+
}
14+
}
15+
{
16+
"markdownMessage": "Your project may need a different JDK version. Ensure your Code Scanning workflow file has [https://github.com/actions/setup-java#eclipse-temurin](an appropriate `setup-java` step). Suspicious output line: `Caused by: java.lang.IllegalArgumentException: Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.`",
17+
"severity": "error",
18+
"source": {
19+
"extractorName": "java",
20+
"id": "java/autobuilder/wrong-jdk-version",
21+
"name": "Your project may need a different JDK version"
22+
},
23+
"visibility": {
24+
"cliSummaryTable": false,
25+
"statusPage": false,
26+
"telemetry": true
27+
}
28+
}
Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,56 @@
1-
{"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Edit your code scanning workflow to override the default block on insecure repositories, or update your code to use HTTPS to access dependencies. Suspicious output line: `Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/non-https-repository", "name": "A non-https Maven repository access failed"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
2-
{"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Edit your code scanning workflow to override the default block on insecure repositories, or update your code to use HTTPS to access dependencies. Suspicious output line: `Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/non-https-repository", "name": "A non-https Maven repository access failed"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
3-
{"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Edit your code scanning workflow to override the default block on insecure repositories, or update your code to use HTTPS to access dependencies. Suspicious output line: `Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/non-https-repository", "name": "A non-https Maven repository access failed"}, "visibility": {"cliSummaryTable": false, "statusPage": false, "telemetry": true}}
4-
{"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Edit your code scanning workflow to override the default block on insecure repositories, or update your code to use HTTPS to access dependencies. Suspicious output line: `[ERROR] Failed to execute goal on project maven-sample: Could not resolve dependencies for project com.example:maven-sample:jar:1.0-SNAPSHOT: Failed to collect dependencies at junit-nonesuch:junit-nonesuch:jar:4.11: Failed to read artifact descriptor for junit-nonesuch:junit-nonesuch:jar:4.11: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)] -> [Help 1]`", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/non-https-repository", "name": "A non-https Maven repository access failed"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
1+
{
2+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked](update your build to use HTTPS). Suspicious output line: `Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`",
3+
"severity": "error",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/non-https-repository",
7+
"name": "A non-https Maven repository access failed"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": false,
11+
"statusPage": false,
12+
"telemetry": true
13+
}
14+
}
15+
{
16+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked](update your build to use HTTPS). Suspicious output line: `Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`",
17+
"severity": "error",
18+
"source": {
19+
"extractorName": "java",
20+
"id": "java/autobuilder/non-https-repository",
21+
"name": "A non-https Maven repository access failed"
22+
},
23+
"visibility": {
24+
"cliSummaryTable": false,
25+
"statusPage": false,
26+
"telemetry": true
27+
}
28+
}
29+
{
30+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked](update your build to use HTTPS). Suspicious output line: `Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`",
31+
"severity": "error",
32+
"source": {
33+
"extractorName": "java",
34+
"id": "java/autobuilder/non-https-repository",
35+
"name": "A non-https Maven repository access failed"
36+
},
37+
"visibility": {
38+
"cliSummaryTable": false,
39+
"statusPage": false,
40+
"telemetry": true
41+
}
42+
}
43+
{
44+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked](update your build to use HTTPS). Suspicious output line: `[ERROR] Failed to execute goal on project maven-sample: Could not resolve dependencies for project com.example:maven-sample:jar:1.0-SNAPSHOT: Failed to collect dependencies at junit-nonesuch:junit-nonesuch:jar:4.11: Failed to read artifact descriptor for junit-nonesuch:junit-nonesuch:jar:4.11: Could not transfer artifact junit-nonesuch:junit-nonesuch:pom:4.11 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)] -> [Help 1]`",
45+
"severity": "error",
46+
"source": {
47+
"extractorName": "java",
48+
"id": "java/autobuilder/non-https-repository",
49+
"name": "A non-https Maven repository access failed"
50+
},
51+
"visibility": {
52+
"cliSummaryTable": true,
53+
"statusPage": true,
54+
"telemetry": true
55+
}
56+
}
Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
{"markdownMessage": "Building using Maven was skipped because there were multiple sibling build directories containing build files: [./maven-project-1,./maven-project-2]. If you want to use one of these, please [TODO](manually supply a build command)", "severity": "warning", "source": {"extractorName": "java", "id": "java/autobuilder/multiple-candidate-build-directories", "name": "Multiple candidate Maven build directories"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
2-
{"markdownMessage": "If you want to use one of the candidate build systems and directories (see previous warnings), please [TODO](supply a manual a build command)", "severity": "error", "source": {"extractorName": "java", "id": "java/autobuilder/multiple-candidate-build-directories-fatal", "name": "No build system could identify a unique top-level project"}, "visibility": {"cliSummaryTable": true, "statusPage": true, "telemetry": true}}
1+
{
2+
"markdownMessage": "Building using Maven was skipped because there were multiple sibling build directories containing build files: [./maven-project-1,./maven-project-2]. If you want to use one of these, please [TODO](manually supply a build command)",
3+
"severity": "warning",
4+
"source": {
5+
"extractorName": "java",
6+
"id": "java/autobuilder/multiple-candidate-build-directories",
7+
"name": "Multiple candidate Maven build directories"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": true,
12+
"telemetry": true
13+
}
14+
}
15+
{
16+
"markdownMessage": "If you want to use one of the candidate build systems and directories (see previous warnings), please [https://docs.github.com/en/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-language](supply a manual a build command)",
17+
"severity": "error",
18+
"source": {
19+
"extractorName": "java",
20+
"id": "java/autobuilder/multiple-candidate-build-directories-fatal",
21+
"name": "No build system could identify a unique top-level project"
22+
},
23+
"visibility": {
24+
"cliSummaryTable": true,
25+
"statusPage": true,
26+
"telemetry": true
27+
}
28+
}

0 commit comments

Comments
 (0)