Skip to content

Fix auto-triage dependency install on Python 3.11#431

Merged
sellakumaran merged 1 commit into
microsoft:mainfrom
beyondszine:fix/autotriage-python311-deps
May 29, 2026
Merged

Fix auto-triage dependency install on Python 3.11#431
sellakumaran merged 1 commit into
microsoft:mainfrom
beyondszine:fix/autotriage-python311-deps

Conversation

@beyondszine

Copy link
Copy Markdown
Contributor

Pin azure-functions to the latest 1.x release because azure-functions 2.1.0 requires Python 3.13+, while the auto-triage workflow runs on Python 3.11.

Summary

Fixes the Auto-Triage Issues workflow dependency install failure by pinning azure-functions to a Python 3.11-compatible release.

Why

The failing workflow run stopped in the Install dependencies step before triage logic executed:

Workflow: https://github.com/microsoft/Agent365-devTools/actions/runs/26569467763/workflow
Job: https://github.com/microsoft/Agent365-devTools/actions/runs/26569467763/job/78272607391

The workflow uses Python 3.11 and then installs autoTriage/requirements.txt:

- name: Set up Python
  uses: actions/setup-python@v5
  with:
    python-version: '3.11'

- name: Install dependencies
  run: |
    cd autoTriage
    pip install -r requirements.txt

azure-functions==2.1.0 declares Requires-Python: >=3.13, so it cannot be installed by the workflow's Python 3.11 environment.

Fix

Changed:

-azure-functions==2.1.0
+azure-functions==1.24.0

azure-functions==1.24.0 declares Requires-Python: >=3.7, which is compatible with Python 3.11.

Verification

Reproduced the workflow's dependency install path in a Python 3.11 environment.

Old pin fails:

Using Python 3.11.14 environment
x No solution found when resolving dependencies:
  Because the current Python version (3.11.14) does not satisfy Python>=3.13
  and azure-functions==2.1.0 depends on Python>=3.13,
  azure-functions==2.1.0 cannot be used.

Fixed pin installs successfully:

Using Python 3.11.14 environment
Resolved 56 packages in 2.27s

azure-functions    1.24.0
fastapi            0.136.1
openai             2.38.0
pygithub           2.9.1
pytest             9.0.3
requests           2.34.2

Checked 56 packages
All installed packages are compatible

Pin azure-functions to the latest 1.x release because azure-functions 2.1.0 requires Python 3.13+, while the auto-triage workflow runs on Python 3.11.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 28, 2026 11:21
@beyondszine beyondszine requested review from a team as code owners May 28, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Downgrades the azure-functions package version in the autoTriage requirements file.

Changes:

  • Changes azure-functions from 2.1.0 to 1.24.0.

@sellakumaran sellakumaran enabled auto-merge (squash) May 29, 2026 21:45
@sellakumaran sellakumaran merged commit 2b9dac5 into microsoft:main May 29, 2026
5 checks passed
@beyondszine beyondszine deleted the fix/autotriage-python311-deps branch May 31, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants