-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Changes release image preparation to use PyPI packages #12990
Changes release image preparation to use PyPI packages #12990
Conversation
I am testing this still, but might be good that you start reviewing it @ashb @kaxil. Once I do and we merge it, we should cherry-pick that one to v2-0-test and we can remove the 'Updates providers versions to 1.0.0 (#12955)' as discussed in https://apache-airflow.slack.com/archives/CCPRP7943/p1607617162178600?thread_ts=1607596760.166600&cid=CCPRP7943 |
a721261
to
465f5a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
465f5a2
to
29b632f
Compare
I tested it all, added a few fixes and it's ready to go. I used it now to rebuild and re-push all the rc prod images and it looks good.
|
29b632f
to
177582c
Compare
And small update for test vs. stable for pre-installed packages. We will have less problems if v2-0-test diverges to0 much for a while from v2-0-stable (hopefully NOT too much). |
4116aab
to
990cc85
Compare
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
990cc85
to
217a86c
Compare
@ashb @kaxil -> I updated this PR a little - i clarified some of the docs/parameters and added some more clarifying comments in the Dockerfile. I also changed the default values in the way than when you just run the This is the final step of making the "Production image" true production-ready and once 2.0 is out, it makes it suitable now to make it into the "Docker official image". Once we release 2.0 I will complete the work on that: |
No time to review before Monday most likely, if someone else can review sooner 👍 |
217a86c
to
f3dff00
Compare
Since we released all teh provider packages to PyPI now in RC version, we can now change the mechanism to prepare the production to use released packages in case of tagged builds. The "branch" production images are still prepared using the CI images and .whl packages built from sources, but the release packages are built from officially released PyPI packages. Also some corrections and updates were made to the release process: * the constraint tags when RC candidate is sent should contain rcn suffix. * there was missing step about pushing the release tag once the release is out * pushing tag to GitHub should be done after the PyPI packages are uploaded, so that automated image building in DockerHub can use those packages. * added a note that in case we will release some provider packages that depend on the just released airflow version they shoudl be released after airflow is in PyPI but before the tag is pushed to GitHub (also to allow the image to be build automatically from the released packages) Fixes: apache#12970
f3dff00
to
faee201
Compare
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
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 master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
* Changes release image preparation to use PyPI packages Since we released all teh provider packages to PyPI now in RC version, we can now change the mechanism to prepare the production to use released packages in case of tagged builds. The "branch" production images are still prepared using the CI images and .whl packages built from sources, but the release packages are built from officially released PyPI packages. Also some corrections and updates were made to the release process: * the constraint tags when RC candidate is sent should contain rcn suffix. * there was missing step about pushing the release tag once the release is out * pushing tag to GitHub should be done after the PyPI packages are uploaded, so that automated image building in DockerHub can use those packages. * added a note that in case we will release some provider packages that depend on the just released airflow version they shoudl be released after airflow is in PyPI but before the tag is pushed to GitHub (also to allow the image to be build automatically from the released packages) Fixes: #12970 * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit db02773)
* Changes release image preparation to use PyPI packages Since we released all teh provider packages to PyPI now in RC version, we can now change the mechanism to prepare the production to use released packages in case of tagged builds. The "branch" production images are still prepared using the CI images and .whl packages built from sources, but the release packages are built from officially released PyPI packages. Also some corrections and updates were made to the release process: * the constraint tags when RC candidate is sent should contain rcn suffix. * there was missing step about pushing the release tag once the release is out * pushing tag to GitHub should be done after the PyPI packages are uploaded, so that automated image building in DockerHub can use those packages. * added a note that in case we will release some provider packages that depend on the just released airflow version they shoudl be released after airflow is in PyPI but before the tag is pushed to GitHub (also to allow the image to be build automatically from the released packages) Fixes: #12970 * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit db02773)
* Changes release image preparation to use PyPI packages Since we released all teh provider packages to PyPI now in RC version, we can now change the mechanism to prepare the production to use released packages in case of tagged builds. The "branch" production images are still prepared using the CI images and .whl packages built from sources, but the release packages are built from officially released PyPI packages. Also some corrections and updates were made to the release process: * the constraint tags when RC candidate is sent should contain rcn suffix. * there was missing step about pushing the release tag once the release is out * pushing tag to GitHub should be done after the PyPI packages are uploaded, so that automated image building in DockerHub can use those packages. * added a note that in case we will release some provider packages that depend on the just released airflow version they shoudl be released after airflow is in PyPI but before the tag is pushed to GitHub (also to allow the image to be build automatically from the released packages) Fixes: #12970 * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit db02773)
* Changes release image preparation to use PyPI packages Since we released all teh provider packages to PyPI now in RC version, we can now change the mechanism to prepare the production to use released packages in case of tagged builds. The "branch" production images are still prepared using the CI images and .whl packages built from sources, but the release packages are built from officially released PyPI packages. Also some corrections and updates were made to the release process: * the constraint tags when RC candidate is sent should contain rcn suffix. * there was missing step about pushing the release tag once the release is out * pushing tag to GitHub should be done after the PyPI packages are uploaded, so that automated image building in DockerHub can use those packages. * added a note that in case we will release some provider packages that depend on the just released airflow version they shoudl be released after airflow is in PyPI but before the tag is pushed to GitHub (also to allow the image to be build automatically from the released packages) Fixes: #12970 * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * Update dev/README_RELEASE_AIRFLOW.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit db02773)
Since we released all teh provider packages to PyPI now in
RC version, we can now change the mechanism to prepare the
production to use released packages in case of tagged builds.
The "branch" production images are still prepared using the
CI images and .whl packages built from sources, but the
release packages are built from officially released PyPI
packages.
Also some corrections and updates were made to the release process:
the constraint tags when RC candidate is sent should contain
rcn suffix.
there was missing step about pushing the release tag once the
release is out
pushing tag to GitHub should be done after the PyPI packages
are uploaded, so that automated image building in DockerHub
can use those packages.
added a note that in case we will release some provider
packages that depend on the just released airflow version
they shoudl be released after airflow is in PyPI but before
the tag is pushed to GitHub (also to allow the image to be
build automatically from the released packages)
Fixes: #12970
^ 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.