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

11438 Коммитов

Автор SHA1 Сообщение Дата
Kamil Breguła 102b86e546 Add system tests for CloudKMSHook (#13122)
(cherry picked from commit 23f27c1b1c)
2021-01-21 17:50:12 +00:00
Manuel B 2d945f2b0a Fix Google BigQueryHook method get_schema() (#13136)
Co-authored-by: Manuel Bordes <manuel.bordes@gamesys.co.uk>
(cherry picked from commit cddbf81b12)
2021-01-21 17:49:48 +00:00
John Bampton ca20ba079b Fix spelling (#13130)
(cherry picked from commit 8529cb1c7d)
2021-01-21 17:45:49 +00:00
Kaxil Naik 4e37b78691 Remove Kaxil's old record in INTHEWILD.md (#13123)
I don't work at Data Reply anymore

(cherry picked from commit 8d5b4349f5)
2021-01-21 17:45:45 +00:00
Jarek Potiuk 811d54a139 Cleans all DBs on ./breeze stop (#13119)
When ./breeze stop is run, we run docker-compose down under the
hood - by default with --volumes flag which also removes the
volumes. But the volumes were only defined when you
selected the database.

We want to clean up all the volumes on breeze stop
in order to avoid surprizes when you switch the DB and find
the DB is there.

Otherwise when you switch databases while they are running
stop will delete volumes for only the most recently used
database.

The fix makes sure that all the db
volumes are defined always so they are always all deleted on stop

(cherry picked from commit a983273413)
2021-01-21 17:45:41 +00:00
Kaxil Naik 087c2fdaf9 Add guidelines for promoting Committers to PMC (#13090)
This is based on the discussion on the mailing list and proposal from various PMC Members

(cherry picked from commit f5dbc3bdda)
2021-01-21 17:45:36 +00:00
Jarek Potiuk 883473bbaa For v2 target branches python 2.7 and 3.5 images are skipped (#13118)
Previously we skipped building 2.7 and 3.5 for master branch but
now we have also v2-0-test, so it is better to skip the
versions when branch is != v1-10-test (this is the only
DEFAULT_BRANCH - even in v1-10-stable builds v1-10-test is used
as DEFAULT_BRANCH is v1-10-test.

(cherry picked from commit 0f01faa486)
2021-01-21 17:45:28 +00:00
Xiaodong DENG b780f879b5 Avoid confusion in doc for CeleryKubernetesExecutor (#13116)
Make the doc around CeleryKubernetesExecutor clearer.

(cherry picked from commit 2491a9360c)
2021-01-21 17:44:58 +00:00
Felix Uellendall 659f8ef6ff Add Trade Republic to list of Airflow users (#13111)
I changed the company. I am now working for Trade Republic.

(cherry picked from commit 84b4e6e80b)
2021-01-21 17:44:21 +00:00
Marty Jackson 02aa5c5d4d Add The Dyrt to INTHEWILD.md (#13098)
* Add The Dyrt to INTHEWILD.md

(cherry picked from commit 741292ef66)
2021-01-21 17:44:17 +00:00
Kamil Breguła 1086e29a0d Update docs link in REST API spec (#13107)
(cherry picked from commit eaff29d344)
2021-01-21 17:43:55 +00:00
Joshua Carp 009070c2b1 Annotate DagRun methods with return types (#11486)
(cherry picked from commit ccaca0af39)
2021-01-21 17:43:48 +00:00
Jarek Potiuk c8e814d519 Skip identity pre-commit in ci and always display it first (#13106)
(cherry picked from commit 7ce2bd4e74)
2021-01-21 17:41:46 +00:00
Jarek Potiuk d69b07478d Rebase message before pulling now stands-out - it is yellow (#13104)
(cherry picked from commit 5b413a36ed)
2021-01-21 17:41:34 +00:00
Kamil Breguła a2b832fa48 Fix Data Catalog operators (#13096)
(cherry picked from commit bcf77586ef)
2021-01-21 17:39:42 +00:00
Ash Berlin-Taylor 9e22e28c3f Move tests for airflow.utils.dates out of tests/core/ (#13088)
These three functions were in test_core, but the separate test_dates
file is better suited.

In addition I have removed the use of `assert_array_almost_equal` from
numpy as pytest provides it's own version

(cherry picked from commit 95d9088ab1)
2021-01-21 17:38:54 +00:00
Ruben Laguna 1ae7ad18e0 Add identity pre-commit hook (#13089)
(cherry picked from commit 99c2e03da9)
2021-01-21 17:38:18 +00:00
Sam Wheating 8741d62111 Add schema validation for config.yml (#13025)
* Adding schema validation for config.yml

* Update airflow/config_templates/config.yml.schema.json

Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com>

Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com>
(cherry picked from commit 1dc36d8704)
2021-01-21 17:37:58 +00:00
Kamil Breguła c7036976fe Add link to PyPI Repository to provider docs (#13064)
(cherry picked from commit f6448b4e48)
2021-01-21 17:36:57 +00:00
Kaxil Naik 1a40e386fb Fix Code Coverage (#13092)
Based on the suggesstions here:

- https://community.codecov.io/t/reports-are-not-displayed-there-was-an-error-processing-coverage-reports/750
- https://community.codecov.io/t/there-was-an-error-processing-coverage-reports-and-ci-not-detected/885/4

it feels like the changes in this commit might fix the issue

(cherry picked from commit ae98c07403)
2021-01-21 17:34:22 +00:00
Jarek Potiuk 7a86bea2e2 Upgrading epoch to rebuild images after pyarrow upgrade (#13084)
We've upgraded pyarrow release to 2.0.0 which seems to work
well with the upcoming pip 20.3.2 version. This PR is to
automatically rebuild our images to take the pyarrow constraint
into account.

(cherry picked from commit 0eb210df3e)
2021-01-21 17:34:15 +00:00
Kamil Breguła 7c5967ccd2 Add question about PR to feature request template (#13087)
(cherry picked from commit 12bde090d9)
2021-01-21 17:33:39 +00:00
Xiaodong DENG 5336548cc2 Remove inapplicable arg 'output' for CLI pools import/export (#13071)
(cherry picked from commit 4b67b0b942)
2021-01-21 17:33:30 +00:00
Xiaodong DENG 70d5524ae9 Fix failing static check in master (#13082)
(cherry picked from commit 4bacc1950f)
2021-01-21 17:32:16 +00:00
Kaxil Naik 61f2993742 Fix failing pylint check on Master (#13078)
(cherry picked from commit 0655d51a39)
2021-01-21 17:32:12 +00:00
Stefan Wüthrich e723969bf3 Update INTHEWILD.md - Add Altafino (#13079)
(cherry picked from commit ada1c63d6f)
2021-01-21 17:31:55 +00:00
John Bampton f750a5688b Remove unneeded parentheses from Python file (#12968)
(cherry picked from commit 317858ac76)
2021-01-21 17:31:30 +00:00
Kamil Breguła 81b92dbccd Check for missing references to operator guides (#13059)
(cherry picked from commit b4b9cf5597)
2021-01-21 17:31:14 +00:00
Kamil Breguła 763771013b Fetch inventories for third-party services only once (#13068)
* Fetch inventories for third-party services only once

* fixup! Fetch inventories for third-party services only once

(cherry picked from commit fa9c6b47d3)
2021-01-21 17:30:19 +00:00
Kamil Breguła 3e0c71c5a9 Update stable version for published docs (#13052)
(cherry picked from commit 5503951929)
2021-01-21 17:29:54 +00:00
Kamil Breguła 43bef5026d Display version selector for production docs (#13051)
(cherry picked from commit 74dc6fbc58)
2021-01-21 17:28:36 +00:00
Jarek Potiuk 1aa2537cb5 Skip discovering snowflake provider in development mode (#13062)
The snowflake provider when imported breaks other providers
Until https://github.com/apache/airflow/issues/12881 is fixed
we should skip discovering snowflake provider in development mode

(cherry picked from commit 169aa019c7)
2021-01-21 17:27:00 +00:00
Kamil Breguła 4350f32355 Bump version of sphinx-airflow-theme (#13054)
(cherry picked from commit 387af82e77)
2021-01-21 17:26:19 +00:00
AquaRegia 09358ac0b5
Fix doc string error (#13103)
Fix doc string error.
2020-12-16 19:21:23 +01:00
Jarek Potiuk cc87caa0ce Update default versions v2-0-test in the 2.0 branch (#12962) 2020-12-14 18:30:35 +00:00
Ash Berlin-Taylor ab5f770bfc
Explicitly shutdown logging in tasks so concurrent.futures can be used (#13057)
This fixes three problems:

1. That remote logs weren't being uploaded due to the fork change
2. That the S3 hook attempted to fetch credentials from the DB, but the
   ORM had already been disposed.
3. That even if forking was disabled, that S3 logs would fail due to use
   of concurrent.futures. See https://bugs.python.org/issue33097
2020-12-14 16:28:01 +00:00
eladkal 6bf9acb90f
Fix import from core to mysql provider in mysql example DAG (#13060) 2020-12-14 17:22:20 +01:00
Jarek Potiuk 26c6854259
Allows to install Airflow in Breeze from PIP with configurable extras (#13055)
The extras configured by --extras Breeze switch are now
passed to pip install command in case airfow is installed via
--install-airflow-version or --install-airflow-reference switch.
2020-12-14 15:10:06 +01:00
dstandish ea3d42a3b6
Make AirflowJsonEncoder uses Flask's JSONEncoder as a base (#13050)
Flask before 2.0 (unreleased at time of writing) will prefer simplejson if it is installed.

But unfortunately simplejson is not compatible with the stock JSONEncoder -- it always
passes an encoding argument. Changing the base class for our encoder to be what ever
Flask is using makes this more resilient.
2020-12-14 12:41:12 +00:00
owlphi 1c1ef7ee69
Add project_id to client inside BigQuery hook update_table method (#13018) 2020-12-14 10:58:21 +01:00
Tomek Urbaszek 4d3300c1dc
Refactor plugins command output using AirflowConsole (#13036)
This PR refactors the airflow plugins command to be compatible with
'output' parameter which allows users to get output in form of table,
json or yaml.
2020-12-13 16:30:06 +01:00
John Bampton ed4926fa3f
🔒 Fix missing HTTPS on airflow site links (#13043) 2020-12-13 14:33:50 +01:00
Jarek Potiuk 0d49a4742c
Fixes image building in DockerHub (#13039) 2020-12-13 12:08:55 +01:00
Evin Sellin 37263d609a
Add Vidora to INTHEWILD.md (#13038) 2020-12-13 10:49:08 +01:00
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