Skip to content

[GenAI] Test fix for com.lihaoyi:upickle_3:4.4.0 using gpt-5.5#5895

Merged
jormundur00 merged 3 commits into
masterfrom
ai/vjovanov/fix-java-run-com.lihaoyi-upickle_3-4.4.0
May 5, 2026
Merged

[GenAI] Test fix for com.lihaoyi:upickle_3:4.4.0 using gpt-5.5#5895
jormundur00 merged 3 commits into
masterfrom
ai/vjovanov/fix-java-run-com.lihaoyi-upickle_3-4.4.0

Conversation

@vjovanov

@vjovanov vjovanov commented May 5, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Fixes: #5877

This PR provides test fixes and new metadata for com.lihaoyi:upickle_3:4.4.0, addressing runtime java test failures caused by changes in the updated library version.

Summary:

  • Strategy: java_run_iterative_with_coverage_sources_pi_gpt-5.5
  • Agent: pi
  • Model: gpt-5.5
  • Input tokens: 138839
  • Cached input tokens: 2312192
  • Output tokens: 13055
  • Metadata entries: 18
  • Test-only metadata entries: 19
  • Iterations: 2
  • Library coverage percentage: 40.46
  • Previous library version metadata entries: 0
  • Previous library version coverage percentage: 41.86

Metadata Forge

  • Forge monitored branch: origin/master
  • Forge branch: master
  • Forge commit hash: e482e7c4ab38a385142e4294b59445c8c11aa691

Stats from stats/<groupId>/<artifactId>/<metadata-version>/stats.json

Dynamic access coverage

  • com.lihaoyi:upickle_3:4.1.0-test-publish: 0/0 covered calls (100.00%)
  • com.lihaoyi:upickle_3:4.4.0: 0/0 covered calls (100.00%)

Library coverage

Instruction:

  • com.lihaoyi:upickle_3:4.1.0-test-publish: 1277/7262 (17.58%)
  • com.lihaoyi:upickle_3:4.4.0: 1253/9842 (12.73%)

Line:

  • com.lihaoyi:upickle_3:4.1.0-test-publish: 72/172 (41.86%)
  • com.lihaoyi:upickle_3:4.4.0: 70/173 (40.46%)

Method:

  • com.lihaoyi:upickle_3:4.1.0-test-publish: 160/925 (17.30%)
  • com.lihaoyi:upickle_3:4.4.0: 160/1351 (11.84%)

Comparison between existing test version and AI-Generated update

diff --git 1/tests/src/com.lihaoyi/upickle_3/4.1.0-test-publish/build.gradle 2/tests/src/com.lihaoyi/upickle_3/4.4.0/build.gradle
index 4eb2b8b992..b446b1bfe9 100644
--- 1/tests/src/com.lihaoyi/upickle_3/4.1.0-test-publish/build.gradle
+++ 2/tests/src/com.lihaoyi/upickle_3/4.4.0/build.gradle
@@ -1,3 +1,13 @@
+/*
+ * Copyright and related rights waived via CC0
+ *
+ * You should have received a copy of the CC0 legalcode along with this
+ * work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+ */
+import org.gradle.api.tasks.testing.Test
+
+import java.io.File
+
 /*
  * Copyright and related rights waived via CC0
  *
@@ -18,6 +28,19 @@ dependencies {
     testImplementation 'org.scala-lang:scala3-compiler_3:3.3.6'
 }
 
+String graalvmHome = System.getenv("GRAALVM_HOME") ?: System.getenv("JAVA_HOME")
+File graalvmJavaExecutable = graalvmHome == null ? null : new File(graalvmHome, "bin/java")
+File graalvmLibDirectory = graalvmHome == null ? null : new File(graalvmHome, "lib")
+
+if (project.hasProperty("agent") && graalvmJavaExecutable != null && graalvmJavaExecutable.isFile()) {
+    tasks.withType(Test).configureEach {
+        executable = graalvmJavaExecutable.absolutePath
+        if (graalvmLibDirectory != null && graalvmLibDirectory.isDirectory()) {
+            jvmArgs("-Djava.library.path=${graalvmLibDirectory.absolutePath}")
+        }
+    }
+}
+
 java {
     toolchain {
         languageVersion = JavaLanguageVersion.of(21)

Local CI Verification

  • Status: success
  • Commands run: 15
  • Fixup attempts: 0

@vjovanov vjovanov added GenAI PRs produced by generative AI fixes-java-run-fail Fixes issues during test updates with running java tests labels May 5, 2026
@vjovanov
vjovanov requested review from jormundur00 and kimeta May 5, 2026 03:22

@jormundur00 jormundur00 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the fixes-java-run-fail diff for com.lihaoyi:upickle_3:4.4.0. The change stays scoped to the target coordinate, preserves dynamic-access coverage at 0/0 across versions, and the relevant metadata, style, JVM, and native test checks are green. I found no blocking issues.

@jormundur00
jormundur00 merged commit b4ac310 into master May 5, 2026
28 checks passed
vjovanov added a commit to vjovanov/graalvm-reachability-metadata that referenced this pull request May 5, 2026
…e#5895)

* Prepare project for com.lihaoyi:upickle_3:4.4.0

* Update generated library support for com.lihaoyi:upickle_3:4.4.0

* Fixed test for com.lihaoyi:upickle_3:4.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixes-java-run-fail Fixes issues during test updates with running java tests GenAI PRs produced by generative AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Automation] java run fails for com.lihaoyi:upickle_3:4.4.0

2 participants