Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Sep 7, 2023

We should only tag :latest image when default image is used because this step always tags apache/airflow:X.Y.Z (defaulti Python) to become the apache/airflow:latest. This step was previously run for all Python versions which could have two effects:

  • if non-default image completed before the default such tagging would fail as the apache/airflow:X.Y.Z was not ready yet to be used as target of apache/airflow:latesti tag

  • if non-default image completed later, it would be no-op because the apache/airflow:latest already pointed to apache/airflow:X.Y.Z


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

We should only tag :latest image when default image is used because
this step always tags `apache/airflow:X.Y.Z` (defaulti Python) to become
the `apache/airflow:latest`. This step was previously run for all Python
versions which could have two effects:

* if non-default image completed before the default such tagging
  would fail as the `apache/airflow:X.Y.Z` was not ready yet to
  be used as target of `apache/airflow:latesti` tag

* if non-default image completed later, it would be no-op because
  the `apache/airflow:latest` already pointed to `apache/airflow:X.Y.Z`
@potiuk potiuk merged commit 51d8b10 into apache:main Sep 7, 2023
@potiuk potiuk deleted the only-tag-latest-default branch September 7, 2023 17:50
@potiuk potiuk added this to the Airflow 2.7.2 milestone Sep 7, 2023
potiuk added a commit that referenced this pull request Sep 7, 2023
We should only tag :latest image when default image is used because
this step always tags `apache/airflow:X.Y.Z` (defaulti Python) to become
the `apache/airflow:latest`. This step was previously run for all Python
versions which could have two effects:

* if non-default image completed before the default such tagging
  would fail as the `apache/airflow:X.Y.Z` was not ready yet to
  be used as target of `apache/airflow:latesti` tag

* if non-default image completed later, it would be no-op because
  the `apache/airflow:latest` already pointed to `apache/airflow:X.Y.Z`

(cherry picked from commit 51d8b10)
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