Skip to content

Commit c0e09b9

Browse files
committed
Java: Accept new test results after changes in Autobuild
1 parent a773042 commit c0e09b9

2 files changed

Lines changed: 10 additions & 66 deletions

File tree

java/ql/integration-tests/java/buildless-maven-timeout/diagnostics.expected

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
{
2-
"markdownMessage": "A Maven process was aborted because it didn't write to the console for 5 seconds. Consider either lenghtening the timeout if appropriate by setting CODEQL_EXTRACTOR_JAVA_BUILDLESS_CHILD_PROCESS_IDLE_TIMEOUT to a higher value or zero for no timeout, or else investigate why Maven timed out. Java analysis will continue, but the analysis may be of reduced quality.",
3-
"severity": "note",
4-
"source": {
5-
"extractorName": "java",
6-
"id": "java/autobuilder/buildless/maven-timed-out",
7-
"name": "Java analysis timed out running Maven"
8-
},
9-
"visibility": {
10-
"cliSummaryTable": true,
11-
"statusPage": true,
12-
"telemetry": true
13-
}
14-
}
15-
{
16-
"markdownMessage": "Build tool(s) should have been able to provide a recommended classpath but the attempt failed. Extraction will continue, but external dependencies will be inferred from the Java package names used. Consider troubleshooting the build tool error or using a build mode other than 'none'.",
17-
"severity": "note",
18-
"source": {
19-
"extractorName": "java",
20-
"id": "java/autobuilder/buildless/classpath-from-tool-failed",
21-
"name": "Failed to extract dependency information from build tool tool Maven"
22-
},
23-
"visibility": {
24-
"cliSummaryTable": true,
25-
"statusPage": true,
26-
"telemetry": true
27-
}
28-
}
291
{
302
"markdownMessage": "Java analysis used build tool Maven to pick a JDK version and/or to recommend external dependencies.",
313
"severity": "unknown",
@@ -83,16 +55,16 @@
8355
}
8456
}
8557
{
86-
"markdownMessage": "Running the Maven plugin `com.github.ferstl:depgraph-maven-plugin:4.0.3-CodeQL:graph` failed. This means precise dependency information will be unavailable, and so dependencies will be guessed based on Java package names. Consider investigating why this plugin fails to run.",
87-
"severity": "note",
58+
"markdownMessage": "Reading the dependency graph from build files provided 2 classpath entries",
59+
"severity": "unknown",
8860
"source": {
8961
"extractorName": "java",
90-
"id": "java/autobuilder/buildless/depgraph-maven-plugin-failed",
91-
"name": "Java buildless mode failed to extract a dependency graph from Maven"
62+
"id": "java/autobuilder/buildless/depgraph-provided-by-maven",
63+
"name": "Java analysis extracted precise dependency graph information from tool Maven"
9264
},
9365
"visibility": {
9466
"cliSummaryTable": true,
95-
"statusPage": true,
67+
"statusPage": false,
9668
"telemetry": true
9769
}
9870
}
Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
11
{
2-
"markdownMessage": "A dependency failed to download. Check that all dependencies are available, and [supply credentials for any private dependencies](https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md#set-up-secrets-in-github-action-workflows).\n\nRelevant output line: `Caused by: org.apache.maven.project.DependencyResolutionException: 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`",
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": 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 [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant 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)]`",
2+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant output line: `[ERROR] \tCaused by: The following artifacts could not be resolved: junit-nonesuch:junit-nonesuch:pom:4.11 (absent): 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)]`",
173
"severity": "error",
184
"source": {
195
"extractorName": "java",
206
"id": "java/autobuilder/non-https-repository",
217
"name": "A non-HTTPS Maven repository access failed"
228
},
239
"visibility": {
24-
"cliSummaryTable": false,
25-
"statusPage": false,
10+
"cliSummaryTable": true,
11+
"statusPage": true,
2612
"telemetry": true
2713
}
2814
}
2915
{
30-
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant 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)]`",
16+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant output line: `\tCaused by: The following artifacts could not be resolved: junit-nonesuch:junit-nonesuch:pom:4.11 (absent): 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)]`",
3117
"severity": "error",
3218
"source": {
3319
"extractorName": "java",
@@ -41,7 +27,7 @@
4127
}
4228
}
4329
{
44-
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant output line: `Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Blocked mirror for repositories: [insecure (http://repo.maven.apache.org/maven2/, default, releases+snapshots)]`",
30+
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant output line: `\tCaused by: The following artifacts could not be resolved: junit-nonesuch:junit-nonesuch:pom:4.11 (absent): 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)]`",
4531
"severity": "error",
4632
"source": {
4733
"extractorName": "java",
@@ -54,17 +40,3 @@
5440
"telemetry": true
5541
}
5642
}
57-
{
58-
"markdownMessage": "Building your code triggered an access to an insecure HTTP Maven repository. Allow access to insecure repositories, or [update your build to use HTTPS](https://maven.apache.org/docs/3.8.1/release-notes.html#how-to-fix-when-i-get-a-http-repository-blocked).\n\nRelevant 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]`",
59-
"severity": "error",
60-
"source": {
61-
"extractorName": "java",
62-
"id": "java/autobuilder/non-https-repository",
63-
"name": "A non-HTTPS Maven repository access failed"
64-
},
65-
"visibility": {
66-
"cliSummaryTable": true,
67-
"statusPage": true,
68-
"telemetry": true
69-
}
70-
}

0 commit comments

Comments
 (0)