Skip to content

Add testing of the sample profiling - #1684

Merged
rowleya merged 3 commits into
masterfrom
profile_using_energy_report
Jul 29, 2026
Merged

Add testing of the sample profiling#1684
rowleya merged 3 commits into
masterfrom
profile_using_energy_report

Conversation

@rowleya

@rowleya rowleya commented Jul 28, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings July 28, 2026 13:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 new integration tests under spynnaker_integration_tests/ to validate generation of the sample profiling report (and, in a second scenario, sample profiling alongside energy reporting), supporting coverage for SpiNNakerManchester/SpiNNFrontEndCommon#1374.

Changes:

  • Add an integration test that runs a synfire model and asserts a sample profiling report JSON is produced and contains expected fields.
  • Add an integration test that asserts both energy reporting (via provenance) and sample profiling report generation when both reports are enabled.
  • Introduce per-test spynnaker.cfg files to enable advanced monitor support and the required report outputs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
spynnaker_integration_tests/test_sample_profile/test_sample_profile.py New integration test that runs a model and validates sample profiling report JSON fields.
spynnaker_integration_tests/test_sample_profile/spynnaker.cfg Enables sample profile report writing for the new test.
spynnaker_integration_tests/test_sample_profile/init.py Marks the directory as a Python package for test discovery/imports.
spynnaker_integration_tests/test_sample_profile_and_power/test_sample_profile_and_energy.py New integration test validating both energy provenance and sample profile report output.
spynnaker_integration_tests/test_sample_profile_and_power/spynnaker.cfg Enables both energy and sample profiling reports for the combined test.
spynnaker_integration_tests/test_sample_profile_and_power/init.py Marks the directory as a Python package for test discovery/imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

synfire_run = SynfireRunner()


class TestSampleProfilingWithEnerfy(BaseTestCase):
@rowleya
rowleya merged commit 5909bc0 into master Jul 29, 2026
18 of 25 checks passed
@rowleya
rowleya deleted the profile_using_energy_report branch July 29, 2026 07:15
@github-project-automation github-project-automation Bot moved this from Todo to Done in EBRAINS 2.0 Project Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants