Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Oct 23, 2022

Whenever upgrade-to-newer-dependencies is set, our CI will attempt to upgrade all dependencies to latest versions released. However so far it was not clear which dependencies were upgraded so if CI failed because of some dependency release, you had to guess and manually check which dependencies got upgraded.

This PR adds a step that will show the diff between the constraints in the target branch (constraints-main or constraints-X-Y in case upgrade-to-newer-dependencies is enabled.


^ 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.

Whenever upgrade-to-newer-dependencies is set, our CI will attempt
to upgrade all dependencies to latest versions released. However so
far it was not clear which dependencies were upgraded so if CI
failed because of some dependency release, you had to guess and
manually check which dependencies got upgraded.

This PR adds a step that will show the diff between the constraints
in the target branch (`constraints-main` or `constraints-X-Y` in
case upgrade-to-newer-dependencies is enabled.
@potiuk potiuk merged commit 8f5ed4b into apache:main Oct 23, 2022
@potiuk potiuk deleted the add-better-diagnostics-on-auto-upgrade branch October 23, 2022 18:09
potiuk added a commit to potiuk/airflow that referenced this pull request Oct 23, 2022
It turnded out that apache#27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.

Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.
@potiuk potiuk mentioned this pull request Oct 23, 2022
potiuk added a commit that referenced this pull request Oct 23, 2022
It turnded out that #27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.

Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.
potiuk added a commit to potiuk/airflow that referenced this pull request Oct 25, 2022
Build images uses different parameter than ci.yml for building
the images (all-python* instead of python*). This is to account
for the fact that we only have one build-image.yml workflow
for all airflow versions (in main) and we need to account for the
fact that different versions of airflow will have support for
different Python versions. This was not happening for a while, but
it will soon start being needed for Python 3.11 that will be
supported in 2.5 but not supported in 3.11.

By mistake apache#27215 added displaying of upgraded dependencies with
wrong parameter name in build-images.yml copied from ci.yml that
caused a problem for PRs that were changing dependencies but did
not trigger full build.
potiuk added a commit that referenced this pull request Oct 25, 2022
Build images uses different parameter than ci.yml for building
the images (all-python* instead of python*). This is to account
for the fact that we only have one build-image.yml workflow
for all airflow versions (in main) and we need to account for the
fact that different versions of airflow will have support for
different Python versions. This was not happening for a while, but
it will soon start being needed for Python 3.11 that will be
supported in 2.5 but not supported in 3.11.

By mistake #27215 added displaying of upgraded dependencies with
wrong parameter name in build-images.yml copied from ci.yml that
caused a problem for PRs that were changing dependencies but did
not trigger full build.
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
Whenever upgrade-to-newer-dependencies is set, our CI will attempt
to upgrade all dependencies to latest versions released. However so
far it was not clear which dependencies were upgraded so if CI
failed because of some dependency release, you had to guess and
manually check which dependencies got upgraded.

This PR adds a step that will show the diff between the constraints
in the target branch (`constraints-main` or `constraints-X-Y` in
case upgrade-to-newer-dependencies is enabled.

(cherry picked from commit 8f5ed4b)
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
It turnded out that #27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.

Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.

(cherry picked from commit e789a2b)
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
Whenever upgrade-to-newer-dependencies is set, our CI will attempt
to upgrade all dependencies to latest versions released. However so
far it was not clear which dependencies were upgraded so if CI
failed because of some dependency release, you had to guess and
manually check which dependencies got upgraded.

This PR adds a step that will show the diff between the constraints
in the target branch (`constraints-main` or `constraints-X-Y` in
case upgrade-to-newer-dependencies is enabled.

(cherry picked from commit 8f5ed4b)
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
It turnded out that #27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.

Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.

(cherry picked from commit e789a2b)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 10, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.3 milestone Nov 10, 2022
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
Whenever upgrade-to-newer-dependencies is set, our CI will attempt
to upgrade all dependencies to latest versions released. However so
far it was not clear which dependencies were upgraded so if CI
failed because of some dependency release, you had to guess and
manually check which dependencies got upgraded.

This PR adds a step that will show the diff between the constraints
in the target branch (`constraints-main` or `constraints-X-Y` in
case upgrade-to-newer-dependencies is enabled.

(cherry picked from commit 8f5ed4b)
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
It turnded out that #27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.

Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.

(cherry picked from commit e789a2b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants