Skip to content

[R] CRAN packaging checklist for version 18.1.0 #44913

Closed

Description

@amoeba

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.X and 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_MAJOR in 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-r and 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 runs R CMD build to 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 unset ARROW_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 r to 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, and r/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 of arrow/r/docs/news/index.html replacing the current contents of arrow-site/docs/r/news/index.html
  • (CRAN-only releases) Bump the version number in r/pkgdown/assets/versions.json, and update this on the the asf-site branch 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

  1. self-assigned this
    on Dec 3, 2024
  2. assignUser commented on Dec 3, 2024

    @assignUser
    Member

    Awesome, thanks!

  3. amoeba commented on Dec 3, 2024

    @amoeba
    MemberAuthor

    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.

  4. amoeba commented on Dec 4, 2024

    @amoeba
    MemberAuthor

    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.

  5. amoeba commented on Dec 4, 2024

    @amoeba
    MemberAuthor

    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-arm64 whereas the submission to devel reports itself as r-oldrel-macosx-arm64. Is that backwards?

    Release looks good but devel errors,

    * using log directory ‘/Volumes/PkgBuild/work/1733284748-db3d8c3c2f65a17e/packages/big-sur-arm64/results/4.5/arrow.Rcheck’
    * using R Under development (unstable) (2024-04-24 r86482)
    * using platform: aarch64-apple-darwin20
    * R was compiled by
        Apple clang version 14.0.0 (clang-1400.0.29.202)
        GNU Fortran (GCC) 12.2.0
    * running under: macOS Ventura 13.3.1
    * using session charset: UTF-8
    * checking for file ‘arrow/DESCRIPTION’ ... OK
    * this is package ‘arrow’ version ‘18.1.0’
    * package encoding: UTF-8
    * checking package namespace information ... OK
    * checking package dependencies ... ERROR
    Packages required but not available:
      'assertthat', 'bit64', 'glue', 'purrr', 'R6', 'rlang', 'tidyselect',
      'vctrs', 'cpp11'
    
    Packages suggested but not available for checking:
      'blob', 'curl', 'cli', 'DBI', 'dbplyr', 'decor', 'distro', 'dplyr',
      'duckdb', 'hms', 'jsonlite', 'knitr', 'lubridate', 'pillar',
      'pkgload', 'reticulate', 'rmarkdown', 'stringi', 'stringr', 'sys',
      'testthat', 'tibble', 'tzdb', 'withr'
    
    See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
    manual.
    * DONE
    Status: 1 ERROR
    

    Is this a transient mac builder issue?

  6. jonkeane commented on Dec 4, 2024

    @jonkeane
    Member

    Strangely, the submission to release reports itself as r-devel-macosx-arm64 whereas the submission to devel reports itself as r-oldrel-macosx-arm64. Is that backwards?

    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!

    Is this a transient mac builder issue?

    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 DESCRIPTION file or dependencies, which is why something like that would change because of us.

  7. jonkeane commented on Dec 5, 2024

    @jonkeane
    Member

    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

  8. jonkeane commented on Dec 5, 2024

    @jonkeane
    Member

    package arrow_18.1.0.tar.gz is on its way to CRAN

    And we are already seeing checks roll into https://cran.r-project.org/web/checks/check_results_arrow.html

  9. assignUser commented on Dec 5, 2024

    @assignUser
    Member

    a. wow css (colors) on cran
    b. what's up with the non-informative error output? That looks like testthat.r echoed?

  10. nealrichardson commented on Dec 5, 2024

    @nealrichardson
    Member

    a. wow css (colors) on cran

    😂

    b. what's up with the non-informative error output? That looks like testthat.r echoed?

    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?

  11. assignUser commented on Dec 5, 2024

    @assignUser
    Member

    IIRC macOS checks will automatically rerun so let's see if it happens again?

    It did not 🎉

  12. amoeba commented on Dec 7, 2024

    @amoeba
    MemberAuthor

    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.

  13. amoeba commented on Dec 10, 2024

    @amoeba
    MemberAuthor

    @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.

  14. nealrichardson commented on Dec 11, 2024

    @nealrichardson
    Member

    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).

  15. amoeba commented on Dec 11, 2024

    @amoeba
    MemberAuthor

    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.

  16. assignUser commented on Dec 11, 2024

    @assignUser
    Member

    fyi: #44995

  17. amoeba commented on Dec 11, 2024

    @amoeba
    MemberAuthor

    Closing this out as the checklist is complete. Thanks all for the help with the release tasks.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions