Skip to content

Commit 5e4a32f

Browse files
JennyPngCopilot
andcommitted
Fix task name in get_build_info to match 'Run Pylint Next'
The weekly analysis pipeline (python-analyze-weekly.yml) uses 'Run Pylint Next' as the task displayName, not 'Run Tests'. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a52c3ff commit 5e4a32f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

eng/tools/azure-sdk-tools/gh_tools/update_issue.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
def get_build_info(service_directory: str, package_name: str) -> str:
1919
"""Get the pylint build info from the CI build logs.
20-
21-
Parses the Azure DevOps build timeline to find the "Run Tests" task,
22-
then extracts next-pylint output for the given package from the
23-
dispatch_checks.py log format.
2420
"""
2521
build_id = os.getenv("BUILD_BUILDID")
2622
timeline_link = f"https://dev.azure.com/azure-sdk/internal/_apis/build/builds/{build_id}/timeline?api-version=6.0"
@@ -33,7 +29,7 @@ def get_build_info(service_directory: str, package_name: str) -> str:
3329
response_json = json.loads(response.text)
3430

3531
for task in response_json["records"]:
36-
if "Run Tests" in task.get("name", ""):
32+
if "Run Pylint Next" in task.get("name", ""):
3733
log_link = task["log"]["url"] + "?api-version=6.0"
3834
log_output = requests.get(log_link, headers=AUTH_HEADERS)
3935
build_output = log_output.content.decode("utf-8")

0 commit comments

Comments
 (0)