Граф коммитов

11094 Коммитов

Автор SHA1 Сообщение Дата
Jarek Potiuk abf2a4264b
Install airflow and providers from dist and verifies them (#13033)
* Install airflow and providers from dist and verifies them

This check is there to prevent problems similar to those reported
in #13027 and fixed in #13031.

Previously we always built airflow from wheels, only providers were
installed from sdist packages and tested. In this version both
airflow and providers are installed using the same package format
(sdist or wheel).

* Update scripts/in_container/entrypoint_ci.sh

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
2020-12-12 19:38:30 +01:00
Jarek Potiuk 825e9cb984
Fix gpg verification command (#13035) 2020-12-12 18:30:09 +00:00
Ash Berlin-Taylor 16d0ae7b7b
Update sqlalchemy_jsonfield to avoid pkgresources use (#13032)
The previous version of sqlalchemy_jsonfield imported pkg_resources
which slowed down a lot of things. They have just released 1.0.0 with
that change.
2020-12-12 13:45:16 +00:00
Jarek Potiuk db027735a7
Changes release image preparation to use PyPI packages (#12990)
* 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>
2020-12-12 12:01:58 +01:00
Kamil Breguła f015296d01
Add more links to navbar for production docs (#12953) 2020-12-12 09:27:01 +00:00
Vikram Koka b6678fa328
Added information about currently supported Python versions (#13029)
Added information to the Upgrading to 2.0 doc and the installation doc
to show the currently supported Python versions.
2020-12-12 09:26:24 +00:00
dependabot[bot] 1a56a58a0b
Bump ini from 1.3.5 to 1.3.8 in /airflow/www (#13030)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 09:22:45 +00:00
Jarek Potiuk baa68ca51f
Adds customized_form_field_behaviours.schema.json to MANIFEST.in (#13031)
The customized_form_field_behaviours.schema.json was present in
setup.cfg but missing in MANIFEST.in. Result of it was that
while it was present in .whl package, it was missing from sdist
package.

Fixes: #13027
2020-12-12 09:21:43 +00:00
Jarek Potiuk 15fd1bc890
Switching to standard --tag-build flag in setuptools in providers (#13021)
Following #13020 provider packages are also switching to
--tag-build flag.
2020-12-12 07:28:51 +01:00
Xiaodong DENG 5057f56d2b
Handle None values properly when CLI output is YAML/JSON format (#13024)
str() should not be applied to None when we 'normalize' the data before we print it,
otherwise it's not given in proper format in YAML/JSON format of the CLI output
2020-12-12 07:26:07 +01:00
Ash Berlin-Taylor ab250ec1ca
Simplify release process for PyPI snapshots (#13020)
Setuptools has a built in mechanism for adding a `suffix` to a version,
so we don't have to edit a file and then remember to delete it!

It's a little bit messy to get the suffix like this -- using sed to
strip out any leading digits or periods, but it's copy-pasteable this
way.
2020-12-11 18:52:58 +01:00
Vikram Koka 0ffd5fa3d8
Added database upgrade information to upgrade doc (#13005)
Added information about db upgrade sample time to the
database upgrade section.
2020-12-11 16:20:35 +00:00
Andreas Franzén 3fbc8e650d
Add asctime to spelling wordlist (#13010) 2020-12-11 13:54:32 +01:00
Andreas Franzén 5495ab0744
Fix broken build of docs/ by removing unused import (#13007) 2020-12-11 09:03:46 +00:00
Kamil Breguła 08faa9d181
Detect invalid package fiiters (#12996) 2020-12-11 00:38:11 +01:00
Kamil Breguła 2efd9ff859
Fix failing master (#13001) 2020-12-10 23:00:36 +00:00
Kamil Breguła 81a1305bb9
Trigger provider-yamls check on docs change (#12998) 2020-12-10 22:45:51 +01:00
Kamil Breguła 1fafc8bc47
Display progress for docs build (#13000) 2020-12-10 22:45:27 +01:00
Kamil Breguła aadecf7168
Less verbose output for docs build (#12994) 2020-12-10 21:55:42 +01:00
Kaxil Naik 969d3ea4f8
Add changes from 1.10.14 (#12993)
This commit adds Changelog, Updating.md and replaces 1.10.13 to 1.10.14
across the codebase
2020-12-10 20:52:29 +00:00
Kamil Breguła 57528210e0
Promote new flags in ./docs/build_docs.py (#12991) 2020-12-10 21:44:49 +01:00
Kamil Breguła aa58ef1501
Download inventories only once (#12989) 2020-12-10 21:43:53 +01:00
jao6693 2ec03cd926
Update Dockerfile (#12987)
Fix permission issue in Azure DevOps when running the script install_mysql.sh, which prevents the build to succeed

/bin/bash: ./scripts/docker/install_mysql.sh: Permission denied
The command '/bin/bash -o pipefail -e -u -x -c ./scripts/docker/install_mysql.sh dev' returned a non-zero code: 126
##[error]The command '/bin/bash -o pipefail -e -u -x -c ./scripts/docker/install_mysql.sh dev' returned a non-zero code: 126
##[error]The process '/usr/bin/docker' failed with exit code 126
2020-12-10 21:01:49 +01:00
jao6693 d84faa36a0
Update Dockerfile.ci (#12988)
Fix permission issue in Azure DevOps when running the script install_mysql.sh, which prevents the build to succeed

/bin/bash: ./scripts/docker/install_mysql.sh: Permission denied
The command '/bin/bash -o pipefail -e -u -x -c ./scripts/docker/install_mysql.sh dev' returned a non-zero code: 126
##[error]The command '/bin/bash -o pipefail -e -u -x -c ./scripts/docker/install_mysql.sh dev' returned a non-zero code: 126
##[error]The process '/usr/bin/docker' failed with exit code 126
2020-12-10 21:00:41 +01:00
Kamil Breguła 0b1bfacf2c
Purge deleted files from S3 bucket (#12947) 2020-12-10 18:39:13 +01:00
Vikram Koka c43f87e4e1
Enhanced doc to cover ignoring rules and adding custom rules (#12974)
Enhanced doc to cover ignoring rules and adding custom rules
Enhanced the upgrade-check documentation to cover how to ignore some of the
pre=defined checks as well as how to add custom checks.
2020-12-10 17:38:41 +00:00
Jarek Potiuk 1a0e0bc793
Array declaration cannot be done inside function for DockerHub (#12967)
For version of bash in DockerHub the arrays should be declared
outside of functions to work.
2020-12-10 17:06:53 +01:00
Kaxil Naik a8ded09038
Remove trailing back-tick from docs (#12986) 2020-12-10 17:02:37 +01:00
Kaxil Naik 056fe81ec2
Fix command to filter package provider when building docs (#12984) 2020-12-10 15:57:21 +00:00
Xiaodong DENG fbd8348d0c
Allow all default roles to view Profile page + allow editing profile/resetting password for DB-ModelView. (#12971)
This is a change discussed long time back in https://github.com/apache/airflow/pull/3889#issuecomment-507635839

Essentially, the 7 permission-resource pairs are added for all users:
- can_this_form_post on UserInfoEditView
- can_this_form_get on UserInfoEditView
- can_userinfo on UserDBModelView
- userinfoedit on UserDBModelView
- can_this_form_post on ResetMyPasswordView
- can_this_form_get on ResetMyPasswordView
- resetmypassword on UserDBModelView

In addition, can_userinfo is added for all possible User ModelViews, so users can also view profile when
the webserver is using different setting-ups.
But they are ONLY allowed to edit profile and reset password when it's UserDBModelView
2020-12-10 16:04:37 +01:00
Vikram Koka e5ce657c5f
Cleaned up formatting for Upgrading doc (#12977)
Cleaned up some of the formatting in the document and also fixed a couple
of spelling errors.
2020-12-10 10:24:07 +00:00
Kaxil Naik 28b7ebc25a
Remove duplicate docs for check-hooks-apply pre-commit (#12973) 2020-12-09 22:31:52 +01:00
Kaxil Naik db166ba75c
Update CI to run tests againt v2-0-test branch (#10891) 2020-12-09 19:35:04 +00:00
Jarek Potiuk 32971a1a2d
Updates providers versions to 1.0.0 (#12955)
Please enter the commit message for your changes. Lines starting
2020-12-09 20:25:41 +01:00
Kaxil Naik 4fe156f98a
Remove unused pre-commit and Fix CI (#12964) 2020-12-09 18:44:10 +00:00
Ash Berlin-Taylor bee2cb5317
Don't reference sphinx airflow theme via `@` URL in requirements. (#12957)
PyPI rejects uploading a dist with an `@` in the requirements.
2020-12-09 16:29:22 +00:00
John Bampton b8844535d7
Minor HTML fixes (#12477)
- indent HTML code
- add DOCTYPE
- add lang="en" to the HTML start tag
2020-12-09 11:20:14 -05:00
Ash Berlin-Taylor f96b3dfbe3
Update version to 2.0.0 (#12954) 2020-12-09 15:37:27 +00:00
John Bampton 5eeb66ce18
Fix case of GitHub (#12950)
Changed `Github` to `GitHub`
2020-12-09 16:36:25 +01:00
Kamil Breguła ec3b159884
Clean up redirects.txt (#12948) 2020-12-09 16:24:10 +01:00
dstandish 62a5b2dfa4
Fix return type in prev-date context variables (#12910) 2020-12-09 15:10:03 +00:00
Ash Berlin-Taylor d2b4dea6b8
Update theme to show hidden ToC in sidebar (#12949)
Closes #12554
2020-12-09 14:55:15 +00:00
Anderson Reyes 1d91ca70f2
Infer multiple outputs from dict annotations in TaskFlow API (#10349) 2020-12-09 14:45:15 +00:00
Ash Berlin-Taylor 0bf386fdf2
Rename airflow.operators.dagrun_operator to airflow.operators.trigger_dagrun (#12933)
Part of AIP-21

Co-authored-by: Kishore Vancheeshwaran <24776049+kishvanchee@users.noreply.github.com>
2020-12-09 14:00:51 +00:00
Vikram Koka 3e402880bf
Upgrading to Airflow 2.0 doc (#12930)
This is based heavily on the UPGRADING_to_2.0.md file. The intent here is
to make user facing and available as part of the Airflow documentation.
This is still a work in progress.

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Daniel Imberman <daniel.imberman@gmail.com>
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
2020-12-09 13:02:00 +00:00
Jarek Potiuk 7bd867d745
Adds documentation about custom providers. (#12921)
Closes: #11429
2020-12-09 11:35:54 +01:00
Ash Berlin-Taylor 55573f684f
Fix typos/spelling in docs (#12942)
When building the docs locally (not docker, cos I'm on linux and a
grouch at times 😁) I appear to be using a different backend to
enchant to check spelling, and it noticed these two issues

- spelling of yandex in extra-packages unrecognized
- a smart quote instead of a backtick breaking a link
2020-12-09 10:06:41 +00:00
Vikram Koka 18a7a35eab
Enhanced TaskFlow API tutorial to use @dag decorator (#12937)
Updated both the tutorial python file in the example_dags directory
and the tutorial documentation
2020-12-09 09:40:45 +00:00
Jarek Potiuk 5c74c3a5c1
Add explanation of the Presto Kerberos + SSL + snowflake problem (#12939) 2020-12-09 09:38:53 +01:00
Kaxil Naik 8d6840b19e
Fix typo in setup.cfg (#12935)
```
airflow.api.connextion.openaip=*.yaml
```
to
```
airflow.api_connexion.openapi=*.yaml
```
2020-12-09 08:53:43 +01:00