Skip to content

Fix JAR lookup in integration test and pin hadoop-common to 3.4.x - #764

Merged
xerial merged 2 commits into
mainfrom
fix-jar-and-hadoop-pin
Oct 3, 2026
Merged

xerial merged 2 commits into
mainfrom
fix-jar-and-hadoop-pin

Conversation

@xerial

@xerial xerial commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Fix the jar lookup in test-jar-integration.sh. Since Upgrade to sbt 2.0.10 and Scala 3.9.0 #759, the script found the jar with find target -name 'snappy-java-*.jar'. That also matches sbt 2's build-definition jar (target/out/jvm/scala-3.8.4/snappy-java-build/snappy-java-build_sbt2_3-0.1.0-SNAPSHOT.jar), and ls -t then picked whichever was newer. The JDK 17–25 jobs on Update hadoop-common to 3.5.0 #761 failed with package org.xerial.snappy does not exist because of this. The script now only looks under */snappy-java/.
  • Pin hadoop-common to 3.4.x for Scala Steward (new .scala-steward.conf). Hadoop 3.5.0 is compiled for Java 17 (class file 61), so SnappyHadoopCompatibleOutputStreamTest fails on JDK 8/11 with UnsupportedClassVersionError. Hadoop is a test-only dependency, so 3.4.x is enough. Steward will still offer 3.4.x patch updates. This replaces Update hadoop-common to 3.5.0 #761.
  • Run CI when script/** changes. CI uses script/test-jar-integration.sh, but changes to it skipped the test jobs. Skipped matrix jobs report as test jdk${{ matrix.version }} instead of the required test jdk8 etc., so such PRs could never satisfy branch protection.

Test plan

  • TEST_JAVA_HOME=<zulu 8> ./script/test-jar-integration.sh picks target/out/jvm/u/snappy-java/snappy-java-*.jar and passes
  • CI

💎 Generated with Treasure Work

- test-jar-integration.sh could pick sbt 2's meta-build jar
  (snappy-java-build_sbt2_3-*.jar); only look in the project's output directory
- Hadoop 3.5+ requires Java 17, so keep Scala Steward on 3.4.x

Co-Authored-By: Treasure Work <291137728+treasure-work@users.noreply.github.com>
@github-actions github-actions Bot added the bug label Oct 3, 2026
@xerial
xerial enabled auto-merge (squash) October 3, 2026 22:51
Co-Authored-By: Treasure Work <291137728+treasure-work@users.noreply.github.com>
@xerial
xerial merged commit b89a634 into main Oct 3, 2026
13 checks passed
@xerial
xerial deleted the fix-jar-and-hadoop-pin branch October 3, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant