Skip to content

fix: count only unique test results during simulation flow result count aggregations#126

Open
AlexJones0 wants to merge 1 commit intolowRISC:masterfrom
AlexJones0:sim_flow_result_aggregation
Open

fix: count only unique test results during simulation flow result count aggregations#126
AlexJones0 wants to merge 1 commit intolowRISC:masterfrom
AlexJones0:sim_flow_result_aggregation

Conversation

@AlexJones0
Copy link
Copy Markdown
Contributor

This PR is the seventh of a series of PRs to rewrite DVSim's core scheduling functionality (Scheduler, status display, launchers / runtime backends) to use an async design, with key goals of long term maintainability and extensibility.

This PR contains an independent/unrelated fix for the generated output results that were hindering comparisons with the original DVSim checked into OpenTitan. A single test result can appear in many different testpoints across a stage, and likewise in many different stages across the entire testplan. But, it should really only be counted once per stage and once globally when aggregating - that is, the counts should always reflect the actual number of unique underlying tests run by the scheduler.

Aside: this isn't the most clean addition, as this whole test result computation logic could use some refactoring and cleanup (especially with the legacy Testplan object that it somewhat duplicates), but for now the priority is on fixing this and getting it working.

Fix the aggregation logic for the number of tests passed and in total. A
single test result can appear in many different Testpoints across a
stage, and likewise in many different stages across the entire Testplan.
But it should only be counted once per stage and once globally. That is
to say, that the counts should always reflect the actual number of
underlying unique tests run by the scheduler.

Aside: this isn't the cleanest addition, as this whole test result
computation logic could use some refactoring and cleanup (especially
with the legacy Testplan object that it somewhat duplicates), but for
now the priority is on fixing this and getting it working.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
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.

2 participants