|
91 | 91 | "pytorch/cppdocs",
|
92 | 92 | "pytorch/pytorch.github.io",
|
93 | 93 | "pytorch/examples",
|
| 94 | + # archived but not marked as such in github repo settings |
| 95 | + "pytorch/serve", |
94 | 96 | # proposed
|
95 | 97 | "pytorch/builder",
|
96 | 98 | "pytorch/xla",
|
|
101 | 103 | # List of runner labels to exclude from "runners not in scale-config" analysis
|
102 | 104 | # These are typically GitHub-hosted runners or other known external runners
|
103 | 105 | GITHUB_RUNNER_LABELS = [
|
104 |
| - "linux.24_04.4x", |
105 |
| - "linux.24_04.16x", |
106 | 106 | "ubuntu-latest",
|
107 | 107 | "ubuntu-22.04",
|
108 | 108 | "ubuntu-24.04",
|
109 | 109 | "ubuntu-20.04",
|
110 | 110 | "ubuntu-18.04",
|
111 | 111 | "windows-latest",
|
112 | 112 | "windows-2022",
|
113 |
| - "windows-11-arm64", |
114 | 113 | "macos-latest",
|
115 | 114 | "macos-14",
|
| 115 | + "macos-14-xlarge", |
116 | 116 | "macos-13",
|
117 | 117 | "macos-12",
|
118 |
| - "macos-14-xlarge", |
| 118 | + # Offered at Meta enterprise level |
| 119 | + "8-core-ubuntu", |
| 120 | + "4-core-ubuntu", |
| 121 | + "windows-8-core", |
| 122 | + "4-core-ubuntu-gpu-t4", |
| 123 | + "4-core-windows-gpu-t4", |
| 124 | + "32-core-ubuntu", |
| 125 | + "16-core-ubuntu", |
| 126 | + "2-core-ubuntu-arm", |
| 127 | + "4-core-ubuntu-arm", |
| 128 | + "8-core-ubuntu-22.04", |
| 129 | + "4-core-ubuntu-24.04", |
| 130 | + # needs special access |
| 131 | + "linux.24_04.4x", |
| 132 | + "linux.24_04.16x", |
| 133 | + "windows-11-arm64", |
119 | 134 | # Add more runner labels to exclude here as needed
|
120 | 135 | ]
|
121 | 136 |
|
122 | 137 | USELESS_RUNNER_LABELS = [
|
123 |
| - "self-hosted", # really, a useless label we want to ignoreß |
| 138 | + "self-hosted", # really, a useless label we want to ignore |
| 139 | + "linux.g5.4xlarge.nvidia.cpu", # a nonexistent label used by a repo |
124 | 140 | ]
|
125 | 141 |
|
126 | 142 | HEADERS = {
|
@@ -681,6 +697,20 @@ def main():
|
681 | 697 | if repos_by_github_runner:
|
682 | 698 | output_data["repos_by_github_runner"] = dict(repos_by_github_runner)
|
683 | 699 |
|
| 700 | + # --- SORT OUTPUT ALPHABETICALLY FOR CONSISTENCY (except top-level keys) --- |
| 701 | + def deep_sort(obj, sort_keys=True): |
| 702 | + if isinstance(obj, dict): |
| 703 | + keys = sorted(obj) if sort_keys else obj.keys() |
| 704 | + return {k: deep_sort(obj[k]) for k in keys} |
| 705 | + elif isinstance(obj, list): |
| 706 | + # If list of dicts with 'repo' key, sort by 'repo', else sort normally |
| 707 | + if obj and isinstance(obj[0], dict) and 'repo' in obj[0]: |
| 708 | + return sorted([deep_sort(x) for x in obj], key=lambda x: x['repo']) |
| 709 | + return sorted(deep_sort(x) for x in obj) |
| 710 | + else: |
| 711 | + return obj |
| 712 | + |
| 713 | + output_data = deep_sort(output_data, sort_keys=False) |
684 | 714 | save_to_yaml(output_data)
|
685 | 715 |
|
686 | 716 | # Show final cache stats
|
|
0 commit comments