From 25c104e6a7b5ab775417a14a6b63536a79427194 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Sun, 29 Mar 2026 14:04:29 -0600 Subject: [PATCH] Fix python command for Linux Helix work items The Ubuntu 22.04 Helix image was updated and no longer provides a 'python' command (only 'python3'). This broke all Linux Helix work items in public CI with 'python: not found' (exit code 127). - Change the non-Windows work item command from 'python' to 'python3' - Use the existing 'agent_python' variable ('python3' on Linux, 'py -3' on Windows) for the Python env var passed to .proj files, instead of unconditionally using 'python' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/run_performance_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_performance_job.py b/scripts/run_performance_job.py index e46a1149e21..ab6356953db 100644 --- a/scripts/run_performance_job.py +++ b/scripts/run_performance_job.py @@ -595,7 +595,7 @@ def get_work_item_command(os_group: str, target_csproj: str, architecture: str, "--csproj", f"%HELIX_WORKITEM_ROOT%\\performance\\{target_csproj}"] else: work_item_command = [ - "python", + "python3", "$HELIX_WORKITEM_ROOT/performance/scripts/benchmarks_ci.py", "--csproj", f"$HELIX_WORKITEM_ROOT/performance/{target_csproj}"] @@ -1312,7 +1312,7 @@ def get_work_item_command_for_artifact_dir(artifact_dir: str): download_files_from_helix=True, targets_windows=args.os_group == "windows", helix_results_destination_dir=helix_results_destination_dir, - python="python", + python=agent_python, affinity=args.affinity, compare=args.compare, compare_command=compare_command,