You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prioritizing a job would be a great metric to know which issues are the ones that are causing the most stress on the buildfarm. This metric is calculated based on a job priority and the flaky ratio of the test in the affected jobs.
Currently, there are two ways of calculating an issue priority:
Suppose every job has the same priority, then the priority of an issue is the sum of the flaky ratio of the test in the affected jobs.
Suppose every job has a different priority (defined in Buildfarm Issue Triage), then the priority of an issue is the sum of the flaky ratio of the test in the affected jobs multiplied by the priority of the job. If the issue is consistent, the priority multiplier increases by 50% (to give more importance to consistent issues).
1. Get information from the issue saved in the database
First we need to get the test regressions and jobs affected by the issue:
Using buildfarm tools:
$ ./sql_run.sh get_known_issues_job_link.sql "https://github.com/ros2/rclcpp/issues/2613"# This is a new script that will be added to the buildfarm tools
error_name|package_name|job_name|github_issue|status
projectroot.test.rclcpp.test_service_introspection|projectroot|Ici__nightly-connext_ubuntu_jammy_amd64|https://github.com/ros2/rclcpp/issues/2613|OPEN
projectroot.test.rclcpp.test_service_introspection|projectroot|Jci__nightly-connext_ubuntu_noble_amd64|https://github.com/ros2/rclcpp/issues/2613|OPEN
projectroot.test.rclcpp.test_service_introspection|projectroot|Rci__nightly-connext_ubuntu_noble_amd64|https://github.com/ros2/rclcpp/issues/2613|OPEN
We can see there is only a single test regression in the report and it is affecting three jobs.
2. Get the flaky ratio of the test in the affected jobs
Description
Prioritizing a job would be a great metric to know which issues are the ones that are causing the most stress on the buildfarm. This metric is calculated based on a job priority and the flaky ratio of the test in the affected jobs.
This metric is calculated based on the reports from: Buildfarm Issue Triage
Explanation
Currently, there are two ways of calculating an issue priority:
Examples
Example: TestServiceIntrospection in Rolling, Jazzy and Iron connext
1. Get information from the issue saved in the database
First we need to get the test regressions and jobs affected by the issue:
Using buildfarm tools:
We can see there is only a single test regression in the report and it is affecting three jobs.
2. Get the flaky ratio of the test in the affected jobs
For each job we will calculate the flaky ratio:
3. Get the priority of the jobs
Now we can calculate the priority of this issue using both methods:
The text was updated successfully, but these errors were encountered: