-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
108059: asim: better outputs for data-driven tests r=kvoli a=wenyihu6 **asim: sort before iterating over maps when printing** Previously, the simulator iterates over an unordered map when formatting and printing states, stores, and ranges, resulting in non-deterministic output. This patch addresses the issue by sorting the maps by key before printing and formatting. Release note: none Epic: none --- **asim: better outputs for data-driven tests** Previously, the randomized testing framework's output only indicates whether each iteration passes. This lack of of detail makes checking the randomized framework and debugging challenging. This patch adds more info to the output, including the selected configurations, the initial state of each simulation. Additionally, this patch removes the verbosity flag for printing history plots as it does not seem to have any practical use cases. New verbosity flags for eval are now supported. ``` "eval" [verbose=(<[]("result_only","test_settings","initial_state","config_gen","topology","all")>)] - verbose(default value is OutputResultOnly): used to set flags on what to show in the test output messages. By default, all details are displayed upon assertion failure. - result_only: only shows whether the test passed or failed, along with any failure messages - test_settings: displays settings used for the repeated tests - initial_state: displays the initial state of each test iteration - config_gen: displays the input configurations generated for each test iteration - topology: displays the topology of cluster configurations - all: displays everything above ``` Part Of: #106311 Release Note: none Co-authored-by: wenyihu6 <[email protected]>
- Loading branch information
Showing
16 changed files
with
930 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.