Repository navigation
Build: Include Spark 4.2 in source releases - #18024
Merged
Merged
Conversation
manuzhang
force-pushed
the
spark42-source-release
branch
from
September 9, 2026 09:11
2ed9c23 to
dc0c760
Compare
Keep Spark 4.2 sources in release archives so the default and all-modules Gradle configurations can load the selected module. Binary publishing remains limited by dev/stage-binaries.sh. Generated-by: Codex
manuzhang
force-pushed
the
spark42-source-release
branch
from
September 9, 2026 09:22
dc0c760 to
ec87c85
Compare
Build and configure the exported source archive so export-ignore rules cannot silently omit required Gradle projects. Run both the default and all-modules configurations when release-related files change. Generated-by: Codex
szehon-ho
approved these changes
Sep 9, 2026
Member
|
cc @nssalian |
nssalian
approved these changes
Sep 9, 2026
Member
|
Merged, thanks @manuzhang and @nssalian for checking! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #17967.
Why this change is needed
Spark 4.2 is now selected by
defaultSparkVersions, but the existingexport-ignoreentries omitspark/v4.2from source archives produced withgit archive. As a result, every Gradle command run from an extracted source release, including./gradlew help, fails during configuration with:This makes the source release impossible to configure or build. The
-DallModulesconfiguration is broken for the same reason becauseknownSparkVersionsalso includes Spark 4.2.This PR removes the
export-ignoreentries forspark/v4.2so source release archives contain the module selected bydefaultSparkVersionsand-DallModules. It also adds a targeted source-release CI workflow that recreates the exported archive and loads both Gradle configurations when archive or Gradle configuration files change.Spark 4.2 remains excluded from convenience binary publishing because
dev/stage-binaries.shstill limitsSPARK_VERSIONSto 3.5, 4.0, and 4.1.Validation:
spark/v4.2/build.gradleconfiguration failure from a pre-fix source archive.git archive HEAD --worktree-attributesand confirmed Spark 3.5, 4.0, 4.1, and 4.2 source directories are present.helptask from the extracted archive.helptask with-DallModulesfrom the extracted archive../gradlew spotlessCheck.AI Disclosure