From ed98267f8ebc006fb90ec8ebd1a5cbd09df6fcaf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Jun 2026 21:25:12 +0000 Subject: [PATCH 1/2] Initial plan From 5d116a037c05b887fc9b7a34a389d4437f74ec2c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Jun 2026 21:43:28 +0000 Subject: [PATCH 2/2] fix: use python3 -m pip install for Copilot SDK Python driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Daily Issues Report Generator was failing 100% of runs with `ModuleNotFoundError: No module named 'copilot'`. The generated lock.yml ran `pip install github-copilot-sdk==1.0.2` but bare `pip` may resolve to a different Python environment than the `python3` that runs the driver inside the AWF chroot. Switching to `python3 -m pip install` ensures the SDK is installed into the exact site-packages that `python3` uses. - pkg/workflow/copilot_engine_installation.go: pip → python3 -m pip - pkg/workflow/copilot_engine_test.go: update 4 test assertions - Recompile all 251 workflows (daily-issues-report.lock.yml updated) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/daily-issues-report.lock.yml | 2 +- pkg/workflow/copilot_engine_installation.go | 2 +- pkg/workflow/copilot_engine_test.go | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/daily-issues-report.lock.yml b/.github/workflows/daily-issues-report.lock.yml index cd3f7d0d010..4f33abee6ff 100644 --- a/.github/workflows/daily-issues-report.lock.yml +++ b/.github/workflows/daily-issues-report.lock.yml @@ -765,7 +765,7 @@ jobs: - name: Install AWF binary run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.10 - name: Install GitHub Copilot SDK (Python) - run: cd "${GITHUB_WORKSPACE}" && pip install --disable-pip-version-check github-copilot-sdk==1.0.2 + run: cd "${GITHUB_WORKSPACE}" && python3 -m pip install --disable-pip-version-check github-copilot-sdk==1.0.2 - name: Parse integrity filter lists id: parse-guard-vars env: diff --git a/pkg/workflow/copilot_engine_installation.go b/pkg/workflow/copilot_engine_installation.go index dbd8796b749..269ab066fec 100644 --- a/pkg/workflow/copilot_engine_installation.go +++ b/pkg/workflow/copilot_engine_installation.go @@ -174,7 +174,7 @@ func getCopilotSDKInstallSpec(command string) copilotSDKInstallSpec { switch runtimeID { case "python": spec.stepName = "Install GitHub Copilot SDK (Python)" - spec.command = workspaceCommandPrefix + "pip install --disable-pip-version-check github-copilot-sdk==" + version + spec.command = workspaceCommandPrefix + "python3 -m pip install --disable-pip-version-check github-copilot-sdk==" + version case "typescript": spec.stepName = "Install GitHub Copilot SDK (TypeScript)" spec.command = workspaceCommandPrefix + "npm install --ignore-scripts --no-save @github/copilot-sdk@" + version + " ts-node typescript" diff --git a/pkg/workflow/copilot_engine_test.go b/pkg/workflow/copilot_engine_test.go index 46064e4fbed..4b430ba3921 100644 --- a/pkg/workflow/copilot_engine_test.go +++ b/pkg/workflow/copilot_engine_test.go @@ -2129,7 +2129,7 @@ func TestCopilotEngineInstallationWithCommandAndCopilotSDK(t *testing.T) { name: "python command uses pip sdk install", command: "python3 main.py", expectedName: "name: Install GitHub Copilot SDK (Python)", - expectedRun: "pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), + expectedRun: "python3 -m pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), expectedSteps: 1, }, { @@ -2178,14 +2178,14 @@ func TestCopilotEngineInstallationWithCommandAndCopilotSDK(t *testing.T) { name: "env wrapper command is detected", command: "env FOO=bar python script.py", expectedName: "name: Install GitHub Copilot SDK (Python)", - expectedRun: "pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), + expectedRun: "python3 -m pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), expectedSteps: 1, }, { name: "custom command with firewall keeps awf and sdk installs", command: "python script.py", expectedName: "name: Install GitHub Copilot SDK (Python)", - expectedRun: "pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), + expectedRun: "python3 -m pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), withFirewall: true, expectedSteps: 2, }, @@ -2249,7 +2249,7 @@ func TestCopilotEngineInstallationWithCopilotSDKDriver(t *testing.T) { name: "python driver uses pip sdk install", driver: "my_driver.py", expectedName: "name: Install GitHub Copilot SDK (Python)", - expectedRun: "pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), + expectedRun: "python3 -m pip install --disable-pip-version-check github-copilot-sdk==" + string(constants.DefaultCopilotSDKVersion), }, { name: "typescript driver installs ts-node toolchain and sdk",