MINOR: Keep the Thrift build out of release commits and artifacts #3929
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 355 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3929"
general
weight: 0.35
RussellSpitzer
Rationale for this change
The 1.18.2-rc0 source artifacts contain the whole Thrift 0.25.0 source and build tree:
| Artifact | 1.18.1 | 1.18.2-rc0 |
|---|---|---|
|
apache-parquet-<v>.tar.gz(dist/dev) | 1.4 MB | 72.6 MB ||
parquet-<v>-source-release.zip(Nexus) | 2.4 MB | 76.6 MB |Here is how it happened:
1.
release-prepare-rc.ymlrunsdev/ci-before_install.sh("Install Thrift", added in #3786). That script extracts and builds Thrift in the current directory, which is the checkout being released.2.
prepare-rc.shstages the version bump withgit add -A. The release commit 490699b8 ("Set version to 1.18.2 for release") therefore includes the 18 pom bumps plus 3,550 files underthrift-0.25.0/, including 40 x86-64 ELF.ofiles.git archivethen put them into the source tarball.3.
mvn deploy -Papache-releasepackages the working tree, not the git tree, into the source-release zip. That zip would contain the Thrift build even if it had never been committed.The 1.19.0 RCs were not affected only because their version-bump commit (d29073e0, 2026-09-03) predates #3786, and later RCs skipped the bump because the POMs were already at 1.19.0. Every new version prepared through the workflow would hit this.
What changes are included in this PR?
dev/ci-before_install.sh: build Thrift in amktemp -ddirectory under$RUNNER_TEMP, so it never lands in the checkout. The release workflow runs frommaster, so this covers releases from every branch. The CI workflows that use the script only need the installedthriftbinary.prepare-rc.sh/publish-release.sh: stage version bumps withgit add -u.versions:setandversions:set-propertyonly edit tracked POMs.require_clean_worktreeinrelease/libs/_exec.sh.prepare-rc.shcalls it right before creating the RC tag, so a working tree with uncommitted changes or untracked files fails the run. It is a plain read, not anexec_processcall, so it also runs in dry-run mode.I did not add
thrift-*/to.gitignoreon purpose: ignored files would pass the clean-tree check but still end up in the source-release zip.This PR does not clean up
parquet-1.18.x, where 490699b8 is the branch head and still containsthrift-0.25.0/. That will be handled separately before 1.18.2-rc1.Are these changes tested?
require_clean_worktree: clean tree, gitignored files, untracked directory, uncommitted change, and running outside a git repository.shellcheckreports no new findings in the changed scripts.ci-before_install.shchange.Are there any user-facing changes?
No. This only changes the release tooling and the CI setup script.
🤖 Generated with Claude Code