Enhance telemetry data duration calculation and improve HTML report #177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request improves the robustness and accuracy of telemetry data reporting and HTML report rendering in the Ansible roles. The main changes ensure that time calculations are correctly handled as integer epoch values and that report naming is more resilient to missing variables.
Telemetry and Reporting Improvements:
Updated the calculation of
DurationSecondsinpost-telemetry-data.ymlto explicitly convert start and end times to integer epoch seconds before subtraction, ensuring accurate duration reporting even when input formats vary.Enhanced the logic for setting
test_group_nameinrender-html-report.ymlto handle cases wheretest_group_name,target_os_family, oransible_os_familymight be undefined, defaulting to sensible fallback values and ensuring the name is always constructed in uppercase as appropriate.