Hi Xinyu,

TLDR: I was able to complete step 3-publish-mvn using a mac arm64 machine.

More details:
In my first run, I also got a failure on my mac, although the error was
different:
- yours: sha512 mismatch ratis-3.2.0.pom
- mine: size mismatch ratis-assembly-3.2.0-src.tar.gz

The sizes were indeed different:
% find . -name ratis-assembly-3.2.0-src.tar.gz | xargs ls -l
-rw-r--r--@ 1 szetszwo  staff  808275 Jun  6 09:06
./ratis-assembly/target/ratis-assembly-3.2.0-src.tar.gz
-rw-r--r--@ 1 szetszwo  staff  805128 Jun  6 09:06
./target/reference/org.apache.ratis/ratis-assembly-3.2.0-src.tar.gz

Then, I generated a file list for each tar balls:
% tar tzf $F | sort > $F.txt

and the diff below showed that one of them had a .swp file.

% diff ./ratis-assembly/target/ratis-assembly-3.2.0-src.tar.gz.txt
./target/reference/org.apache.ratis/ratis-assembly-3.2.0-src.tar.gz.txt

4d3

< apache-ratis-3.2.0-src/dev-support/.make_rc.sh.swp

It was a vim swap file.  After I closed vim, I was able to
run 3-publish-mvn successfully.

Not sure if you might have a similar problem when you ran the command.

Tsz-Wo



On Thu, Jun 5, 2025 at 9:45 AM Tsz-Wo Nicholas Sze <szets...@gmail.com>
wrote:

> Hi Xinyu,
>
> > [ERROR] see diff target/reference/ratis-3.2.0.buildinfo
> target/ratis-3.2.0.buildinfo
>
> You may check the diff between these two files to get some ideas why
> it failed.
>
> I was able to complete step 3-publish-mvn using a linux machine.  Will try
> it on a mac later.
>
> [INFO] --- artifact:3.6.0:compare (default-cli) @ ratis-assembly ---
> [INFO] Saved aggregate info on build to
> /home/stw/ratis/release/git-ratis/ratis-assembly/target/ratis-assembly-3.2.0.buildinfo
> [INFO] Aggregate buildinfo copied to
> /home/stw/ratis/release/git-ratis/target/ratis-3.2.0.buildinfo
> [INFO] Checking against reference build from central...
> Downloading from central:
> https://repo.maven.apache.org/maven2/org/apache/ratis/ratis-assembly/3.2.0/ratis-assembly-3.2.0.buildinfo
> [INFO] Reference buildinfo file not found: it will be generated from
> downloaded reference artifacts
> [INFO] Reference build java.version: 1.8 (from MANIFEST.MF Build-Jdk-Spec)
> [INFO] Reference build os.name: Unix (from pom.properties newline)
> [INFO] Minimal buildinfo generated from downloaded artifacts:
> /home/stw/ratis/release/git-ratis/target/reference/ratis-assembly-3.2.0.buildinfo
> [INFO] Reproducible Build output summary: 126 files ok
> [INFO] Reproducible Build output comparison saved to
> /home/stw/ratis/release/git-ratis/ratis-assembly/target/ratis-assembly-3.2.0.buildcompare
> [INFO] Aggregate buildcompare copied to
> /home/stw/ratis/release/git-ratis/target/ratis-3.2.0.buildcompare
> [INFO]
> [INFO] --- deploy:2.8.2:deploy (default-cli) @ ratis-assembly ---
>
> Tsz-Wo
>
>
> On Tue, Jun 3, 2025 at 9:09 AM Xinyu Tan <tanxi...@apache.org> wrote:
>
>> Hi,
>>
>> The previous problem is solved,now I encounter the other problem when
>> execute  ./dev-support/make_rc.sh 3-publish-mvn
>>
>> [INFO] Reference buildinfo file not found: it will be generated from
>> downloaded reference artifacts
>> [INFO] Minimal buildinfo generated from downloaded artifacts:
>> /Users/txy/Study/ratis/target/reference/ratis-3.2.0.buildinfo
>> [ERROR] sha512 mismatch ratis-3.2.0.pom: investigate with diffoscope
>> target/reference/org.apache.ratis/ratis-3.2.0.pom pom.xml
>> [ERROR] Reproducible Build output summary: 2 files ok, 1 different
>> [ERROR] see diff target/reference/ratis-3.2.0.buildinfo
>> target/ratis-3.2.0.buildinfo
>> [ERROR] see also
>> https://maven.apache.org/guides/mini/guide-reproducible-builds.html
>> [INFO] Reproducible Build output comparison saved to
>> /Users/txy/Study/ratis/target/ratis-3.2.0.buildcompare
>> [INFO] Aggregate buildcompare copied to
>> /Users/txy/Study/ratis/target/ratis-3.2.0.buildcompare
>>
>> I have been busy recently and have not studied this issue further.
>>
>> Best
>> ------------
>> Xinyu Tan
>>
>>
>> On 2025/05/29 16:38:53 Tsz-Wo Nicholas Sze wrote:
>> >  Hi Xinyu,
>> >
>> > szetszwo@Mac apache-ratis % ./mvnw clean package -DskipTests
>> >
>> > ...
>> >
>> > [*INFO*] *BUILD SUCCESS*
>> >
>> > [*INFO*]
>> >
>> *------------------------------------------------------------------------*
>> >
>> > [*INFO*] Total time:  24.853 s
>> >
>> > [*INFO*] Finished at: 2025-05-29T09:33:15-07:00
>> >
>> > [*INFO*]
>> >
>> *------------------------------------------------------------------------*
>> >
>> > [*INFO*] 277 goals, 275 executed, 2 from cache
>> >
>> > I am able to build ratis in my ARM mac.  Could you try ./mvnw and update
>> > the JDK?  Below are the versions in my machine:
>> >
>> >
>> > szetszwo@Mac apache-ratis % mvn -version
>> >
>> > *Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)*
>> >
>> > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
>> >
>> > Java version: 1.8.0_452, vendor: Azul Systems, Inc., runtime:
>> > /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre
>> >
>> > Default locale: en_US, platform encoding: UTF-8
>> >
>> > OS name: "mac os x", version: "15.5", arch: "aarch64", family: "mac"
>> >
>> > szetszwo@Mac apache-ratis % java -version
>> >
>> > openjdk version "1.8.0_452"
>> >
>> > OpenJDK Runtime Environment (Zulu 8.86.0.25-CA-macos-aarch64) (build
>> > 1.8.0_452-b09)
>> >
>> > OpenJDK 64-Bit Server VM (Zulu 8.86.0.25-CA-macos-aarch64) (build
>> > 25.452-b09, mixed mode)
>> >
>> >
>> > Tsz-Wo
>> >
>> > On Thu, May 29, 2025 at 7:32 AM Xinyu Tan <txypot...@gmail.com> wrote:
>> >
>> > > Hi, dev
>> > >
>> > > I'm having some problems with my macbook m2 laptop.
>> > >
>> > > This is my enviroment
>> > > ➜  ratis git:(master) java -version
>> > > openjdk version "1.8.0_382"
>> > > OpenJDK Runtime Environment (Zulu 8.72.0.17-CA-macos-aarch64) (build
>> > > 1.8.0_382-b05)
>> > > OpenJDK 64-Bit Server VM (Zulu 8.72.0.17-CA-macos-aarch64) (build
>> > > 25.382-b05, mixed mode)
>> > > ➜  ratis git:(master) protoc --version
>> > > libprotoc 29.3
>> > > ➜  ratis git:(master) uname -a
>> > > Darwin bogon 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:39
>> PDT
>> > > 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6020 arm64
>> > >
>> > > and I execute command mvn clean package -DskipTests can it can not
>> succeed,
>> > > so I can't release at the moment. I want to ask anyone who's ever had
>> a
>> > > similar problem?
>> > >
>> > >
>> > > [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources)
>> @
>> > > ratis-common ---
>> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> > > [INFO] Using 'UTF-8' encoding to copy filtered properties files.
>> > > [INFO] skip non existing resourceDirectory
>> > > /Users/txy/Study/ratis/ratis-common/src/main/resources
>> > > [INFO] Copying 1 resource
>> > > [INFO] Copying 3 resources
>> > > [INFO] The encoding used to copy filtered properties files have not
>> been
>> > > set. This means that the same encoding will be used to copy filtered
>> > > properties files as when copying other filtered resources. This might
>> not
>> > > be what you want! Run your build with --debug to see which files
>> might be
>> > > affected. Read more at
>> > >
>> > >
>> https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html
>> > > [INFO]
>> > > [INFO] --- maven-compiler-plugin:3.10.0:compile (default-compile) @
>> > > ratis-common ---
>> > > [INFO] Compiling 148 source files to
>> > > /Users/txy/Study/ratis/ratis-common/target/classes
>> > > [INFO] -------------------------------------------------------------
>> > > [ERROR] COMPILATION ERROR :
>> > > [INFO] -------------------------------------------------------------
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/protocol/RaftPeerId.java:[78,39]
>> > > 错误: 无法访问ByteString
>> > >   找不到com.google.protobuf.ByteString的类文件
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/protocol/RaftClientRequest.java:[59,55]
>> > > 错误: 无法访问ProtocolMessageEnum
>> > >   找不到com.google.protobuf.ProtocolMessageEnum的类文件
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/protocol/RaftClientRequest.java:[159,29]
>> > > 错误: 无法访问EnumLite
>> > >   找不到com.google.protobuf.Internal.EnumLite的类文件
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/util/ProtoUtils.java:[69,45]
>> > > 错误: 不兼容的类型:
>> > >
>> org.apache.ratis.thirdparty.com.google.protobuf.ByteString无法转换为com.google
>> <http://org.apache.ratis.thirdparty.com.google.protobuf.xn--bytestringcom-ro1u057vwlicz4a9d4k.google>
>> > > .protobuf.ByteString
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/util/ProtoUtils.java:[72,19]
>> > > 错误: 不兼容的类型: 方法引用无效
>> > >     不兼容的类型:
>> > >
>> org.apache.ratis.thirdparty.com.google.protobuf.ByteString无法转换为com.google
>> <http://org.apache.ratis.thirdparty.com.google.protobuf.xn--bytestringcom-ro1u057vwlicz4a9d4k.google>
>> > > .protobuf.ByteString
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/util/ProtoUtils.java:[190,62]
>> > > 错误: 不兼容的类型:
>> > >
>> org.apache.ratis.thirdparty.com.google.protobuf.ByteString无法转换为com.google
>> <http://org.apache.ratis.thirdparty.com.google.protobuf.xn--bytestringcom-ro1u057vwlicz4a9d4k.google>
>> > > .protobuf.ByteString
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/util/ProtoUtils.java:[213,52]
>> > > 错误: 不兼容的类型:
>> > >
>> org.apache.ratis.thirdparty.com.google.protobuf.ByteString无法转换为com.google
>> <http://org.apache.ratis.thirdparty.com.google.protobuf.xn--bytestringcom-ro1u057vwlicz4a9d4k.google>
>> > > .protobuf.ByteString
>> > > [ERROR]
>> > >
>> > >
>> /Users/txy/Study/ratis/ratis-common/src/main/java/org/apache/ratis/protocol/RaftPeer.java:[187,35]
>> > > 错误: 不兼容的类型:
>> > >
>> org.apache.ratis.thirdparty.com.google.protobuf.ByteString无法转换为com.google
>> <http://org.apache.ratis.thirdparty.com.google.protobuf.xn--bytestringcom-ro1u057vwlicz4a9d4k.google>
>> > > .protobuf.ByteString
>> > > [INFO] 8 errors
>> > >
>> > >
>> > > Best
>> > > -----------------
>> > > Xinyu Tan
>> > >
>> > > Tsz-Wo Nicholas Sze <szets...@gmail.com> 于2025年5月29日周四 11:29写道:
>> > >
>> > > > Hi Xinyu,
>> > > >
>> > > > Yes, we are ready to start releasing 3.2.0 on the master branch.
>> Thanks.
>> > > >
>> > > > Tsz-Wo
>> > > >
>> > > >
>> > > > On Wed, May 28, 2025 at 8:14 PM Xinyu Tan <tanxi...@apache.org>
>> wrote:
>> > > >
>> > > > > Hi, Tsz-Wo
>> > > > >
>> > > > > So we can start a 3.2.0 rc1 release on master now? I can see all
>> > > commits
>> > > > > are ready now.
>> > > > >
>> > > > > Best
>> > > > > -------------
>> > > > > Xinyu Tan
>> > > > >
>> > > > > On 2025/05/26 01:28:34 Xinyu Tan wrote:
>> > > > > > Hi,
>> > > > > >
>> > > > > > We can utilize this thread to discuss the release of version
>> 3.2.0.
>> > > > > >
>> > > > > >
>> > > > > > Best
>> > > > > > --------------
>> > > > > > Xinyu Tan
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>

Reply via email to