Skip to content

Fix static checks failing on CI upgrade PRs after flit_core bump - #73649

Merged
potiuk merged 1 commit into
apache:mainfrom
Andrushika:fix-upgrade-flit-template
Sep 24, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
Andrushika:fix-upgrade-flit-template

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

breeze ci upgrade runs upgrade_important_versions.py, which bumps the flit_core pin in every provider pyproject.toml. Those files are generated from dev/breeze/src/airflow_breeze/templates/pyproject_TEMPLATE.toml.jinja2, but the script does not update the pin there. So the update-providers-build-files hook regenerates them back to the old pin, and static checks fail on both upgrade PRs.

What

Add the template to FILES_TO_UPDATE, so the same flit_core bump also moves the template pin. Another option is to read the flit version from one place, like the hatchling branch of the template already does with airflow-core/pyproject.toml, but that changes breeze's generation code, so I kept this small to backport to v3-3-test.

related: #73519, #73629


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

The CI upgrade bumps the flit_core pin in every provider
pyproject.toml, but those files are generated from
pyproject_TEMPLATE.toml.jinja2, which still pinned the old version.
The update-providers-build-files hook then regenerated them back to
the old pin, so static checks failed on every upgrade PR that moved
flit_core.
@Andrushika Andrushika changed the title Bump flit_core in the provider pyproject template on CI upgrades Fix static checks failing on CI upgrade PRs after flit_core bump Sep 24, 2026
@Andrushika
Andrushika marked this pull request as ready for review September 24, 2026 08:33
@potiuk
potiuk merged commit 478272a into apache:main Sep 24, 2026
123 of 128 checks passed
@potiuk

potiuk commented Sep 24, 2026

Copy link
Copy Markdown
Member

Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

potiuk pushed a commit that referenced this pull request Sep 24, 2026
…pgrades (#73649) (#73654)

The CI upgrade bumps the flit_core pin in every provider
pyproject.toml, but those files are generated from
pyproject_TEMPLATE.toml.jinja2, which still pinned the old version.
The update-providers-build-files hook then regenerated them back to
the old pin, so static checks failed on every upgrade PR that moved
flit_core.
(cherry picked from commit 478272a)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
potiuk added a commit that referenced this pull request Sep 24, 2026
This upgrade commit was generated before #73649 taught the upgrade
script to update pyproject_TEMPLATE.toml.jinja2, so the template kept
flit_core==4.0.2 while every provider pyproject.toml moved to 4.1.0.
The update-providers-build-files hook then regenerated the providers
back to 4.0.2 and failed static checks.

Generated-by: Claude Opus 5
@Andrushika
Andrushika deleted the fix-upgrade-flit-template branch September 26, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants