Skip to content

Python: during package checks don't always allow continue on failure#4519

Open
moonbox3 wants to merge 3 commits intomicrosoft:mainfrom
moonbox3:fix-ci-cd-pyright
Open

Python: during package checks don't always allow continue on failure#4519
moonbox3 wants to merge 3 commits intomicrosoft:mainfrom
moonbox3:fix-ci-cd-pyright

Conversation

@moonbox3
Copy link
Contributor

@moonbox3 moonbox3 commented Mar 6, 2026

Motivation and Context

Previously not all core packages were included in the pyright check. Additionally, if a failure occurs in CI/CD, we continued on error. We want to make sure we don't mask any errors.

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings March 6, 2026 08:44

[tool.pyright]
extends = "../../pyproject.toml"
include = ["agent_framework", "tests/workflow"]
Copy link
Member

Choose a reason for hiding this comment

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

I already had this in my PR, was that wiped out?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Tightens Python code-quality enforcement by expanding pyright coverage to include core package sources and ensuring CI jobs fail on code-quality errors rather than continuing.

Changes:

  • Expand pyright include paths to cover agent_framework in the core package.
  • Remove continue-on-error: true from Python code quality workflow jobs so failures stop CI.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
python/packages/core/pyproject.toml Expands pyright coverage beyond workflow tests to include core package sources.
.github/workflows/python-code-quality.yml Makes code-quality failures fail the workflow by removing job-level continue-on-error.

You can also share your feedback on Copilot code review. Take the survey.

@markwallace-microsoft
Copy link
Member

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL22676257588% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
4930 20 💤 0 ❌ 0 🔥 1m 23s ⏱️

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.

4 participants