Skip to content

Conversation

@lafiona
Copy link
Contributor

@lafiona lafiona commented Feb 22, 2022

Overview

This pull request is part of a larger effort to rename the default branch from master to main. In order to enable a smooth transition and streamline any future renaming tasks, the default branch name of apache/arrow is computed in the release scripts, instead of hardcoded.

Implementation

  1. Added a script, git-vars.sh that computes the DEFAULT_BRANCH of a Git repository. Calculations for other required Git variables, in the future, can be added to this script.
  2. For the following release scripts, hardcoded references to 'master' have been replaced with the value of DEFAULT_BRANCH:
    • 01-prepare.sh
    • post-12-bump-versions.sh
    • post-04-website.sh
    • post-09-docs.sh
  3. The changes to 01-prepare.sh and 'post-12-bump.share required for renaming the default branch name forapache/arrow`.
  4. To prepare for the default branch name change of the arrow-site repository, references to master are replaced with generic references to the default branch inpost-04-website.sh and post-09-docs.sh.

Testing

  1. The Release Tests in ci/scripts/release_test.sh pass in the CI job.

Notes

  1. Thank you @kevingurney and @sreeharihegden, for helping me with this pull request!

@github-actions
Copy link

@github-actions
Copy link

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

@lafiona lafiona changed the title ARROW-15692: [Dev] Update release scripts to use default branch [WIP] ARROW-15692: [Dev] Update release scripts to use default branch Feb 28, 2022
@lafiona lafiona marked this pull request as ready for review February 28, 2022 18:16
@lafiona
Copy link
Contributor Author

lafiona commented Feb 28, 2022

@nealrichardson , I confirmed that the tests in ci/scripts/release_test.sh pass in the CI job. Are there any additional steps I should take to qualify the changes?

@nealrichardson nealrichardson requested a review from kou March 1, 2022 18:19
lafiona and others added 2 commits March 1, 2022 11:47
Co-authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Copy link
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.

Could you also update the pull request description for the latest changes?

git checkout master
git rebase upstream/master
git checkout ${DEFAULT_BRANCH}
git rebase upstream/${DEFAULT_BRANCH}
Copy link
Member

@kou kou Mar 1, 2022

Choose a reason for hiding this comment

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

We should not change this because the repository is a fork of msys2/MINGW-packages not apache/arrow.

Copy link
Contributor Author

@lafiona lafiona Mar 2, 2022

Choose a reason for hiding this comment

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

Thank you for this feedback, @kou.

I initially included the change in this file to use the default branch of the msys2/MINGW-packages repository, to make the transition smoother if they change the name of their default branch. My thought was that after the cd call on line 35, sourcing git-vars.sh would get the default branch value of the msys2/MINGW-packages repository. However, I have realized that in order for the SOURCE_DIR variable to be computed correctly, this script would need to be executed with a full path.

I will remove the change to use the git-vars.sh in this file and update the pull request description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have also reverted the changes to post-04-website.sh and post-09-docs.sh, as they also reference another repository, apache/arrow-site.

Copy link
Member

Choose a reason for hiding this comment

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

Keep the arrow-site ones in, that's another of our repos that we'll switch over to main (see also ARROW-15694)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've included the arrow-site related changes and updated the description. Thank you for your help, @nealrichardson !

echo "Creating branch: ${branch}"
git branch -D ${branch} || :
git checkout -b ${branch} origin/master
git checkout -b ${branch} origin/${DEFAULT_BRANCH}
Copy link
Member

Choose a reason for hiding this comment

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

We should not change this because the repository is a fork of Homebrew/homebrew-core not apache/arrow.

Copy link
Contributor Author

@lafiona lafiona Mar 2, 2022

Choose a reason for hiding this comment

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

Please see the comment from the previous thread.

Copy link
Member

@nealrichardson nealrichardson left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

Copy link
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

@kou kou closed this in e26a88f Mar 3, 2022
@ursabot
Copy link

ursabot commented Mar 3, 2022

Benchmark runs are scheduled for baseline = 650f111 and contender = e26a88f. e26a88f is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.25% ⬆️0.0%] test-mac-arm
[Finished ⬇️0.36% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.3% ⬆️0.21%] ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@kevingurney kevingurney deleted the ARROW-15689 branch August 21, 2023 18:09
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