Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix Coverage Analysis. #73029

Conversation

gbarkadiusz
Copy link
Collaborator

FIX: The coverage_analysis.py while generating report, duplicates some files and functions of components.
e.g for bluetooth.
image

After the fix.
image

@@ -274,7 +274,8 @@ def generate_json_report(self, coverage):
"Name":i_fun['name']
}
json_file['Uncovered_Functions'].append(json_uncovered_funciton)
json_files.append(json_file)
if not self.is_duplicate(json_file, json_files):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not self.is_duplicate(json_file, json_files):
comp_exists = [x for x in json_files if x['Name'] == json_file['Name']]
if not comp_exists:

scripts/ci/coverage/coverage_analysis.py Outdated Show resolved Hide resolved
@gbarkadiusz gbarkadiusz force-pushed the topic/ci/fix_coverage_analysis branch from de76d2a to 6b9763c Compare May 21, 2024 08:37
@gbarkadiusz
Copy link
Collaborator Author

@arikgreen Please take a look again.

arikgreen
arikgreen previously approved these changes May 21, 2024
The coverage_analysis.py while generating report, duplicates
files and functions of components.

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
@nashif nashif force-pushed the topic/ci/fix_coverage_analysis branch from 5aaeb9c to a60e283 Compare May 28, 2024 17:15
@henrikbrixandersen henrikbrixandersen merged commit 5cfb4bd into zephyrproject-rtos:main May 29, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants