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

5168 Коммитов

Автор SHA1 Сообщение Дата
Taylor D. Edmiston b0e912cea9 [AIRFLOW-2850] Remove deprecated airflow.utils.apply_defaults (#3695) 2018-08-05 19:13:12 +01:00
Xiaodong c0c63ae2a4 [AIRFLOW-2839] Refine Doc Concepts->Connections (#3678) 2018-08-05 19:08:15 +01:00
Xiaodong 87013d7f29 [AIRFLOW-2848] Ensure dag_id in metadata "job" for LocalTaskJob (#3693)
dag_id is missing for all entries in metadata
table "job" with job_type "LocalTaskJob".

This is due to that dag_id was not specified
within class LocalTaskJob.

A test is added to check if essential
attributes of LocalTaskJob can be assigned
with proper values without intervention.
2018-08-04 20:54:14 -07:00
Andy Cooper 012ebfd482 [AIRFLOW-2796] Improve utils helpers code coverage (#3637) 2018-08-04 17:53:22 -07:00
Eyal Trabelsi 33dd33c89d [AIRFLOW-2849] Add flake8 to setup.py
Closes #3694 from eyaltrabelsi/AIRFLOW-2849-add-flake8-to-setup.py-dev-req-to-run-quality-check-locally
2018-08-04 17:01:24 +01:00
Tao Feng da4f254283 [AIRFLOW-XXX] Add Feng Tao to committers list (#3689) 2018-08-03 20:42:30 +01:00
Xiaodong 97bc70bd20 [AIRFLOW-2836] Minor improvement-contrib.sensors.FileSensor (#3674)
- The default value of fs_conn_id was not proper.
- Added a new test in which we try to ignore setting
  fs_conn_id explicitly.
- a minor change on how a path is concatenated
2018-08-03 15:47:35 +02:00
Cameron Moberg 76a99597e2 [AIRFLOW-2796] Expand code coverage for utils/helpers.py (#3686) 2018-08-03 15:28:31 +02:00
Verdan Mahmood c2927ac388 [AIRFLOW-2805] Display multiple timezones on UI (#3687) 2018-08-03 14:07:50 +02:00
Kaxil Naik 758be9db83
Revert [AIRFLOW-2814] - Change `min_file_process_interval` to 0 (#3669)
- Change the time (in seconds) after which a new DAG should be picked up from the filesystem
2018-08-03 09:27:06 +01:00
Bolke de Bruin c25e63970d [AIRFLOW-XXX] Update changelog for 1.10
(cherry picked from commit 862ad8b9c2)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>
2018-08-03 09:15:08 +02:00
Cameron Moberg b4f43e6c48 [AIRFLOW-2658] Add GCP specific k8s pod operator (#3532)
Executes a task in a Kubernetes pod in the specified Google Kubernetes
Engine cluster. This makes it easier to interact with GCP kubernetes
engine service because it encapsulates acquiring credentials.
2018-08-02 20:44:16 +01:00
Ash Berlin-Taylor d843f65af2 [AIRFLOW-2238] Use SSH protocol for pushing to Github (#3680)
Since we have MFA enforced we won't be able to use passwords to push and
will have to use SSH keypairs.
2018-08-02 20:43:13 +01:00
Renze Post 85f02f392c [AIRFLOW-XXX] Add Liberty Global to company list (#3685) 2018-08-02 20:38:39 +01:00
Matt Revell a4b9aa386c [AIRFLOW-2099] Handle getsource() calls gracefully
There are several scenarios where Task Instance view tries to render
Python callables where 'x' is not the correct artefact to target.

This commit adds a helper fuction to test for known scenarios, and
derives the source from the correc artefact or as a default returns 'No
source available for <type>'. This means that even in unknown or
unfixable edge cases, the Task Instance view still renders instead of
displaying an exception.

Closes #3571 from night0wl/AIRFLOW-2099_task_view_type_check
2018-08-02 08:43:47 +01:00
Kengo Seki 0d193ada44 [AIRFLOW-2829] Brush up the CI script for minikube
Fix scripts/ci/kubernetes/minikube/start_minikube.sh
as follows:

- Make minikube version configurable via
  environment variable
- Remove unused variables for readability
- Reorder some lines to remove warnings
- Replace ineffective `return` with `exit`
- Add -E to `sudo minikube` so that non-root
  users can use this script locally
2018-08-01 14:30:51 -07:00
Xiaodong b120427b65 [AIRFLOW-2820] Add Web UI triggger in doc "Scheduling & Triggers"
In documentation page "Scheduling & Triggers",
it only mentioned the CLI method to
manually trigger a DAG run.

However, the manual trigger feature in Web UI
should be mentioned as well
(it may be even more frequently used by users).
2018-08-01 14:08:21 -07:00
bolkedebruin c37fc0b6ba
[AIRFLOW-2817] Force explicit choice on GPL dependency (#3660)
By default one of Apache Airflow's dependencies pulls in a GPL
library. Airflow should not install (and upgrade) without an explicit choice.

This is part of the Apache requirements as we cannot depend on Category X
software.
2018-08-01 11:25:31 +02:00
yrqls21 c26c564876 [AIRFLOW-2756] Fix bug in set DAG run state workflow (#3606) 2018-08-01 09:31:30 +01:00
Fokko Driesprong 8b2a01c391 [AIRFLOW-2835] Remove python-selinux (#3673)
This package is not used and it sometimes breaks the CI because it
is not available. Therefore it makes sense to just remove it :-)
2018-08-01 10:24:28 +02:00
Taylor D. Edmiston 6d31c9e416 [AIRFLOW-2832] Lint and resolve inconsistencies in Markdown files (#3670)
Clean up the Markdown files and make the formatting consistent
2018-08-01 09:50:23 +02:00
retornam e7f65430ab [AIRFLOW-XXX] Add Collectivehealth to company list (#3671)
Add CollectiveHealth Inc. to the official list of companies in the README.md
2018-08-01 09:43:06 +02:00
Deevankshu Garg d8f927b634 [AIRFLOW-XXX] Add Gradeup to the official list of companies (#3672) 2018-08-01 09:30:34 +02:00
Dan Fowler ed972042a8 [AIRFLOW-1104] Update jobs.py so Airflow does not over schedule tasks (#3568)
This change will prevent tasks from getting scheduled and queued over
the concurrency limits set for the dag
2018-07-31 21:25:04 +01:00
Cameron Moberg 3b35d360f6 [AIRFLOW-2670] Update SSH Operator's Hook to respect timeout (#3666) 2018-07-31 21:24:34 +02:00
Marcus Rehm 9983466fd1 [AIRFLOW-2795] Oracle to Oracle Transfer Operator (#3639) 2018-07-31 21:22:40 +02:00
Fokko Driesprong 8d2f57cd10
Merge pull request #3665 from XD-DENG/patch-6
[AIRFLOW-2825] Fix S3ToHiveTransfer bug due to case
2018-07-31 21:21:38 +02:00
Leo Gallucci 3eb0454cb1 [AIRFLOW-2822] Fix HipChat Deprecation Warning
Fixes PendingDeprecationWarning on HipChatAPISendRoomNotificationOperator

Using `HipChatAPISendRoomNotificationOperator` on Airflow master branch (2.0) gives:

airflow/models.py:2390: PendingDeprecationWarning:
Invalid arguments were passed to HipChatAPISendRoomNotificationOperator.
Support for passing such arguments will be dropped in Airflow 2.0.
Invalid arguments were:
*args: ()
**kwargs: {'color': 'green'}
category=PendingDeprecationWarning
2018-07-31 09:15:00 -07:00
Andy Cooper 06584fc4b1 [AIRFLOW-2800] Remove low-hanging linting errors 2018-07-31 08:46:58 -07:00
Ash Berlin-Taylor 6fdc79980b
Merge pull request #3413 from ashb/pr-tool-git-config
[AIRFLOW-2238] Switch PR tool to push to Github
2018-07-31 11:50:55 +02:00
XD-DENG c7e54461c6 [AIRFLOW-2825]Fix S3ToHiveTransfer bug due to case
Because upper/lower case was not considered
in the file extension check, S3ToHiveTransfer
operator may mistakenly think a GZIP file with
uppercase ext ".GZ" is not a GZIP file and
raise exception.
2018-07-31 10:30:36 +08:00
Ash Berlin-Taylor d3793c0a50 [AIRFLOW-2238] Update PR tool to push directly to Github 2018-07-30 20:31:39 +02:00
Ash Berlin-Taylor 4484286e49 [AIRFLOW-2238] Flake8 fixes on dev/airflow-pr 2018-07-30 20:31:39 +02:00
XD-DENG dfa7b26dda [AIRFLOW-2809] Fix security issue regarding Flask SECRET_KEY
It's recommended by Falsk community to use random
SECRET_KEY for security reason.

However, in Airflow there is a default value for
secret_key and most users will ignore to change
it.

This may cause security concern.

Closes #3651 from XD-DENG/patch-2
2018-07-29 11:57:46 +02:00
Jacob Hayes fcd51f362c [AIRFLOW-2716] Replace async and await py3.7 keywords
Closes #3578 from JacobHayes/py37-keywords
2018-07-29 11:56:41 +02:00
XD-DENG 9b7525f251 [AIRFLOW-2814] Fix inconsistent default config
value of min_file_process_interval in config
template is 0
However it's supposed to be 180 according to
airflow/jobs.py line 592

Closes #3659 from XD-DENG/patch-3
2018-07-28 20:48:17 +01:00
Kaxil Naik 47fa657608 closes apache/incubator-airflow#3654 *Already merged* 2018-07-28 20:46:03 +01:00
Vojtech Vondra 449a7fd1b7 [AIRFLOW-2807] Support STS Assume Role External ID
Currently the role assumption method works only if
the granting account
does not specify an External ID. The external ID
is used to solved the
confused deputy problem. When using the AWS hook
to export data to
multiple customers, it's good security practice to
use the external ID.

There is no backwards compatibility break, the ID
will be `None` in
existing cases. Moto doesn't provide any
convenient way to verify the
value was passed in the credential response in
tests, so existing
test cases are kept.

Documentation: https://docs.aws.amazon.com/IAM/lat
est/UserGuide/id_roles_create_for-
user_externalid.html

Closes #3647 from vvondra/support_sts_external_id
2018-07-28 17:32:09 +02:00
Bolke de Bruin a5fa1bf888 [AIRFLOW-2779] Update licenses and remove copyright headers
* ssh_hook is not a port anymore
* auth backends should never had a copyright clause
* minihivecluster isnt used
2018-07-28 14:25:05 +02:00
Bolke de Bruin af15f1150d [AIRFLOW-2816] Fix license text in docs/license.rst 2018-07-28 13:20:26 +02:00
Bolke de Bruin 4f562ba8c7 [AIRFLOW-2815] Use correct copyright period
"onwards" is not specific enough
2018-07-28 13:10:43 +02:00
Jasper Kahn 3e7e42f028 [AIRFLOW-2563] Fix PigCliHook Python 3 string/bytes use
Unit tests added for PigCliHook as well to prevent
future issues.

Closes #3594 from jakahn/master
2018-07-27 16:08:32 -07:00
Tom Chapin 096ba9ecd9 [AIRFLOW-XXX] Add Strongmind to the Readme
Closes #3655 from tomchapin/master
2018-07-27 12:39:29 -07:00
Andy Wilcox a338f32768 [AIRFLOW-2810] Fix typo in Xcom model timestamp
Fix typo in Xcom model timestamp field

No new testing - the field is already represented
in migrations

Closes #3652 from andywilco/fix_datetime_typo
2018-07-27 13:03:36 -04:00
Leo Gallucci 233056e0dd [AIRFLOW-XXX] Document dag_dir_list_interval in cfg
Document dag_dir_list_interval in default_airflow.cfg

https://github.com/apache/incubator-airflow/blob/m
aster/UPDATING.md#dag_dir_list_interval

Closes #3645 from elgalu/patch-2
2018-07-27 11:02:43 +02:00
Verdan Mahmood 25f31c9b77 [AIRFLOW-2766][Airflow-2766] Respect shared datetime across tabs
Closes #3615 from verdan/AIRFLOW-2766-shared-
datetime
2018-07-26 20:55:04 +02:00
Abdul Nimeri 68535d1886 [AIRFLOW-2776] Compress tree view JSON
The tree view generates JSON that can be massive
for bigger DAGs,
up to 10s of MBs. The JSON is currently
prettified, which both
takes up more CPU time during serialization, and
slows down
everything else that uses it. Considering the JSON
is only
meant to be used programmatically, this is an easy
win

Closes #3620 from abdul-stripe/smaller-tree-view-
json
2018-07-26 20:53:57 +02:00
Abdul Nimeri 4cd72b91bd [AIRFLOW-2777] speed up dag.sub_dag(...)
previous version created the subdag by copying
over all the tasks, and
then filtering them down. it's a lot faster if we
only copy over the
tasks we need

Closes #3621 from abdul-stripe/faster-subdag
2018-07-26 20:53:11 +02:00
Jeffrey Scott Keone Payne 8c441a0d88 [AIRFLOW-2765] Set default mime_charset to UTF-8
Closes #3627 from jeffkpayne/AIRFLOW-2765
2018-07-26 20:52:21 +02:00
Verdan Mahmood 604ea1dccc [AIRFLOW-2783][Airflow 2783] Implement eslint for JS code check
Closes #3641 from verdan/AIRFLOW-2783-eslint
2018-07-26 20:45:14 +02:00