Skip to content

Regenerate API datamodels after the CI environment lock upgrade - #71718

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:regen-datamodels-on-lock-upgrade
Aug 19, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:regen-datamodels-on-lock-upgrade

Conversation

@potiuk

@potiuk potiuk commented Aug 17, 2026

Copy link
Copy Markdown
Member

uv lock --upgrade in breeze ci upgrade can move
datamodel-code-generator, whose version is stamped into the header of every
file it generates. The two codegen hooks are gated on the execution and core
API sources, which an upgrade run never touches, so they stay dormant while
the automation commits — and the next CI run, which invokes them with
--all-files, regenerates the headers and fails the static checks job on the
upgrade PR itself.

That is what happened on #71590 (0.71.0 → 0.72.4): Static checks was the only
failing job in the run, and the whole diff was three # version: comments.
Regenerating them is tied to the lock step here so the upgrade PR comes out
self-consistent.

No unit test: the step list lives inside the ci upgrade click command and its
sibling entries have no coverage either, so this is a declarative addition to
untested orchestration. The verification is the next scheduled upgrade run
producing a green PR.

related: #71590


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

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

`uv lock --upgrade` can move datamodel-code-generator, whose version is
stamped into the header of every file it generates. The two codegen hooks
are gated on the execution and core API sources, which an upgrade run never
touches, so they stay dormant while the automation commits -- and the next
CI run, which invokes them with --all-files, regenerates the headers and
fails the static checks job on the upgrade PR itself.

Tying the regeneration to the lock step keeps the upgrade PR self-consistent.
@potiuk
potiuk force-pushed the regen-datamodels-on-lock-upgrade branch from e8ce56b to 4cde6e7 Compare August 19, 2026 09:48
@potiuk
potiuk merged commit acfda3f into apache:main Aug 19, 2026
301 of 302 checks passed
@potiuk
potiuk deleted the regen-datamodels-on-lock-upgrade branch August 19, 2026 12:09
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

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 Commit Link

You can attempt to backport this manually by running:

cherry_picker acfda3f v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

potiuk added a commit that referenced this pull request Aug 19, 2026
…pgrade (#71718) (#71838)

`uv lock --upgrade` can move datamodel-code-generator, whose version is
stamped into the header of every file it generates. The two codegen hooks
are gated on the execution and core API sources, which an upgrade run never
touches, so they stay dormant while the automation commits -- and the next
CI run, which invokes them with --all-files, regenerates the headers and
fails the static checks job on the upgrade PR itself.

Tying the regeneration to the lock step keeps the upgrade PR self-consistent.
(cherry picked from commit acfda3f)
vatsrahul1001 pushed a commit that referenced this pull request Sep 7, 2026
…pgrade (#71718) (#71838)

`uv lock --upgrade` can move datamodel-code-generator, whose version is
stamped into the header of every file it generates. The two codegen hooks
are gated on the execution and core API sources, which an upgrade run never
touches, so they stay dormant while the automation commits -- and the next
CI run, which invokes them with --all-files, regenerates the headers and
fails the static checks job on the upgrade PR itself.

Tying the regeneration to the lock step keeps the upgrade PR self-consistent.
(cherry picked from commit acfda3f)
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.

3 participants