Repository navigation
Closed
Labels
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 @nealrichardson @assignUser @paleolimbot @eitsupi
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
Activity
assignUser commentedon Dec 3, 2024
Awesome, thanks!
amoeba commentedon Dec 3, 2024
There are a few failures over in the verification PR that need investigating (test-r-devdocs, test-r-rhub-debian-gcc-devel-lto-latest, r-recheck-most). I'll plan to work on them later today/tomorrow.
amoeba commentedon Dec 4, 2024
I looked into the two crossbow job failures and neither looked simple to diagnose and fix. @assignUser can you have a look? It's also not clear to me whether these two failures should hold up submitting to CRAN.
The recheck job above fails but it looks like that's fine since the failure is just because the recheck result for a couple of packages changed from 17.x to 18.x.
amoeba commentedon Dec 4, 2024
I submitted a prepared package archive to winbuilder and macbuilder. Winbuilder should be in Jon's email.
Strangely, the submission to release reports itself as
r-devel-macosx-arm64whereas the submission to devel reports itself asr-oldrel-macosx-arm64. Is that backwards?Release looks good but devel errors,
Is this a transient mac builder issue?
jonkeane commentedon Dec 4, 2024
Oh that is very strange! And even stranger the version numbers are the right way around 4.4 for release and 4.5 for devel. And in the first few lines of the check log for devel there is
using R Under development (unstable) (2024-04-24 r86482)too. So weird!Yeah, that looks like something is up with the environment there — you could try again and see if it just works?
Ideally r-devel passes mac builder, but this kind of failure looks much more like a macbuilder env issue than an arrow-the-package issue, so I would be ok submitting to CRAN still even if this hasn't passed. Some reasoning behind that: we haven't changed our
DESCRIPTIONfile or dependencies, which is why something like that would change because of us.jonkeane commentedon Dec 5, 2024
I just submitted the tar to CRAN 🤞 Thank you @amoeba for all of your help on this, I couldn't have done it without you
jonkeane commentedon Dec 5, 2024
And we are already seeing checks roll into https://cran.r-project.org/web/checks/check_results_arrow.html
assignUser commentedon Dec 5, 2024
a. wow css (colors) on cran
b. what's up with the non-informative error output? That looks like testthat.r echoed?
nealrichardson commentedon Dec 5, 2024
😂
I would guess that means something crashed or exited unexpectedly somewhere. Maybe even an oom-kill? Something where stdout isn't informative.
IIRC macOS checks will automatically rerun so let's see if it happens again?
assignUser commentedon Dec 5, 2024
It did not 🎉
amoeba commentedon Dec 7, 2024
Hey all, it looks like the CRAN binaries have been built (with the exception of windows
r-devel) so I think we can post to socials.I've started a Google Doc. Due to the small changeset in this release, I decided not to do a long tweet thread with screenshots. However, I could be convinced to hype this up more if anyone feels differently. I'll do a final copy-edit before posting anywhere but please have a look. I'll plan to post to Twitter, Mastodon, and Blue Sky.
I've also submitted a PR to sync the docs if anyone wants to do a quick review.
Once those two things (social posts, website PR) are done, I think we can close this release out.
amoeba commentedon Dec 10, 2024
@jonkeane do you want to have a look at the social media google doc? I'll plan to post regardless but a review would be great.
nealrichardson commentedon Dec 11, 2024
Thank you for wrangling this. I made a couple of suggestions in the doc. Jon is on vacation now so I'm not sure they will be available to respond (or skeet).
amoeba commentedon Dec 11, 2024
Thanks for the edits on the social media doc, it's much appreciated @nealrichardson. Shoulda pinged you in the first place.
I'll schedule my posts to go out tomorrow.
assignUser commentedon Dec 11, 2024
fyi: #44995
amoeba commentedon Dec 11, 2024
Closing this out as the checklist is complete. Thanks all for the help with the release tasks.