|
1 | | -# Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 1 | +## Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
2 | 2 | # |
3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"). You |
4 | 4 | # may not use this file except in compliance with the License. A copy of |
|
14 | 14 |
|
15 | 15 | import logging |
16 | 16 | from pathlib import Path |
17 | | -from pprint import pformat |
18 | 17 |
|
19 | 18 | import sorter as sorter_module |
20 | 19 | from constants import ( |
@@ -302,26 +301,14 @@ def generate_support_policy(dry_run: bool = False) -> str: |
302 | 301 | bucket = version_entries.setdefault(img.version, []) |
303 | 302 | if not any(existing._repository == img._repository for existing in bucket): |
304 | 303 | bucket.append(img) |
305 | | - LOGGER.debug( |
306 | | - f"[{framework_group}] Step 1 - versions:\n" |
307 | | - f"{pformat({v: [i._repository for i in imgs] for v, imgs in version_entries.items()})}" |
308 | | - ) |
309 | 304 |
|
310 | 305 | # Step 2: Consolidate across repos (framework → sub-group → per-repo fallback) |
311 | 306 | entries: list[tuple[ImageConfig, dict[str, str]]] = [] |
312 | 307 | for full_ver, repo_imgs in version_entries.items(): |
313 | 308 | entries.extend(_consolidate_framework_version(framework_group, full_ver, repo_imgs)) |
314 | | - LOGGER.debug( |
315 | | - f"[{framework_group}] Step 2 - entries:\n" |
316 | | - f"{pformat([overrides for _, overrides in entries])}" |
317 | | - ) |
318 | 309 |
|
319 | 310 | # Step 3: Collapse patch versions into major.minor where possible |
320 | 311 | entries = _collapse_minor_versions(entries) |
321 | | - LOGGER.debug( |
322 | | - f"[{framework_group}] Step 3 - collapsed:\n" |
323 | | - f"{pformat([(img._repository, overrides) for img, overrides in entries])}" |
324 | | - ) |
325 | 312 |
|
326 | 313 | # Merge legacy entries for this framework |
327 | 314 | for legacy_img in legacy_data.get(framework_group, []): |
|
0 commit comments