Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prysm.sh download only option #5628

Merged
merged 2 commits into from
Apr 26, 2020
Merged

Conversation

farazdagi
Copy link
Contributor

@farazdagi farazdagi commented Apr 26, 2020

What type of PR is this?
Feature

What does this PR do? Why is it needed?

  • fixes formatting (we had 6 spaces, 2 spaces, 4 spaces as indents - now, it is 4 spaces everywhere, I've used Golands default shell script formatter).
  • adds --download-only option, so that ./prysm.sh beacon-chain --download-only or ./prysm.sh validator --download-only, checks for updated version, downloads and verifies it, and stops on that - w/o starting (beacon/validator/slasher) node.

Which issues(s) does this PR fix?

Fixes #5580

Other notes for review

  • I've considered implementing it as ./prysm.sh update, which would update all the binaries, but it didn't seem to be the most flexible way. With --download-only flag we can update any binary (or all three ./prysm beacon-chain --download-only && ./prysm validator --download-only && ./prysm.sh slasher --download-only effectively having the ./prysm.sh update functionality), and we do not need to amend internal logic of the script (where script is the wrapper for some process: validator, beacon-chain, or slasher node).

@farazdagi farazdagi self-assigned this Apr 26, 2020
@farazdagi farazdagi marked this pull request as ready for review April 26, 2020 18:01
@farazdagi farazdagi requested a review from a team as a code owner April 26, 2020 18:01
@farazdagi farazdagi changed the title format srcipt prysm.sh download only option Apr 26, 2020
@farazdagi farazdagi added OK to merge Ready For Review A pull request ready for code review labels Apr 26, 2020
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Lgtm. I didnt test it but the code looks good 👍

@prylabs-bulldozer prylabs-bulldozer bot merged commit d0f3bea into master Apr 26, 2020
@delete-merged-branch delete-merged-branch bot deleted the prysm-sh-download-only branch April 26, 2020 18:25
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add update option in prysm.sh
3 participants