Skip to content

ARROW-5415: [Release] Release script should update R version everywhere#4727

Closed
nealrichardson wants to merge 3 commits into
apache:masterfrom
nealrichardson:r-version-update
Closed

ARROW-5415: [Release] Release script should update R version everywhere#4727
nealrichardson wants to merge 3 commits into
apache:masterfrom
nealrichardson:r-version-update

Conversation

@nealrichardson
Copy link
Copy Markdown
Member

@nealrichardson nealrichardson commented Jun 27, 2019

In previous patches, I removed other places where the version was explicitly referenced, making them parse it from r/DESCRIPTION where necessary. The only remaining one (added by #4711) is r/NEWS.md, and it works a little differently when bumping from a release version to a dev version. So from dev to release, we go from e.g.

# arrow 0.13.0.9000

* Stuff we did in this release
* More stuff

to

# arrow 0.14.0

* Stuff we did in this release
* More stuff

but when bumping after release for the next dev version, it goes to

# arrow 0.14.0.9000

# arrow 0.14.0

* Stuff we did in this release
* More stuff

so that we have a place to accumulate the list of changes in the next release.

@nealrichardson
Copy link
Copy Markdown
Member Author

Here's a passing Travis build for the lint/release test job: https://travis-ci.org/nealrichardson/arrow/jobs/551443590

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure changes except dev/release/ and r/NEWS.md should be included this "Release script should update R version everywhere" pull request.
(Normally, I don't want to include...)

Comment thread dev/release/00-prepare.sh Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use [ ${type} = "snapshot" ] here?

Comment thread dev/release/00-prepare-test.rb Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use #{@release_version}.9000 here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, yes, will do.

@nealrichardson
Copy link
Copy Markdown
Member Author

Once #4711 merges I'll push a cleaned up branch; just wanted to make the change visible for review now (and thanks for the review).

@codecov-io
Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@263c287). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4727   +/-   ##
=========================================
  Coverage          ?   75.68%           
=========================================
  Files             ?       58           
  Lines             ?     3735           
  Branches          ?        0           
=========================================
  Hits              ?     2827           
  Misses            ?      908           
  Partials          ?        0
Impacted Files Coverage Δ
r/R/csv.R 97.72% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 263c287...d6f19af. Read the comment docs.

@wesm
Copy link
Copy Markdown
Member

wesm commented Jun 27, 2019

This can be rebased now

* Update r/NEWS.md version in release prep script
* Replace only the first match in r/NEWS.md
* For post-release, add an entry to r/NEWS.md
@nealrichardson
Copy link
Copy Markdown
Member Author

Rebased and the lint/release job passed on my Travis: https://travis-ci.org/nealrichardson/arrow/jobs/551551770

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
I've pushed a commit to use [ ... ] instead of [[ ... ]] for consistency.
We can merge this when CI is green.

@kou
Copy link
Copy Markdown
Member

kou commented Jun 28, 2019

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants