Introducing Scenario Simulator Failure Analysis #3898
ahmeddesokyebrahim
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Scenario simulator is a scenario testing framework for Autoware that enables Autoware developers to write scenarios at once and run them in various kinds of simulator.
Scenario simulator test can be used to make sure Autoware is functioning properly in specific scenarios.
Autoware evaluator utilizes scenario simulator to test Autoware using set of defined scenarios, on weekly cadence.
Challenge
When it comes to a scenario that was passing then it fails between two weeks runs, investigation should take place to know which commit introduced this failure to start fixing it. This investigation takes lots of time and effort.
Proposed Solution
I am excited to share with you scenario simulator failure evaluation tool.
The tool aims to help Autoware developers find the commit(s) that made a specific scenario fail within a specific time period.
Briefly ...
.repos
file which can be the one associated in Autoware Evaluator with a failing scenarioscenario_file_path
which is the path of the failing scenariodate_to_start_searching
which is the date you would like to tool to start evaluation process bydate_to_stop_searching
which can be the date you know this specific scenario was passing in Autoware Evaluator.-.repos
file for you with all commits that made this scenario fail so that you can start debugging from this point and a visualization for the executed evaluation process to make it easier for the user to narrow down the debugging process.How to use
Expected Output
When a failing scenario becomes passing in one iteration, the tool organizes the output for the user in the following files
$scenario_name$_failed_commits.repos
This is the .repos file that includes the commit ids that you use to start debugging autoware for that failing scenario. That means it includes the commit just before the successful trial.
last_changed_repo.txt
This file includes the repo and commit id that are lately changed for the successful trial. That means, this is the commit that the tool just checked out, then the scenario passed.
README.md
This is the mermaid visualization file that you can use to visualize the output of the evaluation process.
Visualization
The visualization provided by scenario simulator failure evaluation tool is a simple representation of the different Autoware repositories and commits, indicating at the time of the scenario became successful which commit was checked out in different repositories, the commit that lastly checked-out that made the scenario successful, and the commit after it that is highly suspected to be the commit causing this failure.
How the tool works ?
How to make a quick test ?
In this section, you can find some tips about how to make a quick test with the needed files.
Call for Testers
We would like to invite everyone to participate in testing this tool and let us know about any issues, comments, thoughts, improvements about the tool.
Beta Was this translation helpful? Give feedback.
All reactions