|
9 | 9 | from pathlib import Path |
10 | 10 | from typing import IO, Any, override |
11 | 11 |
|
12 | | -from .utils import System, warn |
| 12 | +from .utils import System |
13 | 13 |
|
14 | 14 |
|
15 | 15 | def pr_url(pr: int) -> str: |
@@ -175,32 +175,17 @@ def get_github_action_eval_result( |
175 | 175 | workflow_run["artifacts_url"], |
176 | 176 | )["artifacts"] |
177 | 177 |
|
178 | | - found_comparison = False |
179 | 178 | for artifact in artifacts: |
180 | 179 | if artifact["name"] != "comparison": |
181 | 180 | continue |
182 | | - found_comparison = True |
183 | 181 | changed_paths: Any = self.get_json_from_artifact( |
184 | 182 | workflow_id=artifact["id"], |
185 | 183 | json_filename="changed-paths.json", |
186 | 184 | ) |
187 | 185 | if changed_paths is None: |
188 | | - warn( |
189 | | - f"Found comparison artifact, but no changed-paths.json in workflow {workflow_run['html_url']}" |
190 | | - ) |
191 | 186 | continue |
192 | 187 | if (path := changed_paths.get("rebuildsByPlatform")) is not None: |
193 | 188 | assert isinstance(path, dict) |
194 | 189 | return path |
195 | 190 |
|
196 | | - if not found_comparison: |
197 | | - if workflow_run["status"] == "queued": |
198 | | - warn( |
199 | | - f"Found eval workflow run, but evaluation is still work in progress: {workflow_run['html_url']}" |
200 | | - ) |
201 | | - else: |
202 | | - warn( |
203 | | - f"Found eval workflow run, but no comparison artifact in {workflow_run['html_url']}." |
204 | | - ) |
205 | | - |
206 | 191 | return None |
0 commit comments