-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add BatteryStatus tests to ensure it recovers automatically after issues #522
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
part:tests
Affects the unit, integration and performance (benchmarks) tests
part:actor
Affects an actor ot the actors utilities (decorator, etc.)
labels
Jul 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have few minor comments to check for, other than that LGTM
These classes were redefining all parameters, and that had the risk of going out of sync with the fields in the base class. This PR ties the wrappers with their base classes, such that it is easy to identify changes to the base classes, without updates to the wrappers. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
In most component graph configs, batteries would be attached to inverters and the inverters would be meters. But there might be some cases where there are no meters, and we'll have to read data from the inverters. This commit enables such test configs, that can be used in tests that use the MockMicrogrid. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
This is the grid power test for component configs without a grid side meter, so it will have to read values from the inverter, to calculate the grid power. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
MockMicrogrid makes it easy to dynamically create component graph configurations to test with, rather than having to use manually written component graphs with the lower level MockMicrogridClient. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
These are now unused because tests have migrated to use dynamic component graphs provided by MockMicrogrid. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Because of the nature of async, it might happen that data is slightly delayed, so a timer event gets triggered, but component data arrives before the timer event arrives, and in such cases, we end up going into a bad state. This issue is resolved in this PR, by checking that the component data is actually late, every time a timer triggers. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
daniel-zullo-frequenz
approved these changes
Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
part:actor
Affects an actor ot the actors utilities (decorator, etc.)
part:tests
Affects the unit, integration and performance (benchmarks) tests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR also does: