Skip to content

test: integration test pst#496

Closed
spetznick-elia wants to merge 52 commits into
mainfrom
feat/integration-test-pst
Closed

test: integration test pst#496
spetznick-elia wants to merge 52 commits into
mainfrom
feat/integration-test-pst

Conversation

@spetznick-elia
Copy link
Copy Markdown
Collaborator

@spetznick-elia spetznick-elia commented May 21, 2026

This PR adds PST-focused integration coverage that cross-checks DC-solver fitness metrics against Powsybl-based validation, and introduces a new “parallel PST” example grid plus supporting fixture updates across packages.

Changes:

  • Add new AC/DC integration tests comparing overload_energy_n_1 between DC solver aggregation and Powsybl runner validation for multiple PST scenarios.
  • Introduce a new Powsybl example grid (parallel_pst_example) and corresponding preprocessed data-folder helper in dc_solver_pkg.
  • Refactor/update test fixtures to rely on centralized example-grid preprocessing helpers (and rename a DC-solver test fixture).

Checklist

Please check if the PR fulfills these requirements:

  • PR Title follows conventional commit messages
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • All commits in this PR are DCO signed-off (see CONTRIBUTING.md)

Does this PR already have an issue describing the problem?

Fixes #

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change?

  • Yes
  • No

BenjPetr and others added 4 commits May 20, 2026 12:31
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 21, 2026 13:04
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 PST-focused integration coverage that cross-checks DC-solver fitness metrics against Powsybl-based validation, and introduces a new “parallel PST” example grid plus supporting fixture updates across packages.

Changes:

  • Add new AC/DC integration tests comparing overload_energy_n_1 between DC solver aggregation and Powsybl runner validation for multiple PST scenarios.
  • Introduce a new Powsybl example grid (parallel_pst_example) and corresponding preprocessed data-folder helper in dc_solver_pkg.
  • Refactor/update test fixtures to rely on centralized example-grid preprocessing helpers (and rename a DC-solver test fixture).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Adds new PST integration tests comparing DC-solver metric aggregation vs Powsybl validation metrics.
packages/topology_optimizer_pkg/tests/conftest.py Updates test grid initialization to use centralized complex-grid preprocessing helper and passes returned preprocessing parameters into load_grid.
packages/grid_helpers_pkg/src/toop_engine_grid_helpers/powsybl/example_grids.py Adds a new parallel_pst_example() Powsybl network generator to exercise parallel PST handling.
packages/dc_solver_pkg/tests/test_example_grids.py Updates test to use renamed/updated complex-grid fixture.
packages/dc_solver_pkg/tests/conftest.py Refactors complex-grid fixture setup; introduces a new complex_grid_battery_hvdc_svc_3w_trafo_fixture.
packages/dc_solver_pkg/src/toop_engine_dc_solver/example_grids.py Adds reusable preprocessing helpers for the complex grid and parallel PST grid, returning PreprocessParameters.

Comment thread packages/dc_solver_pkg/tests/conftest.py
Comment thread packages/dc_solver_pkg/tests/conftest.py Outdated
Comment thread packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Outdated
Comment thread packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Outdated
Comment thread packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Outdated
spetznick-elia and others added 12 commits May 21, 2026 19:52
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Leonard Hilfrich <Leonard.Hilfrich@50Hertz.com>
Signed-off-by: Leonard Hilfrich <Leonard.Hilfrich@50Hertz.com>
Signed-off-by: Leonard Hilfrich <Leonard.Hilfrich@50Hertz.com>
@mihasajko
Copy link
Copy Markdown
Collaborator

@spetznick-elia just looking at the PR title, shouldn't the type be test?

…near_only' into feat/integration-test-pst

Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
@spetznick-elia
Copy link
Copy Markdown
Collaborator Author

@spetznick-elia just looking at the PR title, shouldn't the type be test?

oh, we got the test tag, good to know ;) @mihasajko

@spetznick-elia spetznick-elia changed the title feat: integration test pst test: integration test pst May 22, 2026
spetznick-elia and others added 5 commits May 22, 2026 16:15
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
…near_only' into feat/integration-test-pst

Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 31 out of 31 changed files in this pull request and generated 5 comments.

Comment thread packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Outdated
Comment thread packages/topology_optimizer_pkg/tests/test_ac_dc_integration.py Outdated
Comment thread packages/grid_helpers_pkg/src/toop_engine_grid_helpers/powsybl/example_grids.py Outdated
spetznick-elia and others added 20 commits May 26, 2026 15:19
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Benjamin Petrick <170433522+BenjPetr@users.noreply.github.com>
…-pst

Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Leonard Hilfrich <Leonard.Hilfrich@50Hertz.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
Signed-off-by: Sascha Petznick <229719644+spetznick-elia@users.noreply.github.com>
@spetznick-elia
Copy link
Copy Markdown
Collaborator Author

closed in favor of #507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants