Skip to content

Conversation

@jedcunningham
Copy link
Member

We can't rely on the tag to determine the version. Instead, add a new dags.gitSync.version config.

Related: #56245


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Cursor (Claude Opus 4.5)

We can't rely on the tag to determine the version. Instead, add a new
`dags.gitSync.version` config.
@jedcunningham jedcunningham force-pushed the fixup_gitsync_version_handling branch from 58c7220 to f920d7c Compare January 25, 2026 07:28
@jscheffl
Copy link
Contributor

Why can we not rely on the tag? Which bug was in the previous code? For me it looked "proper".

@Miretpl
Copy link
Contributor

Miretpl commented Jan 25, 2026

There was some reasoning presented in #52388

Add ``dags.gitSync.version`` configuration

The chart now uses ``dags.gitSync.version`` to determine what version of git sync is used. The ``images.gitSync.tag`` value does not influence this.
The default ``dags.gitSync.version`` is ``4.4.2``. If you are using git sync v3, you must set ``dags.gitSync.version: 3.x.x`` explicitly.
Copy link
Contributor

@Miretpl Miretpl Jan 25, 2026

Choose a reason for hiding this comment

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

If someone uses the 3rd version (I doubt that personally, but it is still supported), it will be a breaking change. Do we want to make this in that way (we are removing breaking change behaviour regarding the workers.celery section, so I think we should not introduce a different one in a different place)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point. I agree it'd be very rare, but still breaking. I think celery is a very different situation just because of its popularity.

But, maybe we just revert and let it ride as-is for 1.19 and remove support for 3 in the next release completely, along with all the other cleanup we will be doing. Let me sleep on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then I'd favor the latter that we drop support for v3 at time when (soon) we drop support for Airflow 2 - to get the complexity out which is most probably not needed.

Copy link
Contributor

@Miretpl Miretpl Jan 26, 2026

Choose a reason for hiding this comment

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

Sounds good to me (if revert means reverting the #56245 PR)

@jedcunningham
Copy link
Member Author

Why can we not rely on the tag? Which bug was in the previous code? For me it looked "proper".

Basically we can't assume the tag will be vx.y.z. Folks could mirror and have their own tagging scheme, or folks could build their own gitsync images with a different tag. It's the same fundamental reason we have airflowVersion and don't try to infer the version from the airflow image tag.

@jedcunningham
Copy link
Member Author

Closing in favor of #61098

@jedcunningham jedcunningham deleted the fixup_gitsync_version_handling branch January 26, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants