Skip to content

ARROW-6121: [Tools] Improve merge tool ergonomics#5000

Closed
fsaintjacques wants to merge 4 commits intoapache:masterfrom
fsaintjacques:ARROW-6121-merge-ergonomic
Closed

ARROW-6121: [Tools] Improve merge tool ergonomics#5000
fsaintjacques wants to merge 4 commits intoapache:masterfrom
fsaintjacques:ARROW-6121-merge-ergonomic

Conversation

@fsaintjacques
Copy link
Copy Markdown
Contributor

@fsaintjacques fsaintjacques commented Aug 2, 2019

  • merge_arrow_pr.py now accepts the pull-request number as a single optional argument, e.g. ./merge_arrow_pr.py 4921.
  • merge_arrow_pr.py can optionally read a configuration file located in ~/.config/arrow/merge.conf which contains options like jira credentials. See the dev/merge.conf file as example

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 like this improvement.
How about renaming dev/merge.conf to dev/merge.conf.example, dev/merge.conf.sample or something? Developers may think that we can use dev/merge.conf directly without copying this to ~/.config.arrow/merge.conf.

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.

Are we sure those are always set both? Should we not have:

if not username:
    username = cmd.prompt(...)
if not password:
    password = cmd.getpass(...)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That would be weird to set one and not the other, but we could.

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.

Someone paranoid may not like to store a password in a conf file or an environment variable.

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.

We may as well make this change. I tested the script so we can merge this one this is addressed

fsaintjacques and others added 4 commits August 6, 2019 13:45
- merge_arrow_pr.py now accepts the pull-request number as a single
  optional argument, e.g. `merge_arrow_pr.py 4921`.
- merge_arrow_pr.py can optionally read a configuration file located in
  `~/.config/arrow/merge.conf` which contains options like jira
  credentials. See the `dev/merge.conf` file as example
This explicits that this file is not used and must be installed.
@wesm wesm force-pushed the ARROW-6121-merge-ergonomic branch from aa7bbd6 to 5298308 Compare August 6, 2019 19:03
Copy link
Copy Markdown
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

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

+1

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