Skip to content

Conversation

adamreeve
Copy link
Contributor

@adamreeve adamreeve commented Oct 16, 2025

Rationale for this change

Isolates environment variable changes made when verifying the source from the tests that verify the binaries, to prevent these causing errors like in #47830.

What changes are included in this PR?

Changes verify-release-candidate.sh to run test_source_distribution in a subshell.

Are these changes tested?

I've tested this manually, I'm not sure if there are any existing CI tests that run this script on PRs.

Are there any user-facing changes?

No

@github-actions github-actions bot added the awaiting review Awaiting review label Oct 16, 2025
@adamreeve adamreeve changed the title GH-47830: [Python] Run source and binary RC verification steps in subshells GH-47830: [Release] Run source and binary RC verification steps in subshells Oct 16, 2025
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Or we can restore DYLD_LIBRARY_PATH/LD_LIBRARY_PATH at the end of test_source_distribution.

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Oct 16, 2025
@adamreeve adamreeve changed the title GH-47830: [Release] Run source and binary RC verification steps in subshells GH-47830: [Release] Run source RC verification step in a subshell Oct 16, 2025
@adamreeve adamreeve changed the title GH-47830: [Release] Run source RC verification step in a subshell GH-47830: [Release] Run RC verification source testing step in a subshell Oct 16, 2025
@adamreeve
Copy link
Contributor Author

Or we can restore DYLD_LIBRARY_PATH/LD_LIBRARY_PATH at the end of test_source_distribution.

I prefer the subshell approach so we don't need to worry about which environment variables might have changed, but I'm happy to do it that way if you'd prefer.

@kou
Copy link
Member

kou commented Oct 16, 2025

I don't have a strong opinion for it. We can merge this as-is or wait for comments from others in a few days before we merge this.

@adamreeve
Copy link
Contributor Author

👍 let's leave this for a few days in case someone else has comments

Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is great! I am happy with this approach.

I was wondering why we haven't experienced this before and I just realized we never test sources and binaries on the same CI verification jobs (we always do it separately).
I also don't test them on the same pass locally, I usually test sources and afterwards binaries so it makes sense we haven't noticed!

Thanks for the fix!

@adamreeve adamreeve merged commit f6e48b4 into apache:main Oct 19, 2025
9 checks passed
@adamreeve adamreeve removed the awaiting merge Awaiting merge label Oct 19, 2025
@adamreeve adamreeve deleted the rc-verify-fix branch October 19, 2025 20:14
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit f6e48b4.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 23 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants