Skip to content

[aw-failures] [aw] Daily Issues Report Generator fails 100% — Copilot Python sample driver crashes (ModuleNotFoundError: 'copilo [Content truncated due to length] #40380

Description

@github-actions

Switch Daily Issues Report Generator off the Python sample SDK driver — it ModuleNotFoundErrors on copilot and python3 is absent in the agent container, so the workflow fails 100% of runs.

Problem statement

Daily Issues Report Generator fails on every scheduled run. The Copilot harness is configured to launch the Python sample driver .github/drivers/copilot_sdk_driver_sample_python.py, which imports from copilot import CopilotClient, RuntimeConnection. The agent container has neither the copilot Python package nor a python3 binary, so the driver crashes at import on every retry and the agent never runs.

Evidence

  • Latest run §27834964940 (2026-06-19 15:37 UTC, main, schedule), agent-stdio.log:
    • [copilot-harness] pre-flight: command not found: python3 (F_OK check failed — binary does not exist at this path)
    • All 3 attempts (1–3): ModuleNotFoundError: No module named 'copilot'attempt N failed: exitCode=1 failureClass=partial_execution
    • [copilot-harness] done: exitCode=1; agent_output.json = {"items":[]}; TokenUsage=0, Turns=0 (agent never executed).
  • Config: .github/workflows/daily-issues-report.md line 16 → copilot-sdk-driver: .github/drivers/copilot_sdk_driver_sample_python.py.
  • Chronic / deterministic: failed 6/6 of the last scheduled runs — 27834964940, 27771124605, 27701060020, 27630903642, 27559871265, 27502926049. Prior run 27771124605 invokes the identical copilot_harness.cjs python3 .../copilot_sdk_driver_sample_python.py command → same root cause across the series.

Probable root cause

The workflow pins a sample/demo driver intended for environments with the Copilot Python SDK installed. The production agent container ships Node (the default copilot_sdk_driver.cjs works elsewhere in this same window, e.g. SPDD/PR runs) but not python3 nor the copilot Python package, so the Python sample can never start.

Proposed remediation

  1. Remove the copilot-sdk-driver override (use the built-in Node driver), or switch to .github/drivers/copilot_sdk_driver_sample_node.cjs.
  2. If a Python driver is genuinely required, add python3 + the copilot SDK package to the agent container/runtime setup and gate the workflow on a pre-flight import check.
  3. Add a compile-time validation that a referenced copilot-sdk-driver interpreter (python3/node/ruby) is available before the run starts, failing fast with a clear message instead of 3 silent retries.

Success criteria / verification

  • Daily Issues Report Generator completes a scheduled run with Turns>0 and a non-empty agent_output.json.
  • Harness no longer logs command not found: python3 or ModuleNotFoundError: No module named 'copilot'.
  • A driver-availability pre-flight check exists and is covered by a test.

Parent: #39883. Related class (Copilot harness failures): #39946 (distinct — that is unclassified exit-1; this is a classified Python import crash).

References:

Generated by 🔍 [aw] Failure Investigator (6h) · 444.2 AIC · ⌖ 12.3 AIC · ⊞ 4.9K ·

  • expires on Jun 26, 2026, 11:36 AM UTC-08:00

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions