Repository navigation
Python: ci: validate dependency bounds for metadata changes - #7476
Closed
aliouswe (alectimison-maker) wants to merge 5 commits into
Closed
aliouswe (alectimison-maker) wants to merge 5 commits into
aliouswe (alectimison-maker) wants to merge 5 commits into
Conversation
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 2, 2026 06:46 — with
GitHub Actions
Inactive
aliouswe (alectimison-maker)
had a problem deploying
to
github-app-auth
August 2, 2026 06:46 — with
GitHub Actions
Error
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 2, 2026 06:46 — with
GitHub Actions
Inactive
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 2, 2026 06:47 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a lightweight, blocking CI gate to the existing Python Code Quality workflow to enforce Python package dependency-bound validation when package metadata changes, closing the gap between weekly maintenance validation and day-to-day merges.
Changes:
- Adds a new
Dependency Boundsjob to.github/workflows/python-code-quality.yml. - Computes a stable base SHA/ref for PRs and merge groups, detects whether package
pyproject.tomlmetadata changed, and conditionally runsuv run poe validate-python-release.
| id: package-metadata | ||
| shell: bash | ||
| run: | | ||
| if git diff --quiet "${BASE_REF}" HEAD -- 'python/packages/*/pyproject.toml'; then |
There was a problem hiding this comment.
Fixed in 403197b. The metadata detector now checks both python/pyproject.toml and python/packages/*/pyproject.toml, matching _changed_release_project_paths in the release validator. I also updated the branch from current upstream main; the aggregate PR diff remains limited to the code-quality workflow. The resulting workflow parses as YAML and the detector contains both pathspecs.
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 4, 2026 15:07 — with
GitHub Actions
Inactive
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 4, 2026 15:08 — with
GitHub Actions
Inactive
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 4, 2026 15:09 — with
GitHub Actions
Inactive
aliouswe (alectimison-maker)
temporarily deployed
to
github-app-auth
August 4, 2026 15:10 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Python package dependency bounds are validated by weekly maintenance, but a broken floor or ceiling can still merge before that schedule catches it. The repository now has a bounded
validate-python-releasetask that probes only changed package metadata and its affected package closure, but no CI workflow invokes it.This closes the enforcement gap without putting the exhaustive workspace matrix on every Python PR, matching the cost concern discussed in #6582.
Description & Review Guide
Dependency Boundsjob to the existing Python Code Quality workflow. It resolves the immutable PR/merge-group base, detects changes to published packagepyproject.tomlfiles, and conditionally runsvalidate-python-releaseagainst that base.git diff; project setup and validation are skipped.Related Issue
Fixes #6582
Validation
actionlint .github/workflows/python-code-quality.ymlgit diff --checkContribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.