Repository navigation
Closed
Description
Describe the enhancement requested
Packaging checklist for CRAN release
For a high-level overview of the release process see the
Apache Arrow Release Management Guide.
cc @jonkeane @thisisnic @amoeba @nealrichardson @assignUser @paleolimbot for coordination on the various tasks to release
Before the release candidate is cut
- Create a GitHub issue entitled
[R] CRAN packaging checklist for version X.X.Xand copy this checklist to the issue. - Review deprecated functions to advance their deprecation status, including removing preprocessor directives that no longer apply (search for
ARROW_VERSION_MAJORin r/src). - Evaluate the status of any failing nightly tests and nightly packaging builds. These checks replicate most of the checks that CRAN runs, so we need them all to be passing or to understand that the failures may (though won't necessarily) result in a rejection from CRAN.
- Check current CRAN check results
- Ensure the contents of the README are accurate and up to date.
- Run
urlchecker::url_check()on the R directory at the release candidate.
commit. Ignore any errors with badges as they will be removed in the CRAN release branch. - Polish NEWS but do not update version numbers (this is done automatically later). You can find commits by, for example,
git log --oneline <sha of last release>..HEAD | grep "\[R\]" - Run preliminary reverse dependency checks using
archery docker run r-revdepcheck. - For major releases, prepare tweet thread highlighting new features.
Wait for the release candidate to be cut:
After release candidate has been cut
- Create a CRAN-release branch from the release candidate commit, name the new branch e.g.
maint-X.X.X-rand push to upstream
Prepare and check the .tar.gz that will be released to CRAN.
-
git fetch upstream && git checkout release-X.X.X-rcXX && git clean -f -d - Run
make build. This copies Arrow C++ into tools/cpp, prunes some
unnecessary components, and runsR CMD buildto generate the source tarball.
Because this will install the package, you will need to ensure that the version
of Arrow C++ available to the configure script is the same as the version
that is vendored into the R package (e.g., you may need to unsetARROW_HOME). -
devtools::check_built("arrow_X.X.X.tar.gz")locally - Run reverse dependency checks using
archery docker run r-revdepcheck.
Release vote
- Release vote passed!
Generate R package to submit to CRAN
- If the release candidate commit updated, rebase the CRAN release branch
on that commit. - Pick any commits that were made to main since the release commit that
were needed to fix CRAN-related submission issues identified in the above
steps. - Remove badges from README.md
- Run
urlchecker::url_check()on the R directory - Create a PR entitled
WIP: [R] Verify CRAN release-10.0.1-rc0. Add
a comment@github-actions crossbow submit --group rto run all R crossbow
jobs against the CRAN-specific release branch. - Run
Rscript tools/update-checksums.R <libarrow version>to download the checksums for the pre-compiled binaries from the ASF artifactory into the tools directory. - Regenerate arrow_X.X.X.tar.gz (i.e.,
make build)
Check binary Arrow C++ distributions specific to the R package
- Upload the .tar.gz to win-builder (r-devel only)
and confirm (with Jon, who will automatically receive an email about the results) that the check is clean. - Upload the .tar.gz to MacBuilder
and confirm that the check is clean - Check
install.packages("arrow_X.X.X.tar.gz")on Ubuntu and ensure that the
hosted binaries are used -
devtools::check_built("arrow_X.X.X.tar.gz")locally one more time (for luck)
CRAN submission
- Upload arrow_X.X.X.tar.gz to the
CRAN submit page - Confirm the submission email
Wait for CRAN...
- Accepted!
- Tag the tip of the CRAN-specific release branch with
r-universe-release - Add a new line to the matrix in the backwards compatability job
- (patch releases only) Update the package version in
ci/scripts/PKGBUILD,dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb,r/DESCRIPTION, andr/NEWS.md - (CRAN-only releases) Rebuild news page with
pkgdown::build_news()and submit a PR to the asf-site branch of the docs site with the contents ofarrow/r/docs/news/index.htmlreplacing the current contents ofarrow-site/docs/r/news/index.html - (CRAN-only releases) Bump the version number in
r/pkgdown/assets/versions.json, and update this on the theasf-sitebranch of the docs site too. - Update the packaging checklist template to reflect any new realities of the
packaging process. - Wait for CRAN-hosted binaries on the
CRAN package page to reflect the
new version - Tweet!
- Use Bryce's script for contributor calculation.
Component(s)
R
Reacted by Jonathan Keane
Activity
thisisnic commentedon Oct 23, 2024
Thanks for kicking this off @amoeba! I'll make a PR with the NEWS updates
amoeba commentedon Oct 23, 2024
Thanks @thisisnic. I started on a NEWS.md update while working on other releases and so far have this if it helps:
18.0.0 NEWS.md content
thisisnic commentedon Oct 23, 2024
Ah, I just submitted https://github.com/apache/arrow/pull/44520/files - wanna add suggestions there?
amoeba commentedon Oct 23, 2024
Will do! Working on revdep checks now and will look a bit later.
amoeba commentedon Oct 26, 2024
I merged #44520 and cherry-picked it onto
maint-18.0.0-r. Thanks @thisisnic.This is waiting on RC vote to be finalized, release to be cut, binaries to be uploaded and then I think we can move forward once that's done. I can start up a social media post draft Monday.
thisisnic commentedon Oct 28, 2024
Thanks very much @amoeba! Are you on BlueSky? I think we should consider posting there as it appears that a lot of the R community have gone there.
amoeba commentedon Oct 28, 2024
I am , I see you too. I'll plan to post over there this release too. So that means we're covering Twitter, Mastodon, BlueSky (me), and LinkedIn (Jon).
nealrichardson commentedon Oct 29, 2024
About the news, if it's not too late to cherry-pick, I made #44562. NBD if it's too late though.
amoeba commentedon Oct 30, 2024
Not too late. Cherry-picked as 5a57166. I think libarrow binaries for R should be in place so I can kick that test off soon and I'll continue on this once I finish some Arrow release stuff today.
amoeba commentedon Oct 31, 2024
I prepped the submission archive locally following the instructions, submitted to win-builder (r-devel only) and macbuilder (r-release and r-devel), and saved a copy of the archive to my personal Google Drive. We still have two CI failures in #44523 to investigate.
thisisnic commentedon Nov 1, 2024
Looks like we may want to hold off a moment: https://lists.apache.org/thread/t8k7l2hsbgdt7cszj7hrpjdfpn91n5zb
jonkeane commentedon Nov 1, 2024
I second @thisisnic on holding our release for the 18.0.1. On the positive side, aside from the mirror selection thing that Bryce found in #44523 CI looks good (the devdocs failure is a bit odd, but isn't failing on main, so might be an issue with that running on the release maintenance branch) so hopefully once 18.0.1 is here it'll be a pretty easy submission.
Thanks for all of the work here @amoeba (and others!)
amoeba commentedon Nov 5, 2024
Holding off sounds good. I'm going to close this issue and note for future-us visiting this issue that we chose not to submit 18.0.0 to CRAN in favor of waiting for the upcoming 18.0.1/18.1.0 release to make our first submission in the 18.x.x series.
Thanks all for helping with this submission. I'll plan to kickstart the next submission checklist and begin on the items myself, pinging folks as needed.
hadley commentedon Nov 7, 2024
If you're preparing for CRAN release, then it would be awesome if you could squeeze #44674 in.
amoeba commentedon Nov 7, 2024
We can definitely include that. Thanks for filing it.
eitsupi commentedon Dec 2, 2024
Are there any plans to work on the 18.1.0 release?
amoeba commentedon Dec 3, 2024
Yes @eitsupi. Sorry for the low visibility there. The arrow source release for 18.1.0 is almost finished and I'll start the 18.1.0 submission to CRAN in the first half of this week.