Skip to content

Commit 31b3beb

Browse files
authored
[GenAI] Test fix for org.apache.maven.shared:maven-common-artifact-filters:3.1.1 using gpt-5.5 (#8682)
* Prepare project for org.apache.maven.shared:maven-common-artifact-filters:3.1.1 * Dynamic-access coverage for org.apache.maven.shared.artifact.filter.collection.Invoker (5/5) * Native metadata for org.apache.maven.shared.artifact.filter.collection.Invoker * Preserve last passing candidate for org.apache.maven.shared:maven-common-artifact-filters:3.1.1 * Update generated library support for org.apache.maven.shared:maven-common-artifact-filters:3.1.1 * Fixed test for org.apache.maven.shared:maven-common-artifact-filters:3.1.1
1 parent 8394050 commit 31b3beb

12 files changed

Lines changed: 885 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"reflection" : [
3+
{
4+
"condition" : {
5+
"typeReached" : "org.apache.maven.shared.artifact.filter.collection.Invoker"
6+
},
7+
"type" : "java.lang.Class"
8+
},
9+
{
10+
"condition" : {
11+
"typeReached" : "org.apache.maven.shared.artifact.filter.collection.Invoker"
12+
},
13+
"type" : "java.lang.reflect.Method[]"
14+
},
15+
{
16+
"condition" : {
17+
"typeReached" : "org.apache.maven.shared.artifact.filter.collection.ArtifactTransitivityFilter"
18+
},
19+
"type" : "org.eclipse.aether.artifact.Artifact"
20+
}
21+
]
22+
}

metadata/org.apache.maven.shared/maven-common-artifact-filters/index.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,19 @@
2525
"allowed-packages" : [
2626
"org.apache.maven.shared.artifact.filter"
2727
]
28+
},
29+
{
30+
"metadata-version" : "3.1.1",
31+
"source-code-url" : "https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/$version$/maven-common-artifact-filters-$version$-sources.jar",
32+
"repository-url" : "https://github.com/apache/maven-common-artifact-filters",
33+
"test-code-url" : "https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/$version$/maven-common-artifact-filters-$version$-source-release.zip",
34+
"documentation-url" : "https://maven.apache.org/shared-archives/maven-common-artifact-filters-$version$/",
35+
"description" : "Maven Common Artifact Filters provides reusable filters for including or excluding Maven artifacts during dependency resolution. It supplies scope, pattern, group ID, artifact ID, classifier, type, and transitivity filters used by Maven plugins and shared components.",
36+
"tested-versions" : [
37+
"3.1.1"
38+
],
39+
"allowed-packages" : [
40+
"org.apache.maven.shared.artifact.filter"
41+
]
2842
}
2943
]
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"fix_javac_fail:2026-06-26": {
3+
"timestamp": "2026-06-26T21:38:18.902802Z",
4+
"library": "org.apache.maven.shared:maven-common-artifact-filters:3.1.1",
5+
"starting_commit": "5569877c1872e75270f093822865727ccc38b8d7",
6+
"ending_commit": "811464a6d86854bf757e7188384fd2b3237c7d45",
7+
"previous_library": "org.apache.maven.shared:maven-common-artifact-filters:1.3",
8+
"strategy_name": "javac_iterative_with_coverage_sources_pi_gpt-5.5",
9+
"agent": "pi",
10+
"model": "oca/gpt-5.5",
11+
"status": "success",
12+
"stats": {
13+
"version": "3.1.1",
14+
"dynamicAccess": {
15+
"breakdown": {
16+
"reflection": {
17+
"coverageRatio": 1.0,
18+
"coveredCalls": 5,
19+
"totalCalls": 5
20+
}
21+
},
22+
"coverageRatio": 1.0,
23+
"coveredCalls": 5,
24+
"totalCalls": 5
25+
},
26+
"libraryCoverage": {
27+
"instruction": {
28+
"covered": 1686,
29+
"missed": 1599,
30+
"ratio": 0.513242,
31+
"total": 3285
32+
},
33+
"line": {
34+
"covered": 397,
35+
"missed": 358,
36+
"ratio": 0.525828,
37+
"total": 755
38+
},
39+
"method": {
40+
"covered": 82,
41+
"missed": 95,
42+
"ratio": 0.463277,
43+
"total": 177
44+
}
45+
}
46+
},
47+
"previous_library_stats": {
48+
"version": "1.3",
49+
"dynamicAccess": {
50+
"breakdown": {},
51+
"coverageRatio": 1.0,
52+
"coveredCalls": 0,
53+
"totalCalls": 0
54+
},
55+
"libraryCoverage": {
56+
"instruction": {
57+
"covered": 1685,
58+
"missed": 401,
59+
"ratio": 0.807766,
60+
"total": 2086
61+
},
62+
"line": {
63+
"covered": 418,
64+
"missed": 109,
65+
"ratio": 0.793169,
66+
"total": 527
67+
},
68+
"method": {
69+
"covered": 78,
70+
"missed": 21,
71+
"ratio": 0.787879,
72+
"total": 99
73+
}
74+
}
75+
},
76+
"metrics": {
77+
"input_tokens_used": 224689,
78+
"cached_input_tokens_used": 2127872,
79+
"output_tokens_used": 27501,
80+
"iterations": 5,
81+
"cost_usd": 1.8889,
82+
"tested_library_loc": 397,
83+
"metadata_entries": 3,
84+
"test_only_metadata_entries": 3,
85+
"previous_library_metadata_entries": 0,
86+
"code_coverage_percent": 52.58,
87+
"previous_library_coverage_percent": 79.32
88+
},
89+
"artifacts": {
90+
"test_file": "tests/src/org.apache.maven.shared/maven-common-artifact-filters/3.1.1/src/test/java/org_apache_maven_shared/maven_common_artifact_filters/InvokerTest.java",
91+
"metadata_file": "metadata/org.apache.maven.shared/maven-common-artifact-filters/3.1.1/reachability-metadata.json"
92+
}
93+
}
94+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"versions" : [ {
3+
"version" : "3.1.1",
4+
"dynamicAccess" : {
5+
"breakdown" : {
6+
"reflection" : {
7+
"coverageRatio" : 1.0,
8+
"coveredCalls" : 5,
9+
"totalCalls" : 5
10+
}
11+
},
12+
"coverageRatio" : 1.0,
13+
"coveredCalls" : 5,
14+
"totalCalls" : 5
15+
},
16+
"libraryCoverage" : {
17+
"instruction" : {
18+
"covered" : 1686,
19+
"missed" : 1599,
20+
"ratio" : 0.513242,
21+
"total" : 3285
22+
},
23+
"line" : {
24+
"covered" : 397,
25+
"missed" : 358,
26+
"ratio" : 0.525828,
27+
"total" : 755
28+
},
29+
"method" : {
30+
"covered" : 82,
31+
"missed" : 95,
32+
"ratio" : 0.463277,
33+
"total" : 177
34+
}
35+
}
36+
} ]
37+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
plugins {
8+
id "org.graalvm.internal.tck"
9+
}
10+
11+
String libraryVersion = tck.testedLibraryVersion.get()
12+
13+
dependencies {
14+
testImplementation("org.apache.maven.shared:maven-common-artifact-filters:$libraryVersion") {
15+
exclude group: "org.sonatype.sisu", module: "sisu-guice"
16+
}
17+
testImplementation "org.sonatype.sisu:sisu-guice:3.1.0:no_aop"
18+
testImplementation 'org.assertj:assertj-core:3.22.0'
19+
}
20+
21+
graalvmNative {
22+
agent {
23+
defaultMode = "conditional"
24+
modes {
25+
conditional {
26+
userCodeFilterPath = "user-code-filter.json"
27+
}
28+
}
29+
}
30+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Optional explicit tested library coordinates (format: group:artifact:version).
2+
# If omitted, fallback resolution in org.graalvm.internal.tck.gradle still uses
3+
# environment variable GVM_TCK_LC and then this property.
4+
library.coordinates = org.apache.maven.shared:maven-common-artifact-filters:3.1.1
5+
library.version = 3.1.1
6+
metadata.dir = org.apache.maven.shared/maven-common-artifact-filters/3.1.1/
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
pluginManagement {
8+
def tckPath = Objects.requireNonNullElse(
9+
System.getenv("GVM_TCK_TCKDIR"),
10+
"../../../../tck-build-logic"
11+
)
12+
includeBuild(tckPath)
13+
repositories { mavenLocal(); gradlePluginPortal() }
14+
}
15+
16+
plugins {
17+
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
18+
}
19+
20+
rootProject.name = 'org.apache.maven.shared.maven-common-artifact-filters_tests'

0 commit comments

Comments
 (0)