Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor: Fix headers in package size report
Browse files Browse the repository at this point in the history
aws-tianquaw committed Apr 5, 2024
1 parent e17e012 commit 03ba52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package_report.py
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ def _generate_python_package_size_report_per_image(
base_version_dir, target_version_dir, image_config, base_version, target_version
):
print("\n# Python Package Size Report " + "(" + image_config["image_type"].upper() + ")\n")
print("\n### Target Version: " + str(target_version) + " | Base Version:" + str(base_version) + "\n")
print("\n### Target Image Version: " + str(target_version) + " | Base Image Version:" + str(base_version) + "\n")
target_pkg_metadata_file = f'{target_version_dir}/{image_config["package_metadata_filename"]}'
base_pkg_metadata_file = f'{base_version_dir}/{image_config["package_metadata_filename"]}'
if not os.path.exists(target_pkg_metadata_file):
@@ -116,7 +116,7 @@ def _generate_python_package_size_report_per_image(
target_total_size = sum(d["size"] for d in target_pkg_metadata.values())
total_size_delta_val = (target_total_size - base_total_size) if base_total_size else None
total_size_delta_rel = (total_size_delta_val / base_total_size) if base_total_size else None
print("\n## Python Packages Total Size Delta\n")
print("\n## Python Packages Total Size Summary\n")
print("Target Version Total Size | Base Version Total Size | Size Change (abs) | Size Change (%)")
print("---|---|---|---")
print(

0 comments on commit 03ba52f

Please sign in to comment.