You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "manuzhang (via GitHub)" <gi...@apache.org> on 2026/09/10 04:03:19 UTC

[PR] Build: Fix Spark publication and CI configuration [iceberg]

manuzhang opened a new pull request, #18042:
URL: https://github.com/apache/iceberg/pull/18042

   ## Summary
   
   - limit the supplemental snapshot publication to Spark 3.5/Scala 2.13 artifacts
   - add released Spark 4.0 and 4.1 artifacts to the BOM while retaining the intentional Spark 4.2 binary-release exclusion
   - correct stale JMH workflow path filters across CI workflows
   - align Spark matrix comments with the configuration they describe
   - document why Spark 4.2 is absent from binary staging
   
   ## Validation
   
   - `./gradlew spotlessCheck`
   - dry-run of the three supplemental snapshot publication tasks
   - generated the all-modules BOM and verified Spark constraint counts
   - parsed all 23 GitHub workflow YAML files
   - `git diff --check`
   - `bash -n dev/stage-binaries.sh`
   
   ---
   **AI Disclosure**
   - Model: GPT-5
   - Platform/Tool: Codex
   - Human Oversight: partially reviewed
   - Prompt Summary: Audit and fix Spark CI, snapshot publication, and release BOM inconsistencies while preserving the intentional Spark 4.2 binary-release exclusion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #18042:
URL: https://github.com/apache/iceberg/pull/18042#discussion_r3994431980


##########
build.gradle:
##########
@@ -1258,8 +1258,11 @@ project(':iceberg-bom') {
       // only contain artifacts for that single Scala version. The following code ensures that
       // the BOM references the artifacts for all Scala versions.
       def sparkScalaPattern = ~"(.*)-([0-9][.][0-9]+)_([0-9][.][0-9]+)"
+      // Only include Spark versions published in binary releases.
       def sparkScalaVersions = [
         "3.5": ["2.12", "2.13"],
+        "4.0": ["2.13"],
+        "4.1": ["2.13"],

Review Comment:
   this is a separate BOM issue. 



##########
.github/workflows/publish-snapshot.yml:
##########
@@ -53,4 +53,8 @@ jobs:
         run: |
           ./gradlew printVersion
           ./gradlew -DallModules publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
-          ./gradlew -DflinkVersions= -DsparkVersions=3.5,4.0 -DscalaVersion=2.13 -DkafkaVersions=3 publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
+          ./gradlew -DflinkVersions= -DsparkVersions=3.5 -DscalaVersion=2.13 -DkafkaVersions= \

Review Comment:
   I see, so the first `./gradlew -DallModules` command publishes all the packages and uses the default 2.12 scala. 
   
   Spark 3.5 is the odd one out, it needs to publish package for both 2.12 and 2.13
   https://github.com/apache/iceberg/blob/cff60bc18e6fea1e29990f7f6d5ac78891defa59/build.gradle#L1257-L1263
   So this second command publishes explicitly for 2.13



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #18042:
URL: https://github.com/apache/iceberg/pull/18042#discussion_r3994414267


##########
.github/workflows/publish-snapshot.yml:
##########
@@ -53,4 +53,8 @@ jobs:
         run: |
           ./gradlew printVersion
           ./gradlew -DallModules publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
-          ./gradlew -DflinkVersions= -DsparkVersions=3.5,4.0 -DscalaVersion=2.13 -DkafkaVersions=3 publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
+          ./gradlew -DflinkVersions= -DsparkVersions=3.5 -DscalaVersion=2.13 -DkafkaVersions= \

Review Comment:
   I see, so the first `./gradlew -DallModules` command publishes all the packages and uses the default 2.12 scala. 
   
   Spark 3.5 is the odd one out, it needs to publish package for both 2.12 and 2.13
   https://github.com/apache/iceberg/blob/cff60bc18e6fea1e29990f7f6d5ac78891defa59/build.gradle#L1257-L1263
   So this second command publishes explicitly for Spark 3.5 with 2.13



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #18042:
URL: https://github.com/apache/iceberg/pull/18042#issuecomment-5648344590

   Thanks @manuzhang 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "uros-b (via GitHub)" <gi...@apache.org>.
uros-b commented on PR #18042:
URL: https://github.com/apache/iceberg/pull/18042#issuecomment-5632670481

   Looks good, thank you @manuzhang!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu merged PR #18042:
URL: https://github.com/apache/iceberg/pull/18042


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Build: Fix Spark publication and CI configuration [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #18042:
URL: https://github.com/apache/iceberg/pull/18042#discussion_r3996492282


##########
.github/workflows/publish-snapshot.yml:
##########
@@ -53,4 +53,8 @@ jobs:
         run: |
           ./gradlew printVersion
           ./gradlew -DallModules publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
-          ./gradlew -DflinkVersions= -DsparkVersions=3.5,4.0 -DscalaVersion=2.13 -DkafkaVersions=3 publishApachePublicationToMavenRepository -PmavenUser="$NEXUS_USER" -PmavenPassword="$NEXUS_PW"
+          ./gradlew -DflinkVersions= -DsparkVersions=3.5 -DscalaVersion=2.13 -DkafkaVersions= \

Review Comment:
   The first command publishes with default 2.12 for 3.5 and 2.13 for 4+.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org