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

Allow optionally forcing power requests #365

Commits on May 25, 2023

  1. Fix wrong documentation in tests

    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    9797c16 View commit details
    Browse the repository at this point in the history
  2. Use future annotations in power distribution tests

    Future annotations is already imported and it should
    be used instead.
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    366462c View commit details
    Browse the repository at this point in the history
  3. Test all batteries are used if none of them works

    A test was not added when the power distributing actor
    was updated in the past to use all the batteries for
    cases where all of them are reported as not working
    batteries.
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    6116e95 View commit details
    Browse the repository at this point in the history
  4. Amend existent power distributing test

    To make it consistent with recently added
    power distributing tests.
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    a1bf628 View commit details
    Browse the repository at this point in the history
  5. Simplify working batteries check

    The _get_working_batteries method had unnecessary complexity
    and was redundant as it was returning the original set of batteries
    if there was any working battery.
    Therefore, this commit removes the _get_working_batteries method and
    simplifies the check for working batteries.
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    7ee1bf3 View commit details
    Browse the repository at this point in the history
  6. Add battery request check for empty set

    Requests with empty batteries set need to be rejected.
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    0540381 View commit details
    Browse the repository at this point in the history
  7. Allow optionally forcing power requests

    A power request might need to be forced to implement
    safety mechanisms, even when some components might be
    seemingly failing (i.e. when there is not proper consumption
    information, the user wants to slowly discharge batteries to
    prevent potential peak breaches).
    
    Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
    daniel-zullo-frequenz committed May 25, 2023
    Configuration menu
    Copy the full SHA
    7fa7b70 View commit details
    Browse the repository at this point in the history