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

[sup] Install a package only if missing for start & load. #3425

Merged
merged 1 commit into from
Sep 30, 2017

Conversation

fnichol
Copy link
Collaborator

@fnichol fnichol commented Sep 30, 2017

This resolves an issue in hab-sup start and hab-sup load where the
Supervisor was unconditionally attempting to install a package saving
the Service spec. Without an explicit update strategy, the Supervisor
should find an load the latest version of an installed package on disk.
Otherwise, newer releases of a package will be download and installed
whenever a new candidate is present in the Builder API.

Signed-off-by: Fletcher Nichol fnichol@nichol.ca

This resolves an issue in `hab-sup start` and `hab-sup load` where the
Supervisor was unconditionally attempting to install a package saving
the Service spec. Without an explicit update strategy, the Supervisor
should find an load the latest version of an installed package on disk.
Otherwise, newer releases of a package will be download and installed
whenever a new candidate is present in the Builder API.

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

@christophermaier
Copy link
Contributor

@fnichol Good catch!

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit e99de9f into master Sep 30, 2017
@thesentinels thesentinels deleted the fnichol/sup-start-load-install-if-missing branch September 30, 2017 12:32
@reset
Copy link
Collaborator

reset commented Sep 30, 2017

@fnichol should we patch release this?

@fnichol
Copy link
Collaborator Author

fnichol commented Sep 30, 2017

@reset Yes: without this any Docker images would install new versions on boot, and services in production would likely upgrade themselves starting back up from a stop/start cycle.

@eeyun eeyun added I-linux and removed P-linux labels Mar 6, 2018
@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Platform: Linux Deals with Linux-specific behavior Platform: Windows Deals with Windows-specific behavior Type: Bug Issues that describe broken functionality and removed A-supervisor labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Platform: Linux Deals with Linux-specific behavior Platform: Windows Deals with Windows-specific behavior Type: Bug Issues that describe broken functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants