Re: Weird release failure

Chris Hegarty <[email protected]>
Newsgroups gmane.comp.jakarta.lucene.devel
Message-ID <[email protected]>
Hi,

I do think that there is a bug in the smoke tester - the trailing period should be optional, as it may not be present in the initial GA of a major java release.

That said, JDK 21 GA is quite old now, and most folk probably use a more recent JDK 21.x on their systems. You shouldn’t strictly have to, but it’s quite common.

So Ben, if you wanna get unstuck you can choose to use a more recent JDK 21.x when building the artifacts. For example, looking at Lucene 10.3.0, I can see that it was built with 21.0.2: "X-Build-JDK: 21.0.2 (Oracle Corporation 21.0.2+13-58)”. 

-Chris.

> On 2 Oct 2025, at 00:24, Chris Hostetter <[email protected]> wrote:
> 
> 
> I think the '.' was originally put there because on openjdk impls of 
> javac, the 'java.version' sysprop (which is the first part of what the 
> lucene build puts in the 'X-Build-JDK' header) has values like "21.0.2" 
> 
> FWIW: On main the smoketester was updated to use a regex for checking 
> X-Build-JDK, expecting either a '.' or a ' ' character to follow the 
> BASE_JAVA_VERSION.
> 
> 
> 
> : Date: Wed, 1 Oct 2025 18:43:04 -0400
> : From: Robert Muir <[email protected]>
> : Reply-To: [email protected]
> : To: [email protected]
> : Subject: Re: Weird release failure
> : 
> : Looks like a bug in the smoketester. Removing the "." (period) in the
> : check should fix it:
> : 
> : -      "X-Build-JDK: %s." % BASE_JAVA_VERSION,
> : +      "X-Build-JDK: %s" % BASE_JAVA_VERSION,
> : 
> : On Wed, Oct 1, 2025 at 6:03 PM Benjamin Trent <[email protected]> wrote:
> : >
> : > Hey y'all,
> : >
> : > It's been awhile since I have done a release, while running the smoke tester I got the following failure:
> : >
> : > RuntimeError: JAR file "/Users/benjamintrent/.lucene-releases/10.3.1/RC1/smoketest/unpack/lucene-10.3.1/modules-test-framework/lucene-test-framework-10.3.1.jar" is missing "X-Build-JDK: 21." inside its META-INF/MANIFEST.MF: Manifest-Version: 1.0
> : > Extension-Name: org.apache.lucene
> : > Implementation-Vendor: The Apache Software Foundation
> : > Implementation-Title: org.apache.lucene
> : > Implementation-Version: 10.3.1 25d6374b4981073547bc96173b1c27922f4ea0f3
> : >  - 2025-10-01 16:53:01
> : > Specification-Vendor: The Apache Software Foundation
> : > Specification-Version: 10.3.1
> : > Specification-Title: Lucene Search Engine: test-framework
> : > X-Compile-Source-JDK: 21
> : > X-Compile-Target-JDK: 21
> : > X-Build-JDK: 21 (Oracle Corporation 21+35-2513)
> : > X-Build-OS: Mac OS X aarch64 15.7
> : >
> : > Which is weird, it SEEMS like the build JDK is indeed 21. Just not the right particular kind of Java 21?
> : >
> : > I will keep debugging, but wanted to reach out to see if somebody had a quick answer.
> : >
> : > Thanks!
> : >
> : > Ben
> : 
> : ---------------------------------------------------------------------
> : To unsubscribe, e-mail: [email protected]
> : For additional commands, e-mail: [email protected]
> : 
> : 
> 
> -Hoss
> http://www.lucidworks.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.