sgilmore10 commented on PR #41131:
URL: https://github.com/apache/arrow/pull/41131#issuecomment-2058125281

   Just an update:
   
   After moving the release tarball generation to `release_candidate.yml` and 
using `gh release download` to download the tarball in `02-source.sh`, the 
source release check (`02-source-test.sh`) failed because the GitHub Release 
from which `02-source.sh` was trying to download the tarball did not exist.
   
   To workaround this issue, I moved the tarball generation logic into a 
separate file called `dev/release/util-create-release-tarball.sh`, which 
`release_candidate.yml` calls to generate the release tarball. In 
`02-source.sh`, if an environment variable `TEST_RELEASE_SCRIPT` is defined and 
greater than 0, then `02-source.sh` invokes `util-create-release-tarball.sh` to 
generate the release tarball. Otherwise, it uses `gh release download` to 
retrieve the pre-built archive from the GitHub Releases area.  Finally, I 
modified `02-source-test.rb` to ensure `TEST_RELEASE_SCRIPT` is defined and set 
to `1` when this script invokes `02-source.sh`.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to