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

Updog: nice JSON and better waves #539

Merged
merged 4 commits into from
Dec 16, 2019
Merged

Updog: nice JSON and better waves #539

merged 4 commits into from
Dec 16, 2019

Commits on Nov 19, 2019

  1. updog: Make JSON pretty

    Signed-off-by: Samuel Mendoza-Jonas <samjonas@amazon.com>
    sam-aws committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    b2adbf9 View commit details
    Browse the repository at this point in the history
  2. updog: Logical fixes to update waves

    Change Update.update_wave() to return the wave bounds that encompass
    Updog's seed value instead of just the lower bound. This makes the
    actual update 'wave' relevant to a given Updog easier to conceptualise.
    With follow-on changes to update_ready() and jitter() this fixes an
    issue where if Updog was in the "0th" wave (ie. no lower bound) it would
    incorrectly assume it had to wait for the upper bound time, when it is
    actually free to update.
    
    Signed-off-by: Samuel Mendoza-Jonas <samjonas@amazon.com>
    sam-aws committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    f720be7 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2019

  1. updog: Update and reorganise some tests.

    Add a new test to check handling of max_version, update to reflect the
    changes to wave representation,  and make some minor updates to other
    tests.
    
    Signed-off-by: Samuel Mendoza-Jonas <samjonas@amazon.com>
    sam-aws committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    2439764 View commit details
    Browse the repository at this point in the history
  2. update_metadata: Introduce the Wave enum

    Add the Wave enum which defines the wave for a given Updog seed as
    either the Initial wave, a General wave, or the Last wave. The
    associated functions has_started() and has_passed() use these types to
    simplify the logic in jitter() and update_ready().
    
    Signed-off-by: Samuel Mendoza-Jonas <samjonas@amazon.com>
    sam-aws committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    f46b375 View commit details
    Browse the repository at this point in the history