Skip to content

[R] CRAN packaging checklist for version 17.0.0 #43317

Closed

Description

@jonkeane

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 @amoeba @nealrichardson @assignUser @paleolimbot for coordination on the various tasks to release

We will want to cherry pick:

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

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)

Ensure linux binary packages are available:

Check binary Arrow C++ distributions specific to the R package

  • Upload the .tar.gz to win-builder (r-devel only)
    and confirm (with Nic, who will automatically receive an email about the results) that the check is clean.
    This step cannot be completed before Jeroen has put the binaries in the MinGW repository, i.e. here, here, and here.
  • 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
  • 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!

Component(s)

R

Component(s)

R

Activity

  1. self-assigned this
    on Jul 18, 2024
  2. jonkeane commented on Jul 18, 2024

    @jonkeane
    MemberAuthor

    @assignUser Did you use Rscript tools/update-checksums.R <libarrow version> in the past to generate the contents of 12ec842 ?

  3. assignUser commented on Jul 18, 2024

    @assignUser
    Member

    Yes :)
    Let me know if I can help with anything!

  4. amoeba commented on Jul 18, 2024

    @amoeba
    Member

    I added the NEWS.md entry from #43189 to the release blog post PR.

  5. assignUser commented on Jul 20, 2024

    @assignUser
    Member

    @jonkeane mac builder: https://mac.r-project.org/macbuilder/results/1721447405-da61deb72185bfbc/
    win builder should reach you by mail, if that's clean I think only a revdep check is missing. @paleolimbot didn't you have a super quick script that doesn't take a million hours to run?

  6. jonkeane commented on Jul 20, 2024

    @jonkeane
    MemberAuthor

    Thanks for sending those, Jacob.

    Here's the winbuilder output: https://win-builder.r-project.org/SrOKYg8yT1lm/

    https://win-builder.r-project.org/SrOKYg8yT1lm/00check.log

    The only thing in there that looks worrying is

    * checking R code for possible problems ... [33s] NOTE
    mutate.ArrowTabular: no visible global function definition for
      'left_join'
    mutate.Dataset: no visible global function definition for 'left_join'
    mutate.RecordBatchReader: no visible global function definition for
      'left_join'
    mutate.arrow_dplyr_query: no visible global function definition for
      'left_join'
    Undefined global functions or variables:
      left_join
    * checking Rd files ... OK
    

    Which I suspect is from https://github.com/apache/arrow/pull/41576/files and can be dealt with by adding dplyr:: onto those calls again

  7. amoeba commented on Jul 20, 2024

    @amoeba
    Member

    I brought in the changes from maint-17.0.0-r (see my main branch) and kicked off two recheck jobs (1, 2).

    Edit: I need to tweak recheck a bit to run so the linked jobs failed right away. I'll update them once recheck is running.
    Edit 2: Updated URLs.

  8. nealrichardson commented on Jul 20, 2024

    @nealrichardson
    Member

    Which I suspect is from https://github.com/apache/arrow/pull/41576/files and can be dealt with by adding dplyr:: onto those calls again

    Sorry! I thought I fixed those but I guess I added more. LMK if you need me to make a PR.

  9. jonkeane commented on Jul 20, 2024

    @jonkeane
    MemberAuthor

    No problem, I've got one at #43348

    I'll merge that if CI shows it gets rid of the note (and there are no other bad consequences) then cherrypick that back to the maintenance branch.

    This isn't a here-and-now problem, but boy do I wish we could say "these notes we don't care about but all the others we do" for things like this 🤦

  10. jonkeane commented on Jul 20, 2024

    @jonkeane
    MemberAuthor

    @amoeba am I reading these logs from recheck correctly that with new arrow parquetize is failing in this example:

    > ### Name: csv_to_parquet
    > ### Title: Convert a csv or a txt file to parquet format
    > ### Aliases: csv_to_parquet
    > 
    > ### ** Examples
    > 
    > 
    > # Conversion from a local csv file to a single parquet file :
    > 
    > csv_to_parquet(
    +   path_to_file = parquetize_example("region_2022.csv"),
    +   path_to_parquet = tempfile(fileext=".parquet")
    + )
    Reading data...
    Writing data...
    Error in Table__from_dots(dots, schema, option_use_threads()) : 
      No Set_elt found for ALTSTRING class [class: vroom_chr, pkg: vroom]
    Calls: csv_to_parquet ... as_arrow_table.data.frame -> <Anonymous> -> Table__from_dots
    Reading data...
    Execution halted
    
  11. amoeba commented on Jul 20, 2024

    @amoeba
    Member

    Hey @jonkeane, I think that's the right interpretation.

  12. jonkeane commented on Jul 20, 2024

    @jonkeane
    MemberAuthor

    Ah, that is a regression on us: #43349 I need to step away for a bit, in case someone wants to investigate what's up there. I don't think much has changed with our altrep code, but this could be from our non-api avoidance changes (or possibly the change we made to avoid executing functions while reading data).

  13. jonkeane commented on Jul 27, 2024

    @jonkeane
    MemberAuthor

    Ok, I've merged the fix for the altrep thing that was hitting parquetize. @amoeba would you mind triggering the revdep checks again?

  14. jonkeane commented on Jul 30, 2024

    @jonkeane
    MemberAuthor

    I just got a note about errors from lz4 on CRAN's devel debian runners.

    With current Debian testing, installation now fails, see the install log. Apparently this is from yesterday's system upgrade of

    liblz4-dev:amd64 (1.9.4-2, 1.9.4-3), liblz4-1:amd64 (1.9.4-2, 1.9.4-3)

    I can confirm that ARROW_WITH_LZ4=OFF ./configure works where ./configure now fails.

    We will need to fix this as will in our 17 submission (and get it in within two weeks too).

    We are linking against the shared, system lz4 which is fine in this case because CRAN does not distribute these binaries. But one possibility is to force non-shared lz4 and it'll grab source + build.

    cc @assignUser @nealrichardson

  15. 37 remaining items

  16. assignUser commented on Aug 23, 2024

    @assignUser
    Member

    We are missing a checkbox to move the r-univerese tag, I'll move the tag forward in a bit
    e: done

  17. amoeba commented on Aug 26, 2024

    @amoeba
    Member

    Thanks @jonkeane and @thisisnic for taking a look at the social media doc. I accepted suggestions and added code screenshots to the Drive folder where appropriate, see https://drive.google.com/drive/folders/1DzGoZNHbiZXNca2oHWjpBtJrEti3W-zQ?usp=drive_link, so I think this is ready for me and @jonkeane to post when x86_64 binaries go live.

  18. amoeba commented on Sep 12, 2024

    @amoeba
    Member

    It looks like the macOS x86_64 binary finally got built, see https://cran.r-project.org/web/packages/arrow/index.html. The binary for oldrel still isn't built but I don't think that should prevent any announcement about the release. Thoughts?

  19. thisisnic commented on Sep 14, 2024

    @thisisnic
    Member

    Let's do it! Thanks @amoeba!

  20. jonkeane commented on Sep 15, 2024

    @jonkeane
    MemberAuthor

    Agreed, let's call it. The oldrelease is one that I've asked about before on mailing lists and they sometimes are super slow, but I've seen periods where they don't build for any packages for weeks and eventually sort themselves.

    I can RTFS, but does anyone know how / if we can update the docs website to show the 17.0.0.1 number?

  21. amoeba commented on Sep 17, 2024

    @amoeba
    Member

    I scheduled tweets/toots to go out tomorrow morning.

    Re: The website showing version 17.0.0... I think we might want to find a better workflow but for now I created apache/arrow-site#542 to do the update. My steps are described there.

    Edit: Threads up at https://x.com/brycem/status/1836040825752490139 and https://elk.zone/toot.cafe/@amoeba/113153321269054346

  22. jonkeane commented on Sep 22, 2024

    @jonkeane
    MemberAuthor

    I've also made an article on linkedin not sure if that's the right level of linked in posting, but I'll keep an eye on if it gets engagement.

    Thanks for the help, everyone! I'm going to close this out.

  23. amoeba commented on Sep 23, 2024

    @amoeba
    Member

    Thanks @jonkeane. Do we need to update the r-universe-release tag still and add a r-17.0.01 tag?

  24. jonkeane commented on Sep 23, 2024

    @jonkeane
    MemberAuthor

    Yeah, if we don't have one already we should. Sorry I didn't look at that

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