-
Notifications
You must be signed in to change notification settings - Fork 45
Observability: add finer grained unit test for both existing radial check and new meshed check #1146
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
Observability: add finer grained unit test for both existing radial check and new meshed check #1146
Conversation
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
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.
Pull Request Overview
This PR adds comprehensive unit tests for individual functions within the observability module, focusing on more granular function-level testing compared to the existing integration tests. The tests cover radial check functions and provide groundwork for future meshed check function testing.
Key changes:
- Adds unit tests for all major functions in the observability module including
scan_network_sensors,prepare_starting_nodes,expand_neighbour_list,assign_independent_sensors_radial,starting_from_node,necessary_condition, and both sufficient condition functions - Maintains dependency on mathematical topology and
YBusStructurefor practical testing - Provides extensive test coverage with various scenarios including edge cases, error conditions, and different network topologies
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
just a small preliminary review with things i noticed when we went over the code very quickly during one of our recent standups
Signed-off-by: Jerry Guo <[email protected]>
|
|
…eaking in core logic is sound Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
…-voltage-phasor' into feature/unit-test-observability-check
Signed-off-by: Jerry Guo <[email protected]>
…-voltage-phasor' into feature/unit-test-observability-check
…-voltage-phasor' into feature/unit-test-observability-check
…-voltage-phasor' into feature/unit-test-observability-check
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'm currently at Test Observability - complete_bidirectional_neighbourhood_info. I'll continue as soon as I have time. Looks very good so far.
Signed-off-by: Jerry Guo <[email protected]>
…-voltage-phasor' into feature/unit-test-observability-check
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
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.
Only the last bit missing
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.
Done!
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
…date and reassignment Signed-off-by: Jerry Guo <[email protected]>
…-voltage-phasor' into feature/unit-test-observability-check
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.
No further comments from me. Ready to be merged when the parent is.
Signed-off-by: Jerry Guo <[email protected]>
…-voltage-phasor' into feature/unit-test-observability-check
|
|
|
The base branch was changed.



Unit test for all functions within the observability module, related to #1136
The unit tests are added with still dependency on mathematical topology and
YBusStructure. This choice was due to the fact that when trying to wrap certain functionalities from the observability module, any mocking attempt will have to be redone. Therefore, the most straight-forward path is chosen to extend this unit test for the objective of function-level unit testing this module.