Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install providers from sources in prod image only on main #17458

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Aug 6, 2021

When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.

Depends on #17486


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@potiuk
Copy link
Member Author

potiuk commented Aug 6, 2021

Random failure only

@potiuk
Copy link
Member Author

potiuk commented Aug 6, 2021

I'd love to get that it before I start holidays, to test the v2-1-test branch with 'released' providers . Need that one in main though :(

@potiuk potiuk force-pushed the install-providers-from-sources-prod-only-on-main branch from 6a9c5ca to d6a7d2c Compare August 7, 2021 12:04
@potiuk potiuk closed this Aug 7, 2021
@potiuk potiuk reopened this Aug 7, 2021
@potiuk potiuk force-pushed the install-providers-from-sources-prod-only-on-main branch from d6a7d2c to 973e67e Compare August 7, 2021 15:01
@potiuk potiuk requested a review from mik-laj August 7, 2021 15:22
@potiuk potiuk force-pushed the install-providers-from-sources-prod-only-on-main branch from 973e67e to 2476b0d Compare August 7, 2021 16:40
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Aug 7, 2021
@github-actions
Copy link

github-actions bot commented Aug 7, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk potiuk force-pushed the install-providers-from-sources-prod-only-on-main branch from 2476b0d to 317213b Compare August 7, 2021 17:42
We have a global limit (60 seconds) for individual test execution,
however 'test_airflow_context' of the Python Virtualenv test might take longer in
case they are run in parallel - because they are using dill serialization
including a lot of serializable data from the context of the task.

We give the test 120 seconds to complete now.
When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.
@potiuk potiuk force-pushed the install-providers-from-sources-prod-only-on-main branch from 317213b to a2cbed0 Compare August 7, 2021 18:14
@potiuk potiuk merged commit 5790f72 into apache:main Aug 7, 2021
@potiuk potiuk deleted the install-providers-from-sources-prod-only-on-main branch August 7, 2021 20:47
potiuk added a commit that referenced this pull request Aug 7, 2021
When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.

(cherry picked from commit 5790f72)
jhtimmins pushed a commit that referenced this pull request Aug 11, 2021
When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.

(cherry picked from commit 5790f72)
kaxil pushed a commit that referenced this pull request Aug 17, 2021
When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.

(cherry picked from commit 5790f72)
jhtimmins pushed a commit that referenced this pull request Aug 17, 2021
When we build production image during test in main, we install
providers from current sources, to make sure that all the tests
including Helm Chart/Kubernetes tests are using latest sources for
providers.

However, when we build the prod image during v* branches, we
want to build the production image using latest released providers
instead, because this will be the way it will be built shortly when
we release it. We do not run providers test not helm chart tests in
this branch so it is more important to build the image in the way it
will be built for releases - we run verification then and install
dependencies in the very same way it will be done during release.

(cherry picked from commit 5790f72)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants