Skip to content

Add system test for KPI integration in simulator workflow#175

Open
jarsarasty wants to merge 2 commits into
mainfrom
system-test-for-KPI-simulator-integration
Open

Add system test for KPI integration in simulator workflow#175
jarsarasty wants to merge 2 commits into
mainfrom
system-test-for-KPI-simulator-integration

Conversation

@jarsarasty
Copy link
Copy Markdown

@jarsarasty jarsarasty commented Mar 19, 2026

  • Update docker-compose.yml to use simulator-worker 0.0.30beta2 (kpi-calculator 0.4.2 integration; 0.0.29 was never released as stable)
  • Add test__simulator__kpis_present_in_output asserting KPIs are present in instance[0].area after a full pipeline run, with CAPEX verified against the ESDL costInformation and system_lifetime exercised with a non-default value (25 years)
  • Add EXCLUDE_KPIS path set and pass it to compare_esdl in existing simulator tests so KPI churn does not break snapshot comparisons
  • Increase simulator test timeouts from 60s to 120s (100s to 160s for the delete test): KPI calculation runs after each simulation, adding ~30-60s per job

@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch 2 times, most recently from 107ce00 to 9eccd6f Compare March 19, 2026 09:06
@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch 2 times, most recently from c0e145e to 4a46805 Compare March 20, 2026 08:01
@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch 2 times, most recently from a7d52f7 to 487ce99 Compare April 13, 2026 09:30
@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch from 487ce99 to 9093540 Compare May 12, 2026 12:38
- Add test__simulator__kpis_present_in_output asserting KPIs are present
  in instance[0].area after a full pipeline run, with CAPEX verified
  against the ESDL costInformation and system_lifetime exercised with a
  non-default value (25 years)
- Update docker-compose.yml to use simulator-worker 0.0.30beta2
  (kpi-calculator 0.4.2 integration; 0.0.29 was never released as stable)
- Add EXCLUDE_KPIS path set and pass it to compare_esdl in existing
  simulator tests so KPI churn does not break snapshot comparisons
- Increase simulator test timeouts to 120s to account for KPI calculation
  time added after simulation
@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch 3 times, most recently from bc36874 to b8f1bf2 Compare May 12, 2026 14:21
- Replace simulator_ates_short_run.esdl with test_ates.esdl from simulator-worker
  to fix negative mass flow caused by reversed ATES pipe directions
- Update snapshot test__simulator__multiple_ates_run.esdl to match new ESDL output
- Improve KPI assertions in test__simulator__kpis_present_in_output: check exact
  KPI name set, assert CAPEX/OPEX values against ESDL cost data, and verify
  Production/Demand energy entries are positive
@jarsarasty jarsarasty force-pushed the system-test-for-KPI-simulator-integration branch from b8f1bf2 to 9c3b6d3 Compare May 12, 2026 14:47
@jarsarasty jarsarasty requested a review from MarkTNO May 21, 2026 12:10
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.

1 participant