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

prepare_meta does not exit on failed upgrades #4

Open
kdopen opened this issue Feb 14, 2017 · 3 comments
Open

prepare_meta does not exit on failed upgrades #4

kdopen opened this issue Feb 14, 2017 · 3 comments

Comments

@kdopen
Copy link
Contributor

kdopen commented Feb 14, 2017

If an attempt to upgrade the script fails hard, the script simply continues on. This can be problematic if you are relying on something in the updated script (e.g. a new flavor such as chinook)

info "Error while checking for upgrade on script $SCRIPT"
rm $tempfile
return 0

This makes it hard to use the script reliably in automation environments (such as jenkins)

@jobol
Copy link
Member

jobol commented Feb 14, 2017

@kdopen should it be closed now?

@kdopen
Copy link
Contributor Author

kdopen commented Feb 14, 2017

No, I deliberately did not include a fix to this in my pull request

  • It is an unrelated change, and shouldn't be in that commit
  • It is a potentially breaking change for anyone already using the script
  • You might be perfectly happy with the current behavior.

I think this needs some discussion

@kdopen
Copy link
Contributor Author

kdopen commented Feb 14, 2017

Here's another place where it happens

wget --quiet -O $tempfile $SELF_URL || { info "Unable to check for upgrade. Remote script not accessible"; rm -f $tempfile; return 0; }

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

No branches or pull requests

2 participants