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

70 Коммитов

Автор SHA1 Сообщение Дата
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
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
Kengo Seki af4d9614e7 [AIRFLOW-2758] Add a sensor for MongoDB
This PR adds a sensor for MongoDB,
which waits for some document that
matches the given query to be
inserted to the specified collection.

Closes #3611 from sekikn/AIRFLOW-2758
2018-07-18 09:04:25 -07:00
Kengo Seki 4d153ad4e8 [AIRFLOW-2627] Add a sensor for Cassandra
Closes #3510 from sekikn/AIRFLOW-2627
2018-06-17 19:10:48 +01:00
Daniel Imberman efacc1a750 [AIRFLOW-2450] update supported k8s versions to 1.9 and 1.10
Closes #3345 from dimberman/upgrade-k8s
2018-05-11 09:34:26 +02:00
Daniel Imberman 5de22d7fa0 [AIRFLOW-2424] Add dagrun status endpoint and increased k8s test coverage
[AIRFLOW-2424] Add dagrun status endpoint and
increase k8s test coverage

[AIRFLOW-2424] Added minikube fixes by @kimoonkim

[AIRFLOW-2424] modify endpoint to remove 'status'

Closes #3320 from dimberman/add-kubernetes-test
2018-05-10 19:32:17 +02:00
Fokko Driesprong 088900ffb7 Revert "[AIRFLOW-2335] fix issue with jdk8 download for ci"
This reverts commit 0f8507ae35.

The JDK artifact has been fixed and the hotfix is no longer needed
2018-05-08 11:34:17 +02:00
Fokko Driesprong 16bae5634d [AIRFLOW-1899] Fix Kubernetes tests
[AIRFLOW-1899] Add full deployment

- Made home directory configurable
- Documentation fix
- Add licenses

[AIRFLOW-1899] Tests for the Kubernetes Executor

Add an integration test for the Kubernetes
executor. Done by
spinning up different versions of kubernetes and
run a DAG
by invoking the REST API

Closes #3301 from Fokko/fix-kubernetes-executor
2018-05-04 08:58:12 +02:00
Bolke de Bruin 0889770dc5 [AIRFLOW-XXX] Remove wheelhouse files from travis not owned by travis 2018-04-25 19:46:43 +02:00
Daniel Imberman a15b7c5b79 [AIRFLOW-1314] Cleanup the config
Closes #2414 from bloomberg:airflow-kubernetes-executor
2018-04-22 10:24:18 +02:00
Daniel Imberman b9a87a07e3 [AIRFLOW-1314] Rebasing against master 2018-04-22 10:23:06 +02:00
Benjamin Goldberg 309f764aa3 [AIRFLOW-1314] Small cleanup to address PR comments (#24)
* Small cleanup to address PR comments

* Remove use of enum

* Change back to 3.4
2018-04-22 10:23:06 +02:00
grantnicholas a9d90dc9a5 [AIRFLOW-1314] Use VolumeClaim for transporting DAGs
- fix issue where watcher process randomly dies
- fixed alembic head, was pointing to two tips
2018-04-22 10:22:44 +02:00
Daniel Imberman 0f8507ae35 [AIRFLOW-2335] fix issue with jdk8 download for ci
Make sure you have checked _all_ steps below.

- [x] My PR addresses the following [Airflow JIRA]
(https://issues.apache.org/jira/browse/AIRFLOW/)
issues and references them in the PR title. For
example, "\[AIRFLOW-XXX\] My Airflow PR"
    -
https://issues.apache.org/jira/browse/AIRFLOW-2335
    - In case you are fixing a typo in the
documentation you can prepend your commit with
\[AIRFLOW-XXX\], code changes always need a JIRA
issue.

- [x] Here are some details about my PR, including
screenshots of any UI changes:

There is an issue with travis pulling jdk8 that is
preventing CI jobs from running. This blocks
further development of the project.

Reference: https://github.com/travis-ci/travis-
ci/issues/9512#issuecomment-382235301

- [x] My PR adds the following unit tests __OR__
does not need testing for this extremely good
reason:

This PR can't be unit tested since it is just
configuration. However, the fact that unit tests
run successfully should show that it works.

- [ ] My commits all reference JIRA issues in
their subject lines, and I have squashed multiple
commits if they address the same issue. In
addition, my commits follow the guidelines from
"[How to write a good git commit
message](http://chris.beams.io/posts/git-
commit/)":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not
"adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

- [ ] In case of new functionality, my PR adds
documentation that describes how to use it.
    - When adding new operators/hooks/sensors, the
autoclass documentation generation needs to be
added.

- [ ] Passes `git diff upstream/master -u --
"*.py" | flake8 --diff`

Closes #3236 from dimberman/AIRFLOW-
2335_travis_issue
2018-04-17 21:57:42 -07:00
Bolke de Bruin c7a472ed6b [AIRFLOW-2287] Fix incorrect ASF headers
Closes #3219 from bolkedebruin/fix_header
2018-04-14 09:13:23 +02:00
Fokko Driesprong 0ca6f92e2a Revert "[AIRFLOW-2050] Fix Travis permission problem"
This reverts commit 48202ad5bd.
2018-02-13 20:14:12 +01:00
Fokko Driesprong 48202ad5bd [AIRFLOW-2050] Fix Travis permission problem
The travis build has issues with reading the Flask
Admin wheel.
Explicitly delete the wheel for now.

Closes #2993 from Fokko/fd-fix-permissions-travis
2018-01-31 11:06:51 +01:00
Bolke de Bruin a1d5551777 [AIRFLOW-1895] Fix primary key integrity for mysql
sla_miss and task_instances cannot have NULL
execution_dates. The timezone
 migration scripts forgot to set this properly. In
addition to make sure
MySQL does not set "ON UPDATE CURRENT_TIMESTAMP"
or MariaDB "DEFAULT
0000-00-00 00:00:00" we now check if
explicit_defaults_for_timestamp is turned
on and otherwise fail an database upgrade.

Closes #2969, #2857

Closes #2979 from bolkedebruin/AIRFLOW-1895
2018-01-27 09:01:10 +01:00
GRANT NICHOLAS 965439bef0 [AIRFLOW-1517] Add minikube for kubernetes integration tests
Add better support for minikube integration tests; By default minikube integration tests will run with kubernetes 1.7 and kubernetes 1.8
2018-01-11 15:29:16 -08:00
Daniel Imberman a42dbb4f4d Revert "[AIRFLOW-1517] Add minikube for kubernetes integration tests"
This reverts commit 0197931609685a98181387014f7c8f3b5cd5f9a8.
2018-01-11 15:29:16 -08:00
GRANT NICHOLAS cde3a5fecd [AIRFLOW-1517] Add minikube for kubernetes integration tests
Add better support for minikube integration tests; By default minikube integration tests will run with kubernetes 1.7 and kubernetes 1.8
2018-01-11 15:28:32 -08:00
Daniel Imberman 78ff2fc180 [AIRFLOW-1517] Kubernetes Operator 2017-12-26 08:45:31 -08:00
Bolke de Bruin 51180d370c [AIRFLOW-XXX] Upgrade to python 3.5 and disable dask tests
Dask tests seem to create issues down the line.
2017-12-19 15:26:49 +01:00
Bolke de Bruin b9c82c0400 [AIRFLOW-1870] Enable flake8 tests
Flake8 tests now run for diffs

Closes #2829 from bolkedebruin/use_flake8
2017-11-30 15:57:17 +01:00
Bolke de Bruin 65f3b468a2 [AIRFLOW-1527] Refactor celery config
The celery config is currently part of the celery executor definition.
This is really inflexible for users wanting to change it. In addition
Celery 4 is moving to lowercase.

Closes #2542 from bolkedebruin/upgrade_celery
2017-09-25 11:19:16 -07:00
Dan Davydov b56cb5cc97 [AIRFLOW-219][AIRFLOW-398] Cgroups + impersonation
Submitting on behalf of plypaul

Please accept this PR that addresses the following
issues:
-
https://issues.apache.org/jira/browse/AIRFLOW-219
-
https://issues.apache.org/jira/browse/AIRFLOW-398

Testing Done:
- Running on Airbnb prod (though on a different
mergebase) for many months

Credits:
Impersonation Work: georgeke did most of the work
but plypaul did quite a bit of work too.
Cgroups: plypaul did most of the work, I just did
some touch up/bug fixes (see commit history,
cgroups + impersonation commit is actually plypaul
's not mine)

Closes #1934 from aoen/ddavydov/cgroups_and_impers
onation_after_rebase
2017-01-18 18:11:06 -08:00
Bolke de Bruin 64a1b19a3f Use jdk selector to set required jdk 2016-12-05 15:15:45 +00:00
Bolke de Bruin d5ac6bd9d0 [AIRFLOW-489] Add API Framework
This implements a framework for API calls to Airflow. Currently
all access is done by cli or web ui. Especially in the context
of the cli this raises security concerns which can be alleviated
with a secured API call over the wire.

Secondly integration with other systems is a bit harder if you have
to call a cli. For public facing endpoints JSON is used.

As an example the trigger_dag functionality is now made into a
API call.

Backwards compat is retained by switching to a LocalClient.
2016-11-27 19:44:31 +01:00
Bolke de Bruin d12ef6ffc0 [AIRFLOW-507] Use Travis' ubuntu trusty for CI
Travis' ubuntu trusty provides a more up to date
environment for CI. It allows for better testing
by integration more services like kerberos and
celery. Also it comes closer to actual production
environments (e.g. MySQL 5.6).
2016-11-13 22:43:16 +01:00
Kengo Seki a59ba049c6 [AIRFLOW-269] Add some unit tests for PostgreSQL
Closes #1616 from sekikn/AIRFLOW-269
2016-06-30 13:19:30 -07:00
Ajay Yadav 3ffa656d97 [AIRFLOW-248] Add Apache license header to all files
- Added Apache license header for files with extension (.service, .in, .mako, .properties, .ini, .sh, .ldif, .coveragerc, .cfg, .yml, .conf, .sql, .css, .js, .html, .xml.
- Added/Replaced shebang on all .sh files with portable version - #!/usr/bin/env bash.
- Skipped third party css and js files. Skipped all minified js files as well.

Closes #1598 from ajayyadava/248
2016-06-21 08:15:42 -07:00
Bolke de Bruin 4b6f7e828f AIRFLOW-190 Add codecov and remove download count 2016-05-30 12:52:24 +02:00
Bolke de Bruin ba15d3ab76 This patch allows for testing of hive operators and hooks. Sasl is used (NoSasl in connection string is not possible). Tests have been adjusted. 2016-03-18 14:03:38 +01:00
Bolke de Bruin f6771534a3 Add openssh server 2015-11-28 10:15:42 +01:00
Bolke de Bruin 3ae08c1a05 Setup ssh on travis to be able to test the ssh hook / operator 2015-11-28 09:37:33 +01:00
Bolke de Bruin 684495fa8e Limit build matrix for now to CDH only 2015-11-19 10:07:38 +01:00
Bolke de Bruin 931c94c720 Fix postgres test by adhering to flask specs to return none in case userid not valid 2015-11-17 11:27:23 +01:00
Svend Vanderveken 49364e13a3 now running travis on all DB backends
- added Travis config to also run integration tests on sqlite
- added Travis config to also run integration test on postgre, and commented them out as they seem to fail
- added a bit more logs in bash scripts executed by Travis
2015-11-16 11:21:21 +01:00
Bolke de Bruin 1a66df4119 Add ldap travis tests 2015-11-05 22:48:01 +01:00
Bolke de Bruin 2856b3a4c8 Fix caching by using TRAVIS_CACHE and moving it from .cache to .travis_cache 2015-10-30 11:23:11 +01:00
Bolke de Bruin c3d4f826b4 Use travis instead of tox to set cache dir 2015-10-28 12:09:56 +01:00
Bolke de Bruin c6d6b800c2 Speed up downloads of hadoop distros 2015-10-28 12:04:51 +01:00
Maxime Beauchemin bd6322b3e7 Trying to get coveralls to run 2015-10-21 11:52:11 -07:00
Maxime Beauchemin 4d42584433 Adding coveralls call 2015-10-21 11:41:48 -07:00
Maxime Beauchemin 099e11a59c Py3 compatibility in tests 2015-10-21 10:45:28 -07:00
Bolke de Bruin 46cd5bf610 Fix python version 2015-10-21 10:45:27 -07:00
Bolke de Bruin f9c0ed9d02 Switch to python 3.4, 3.5 was a bit too ambitious for now 2015-10-21 10:45:27 -07:00
Maxime Beauchemin 1ca1776b3d Trying different strategies to get initdb to run 2015-10-21 10:42:01 -07:00
Bolke de Bruin acaad88c8f Remove incompatible builds from the matrix 2015-10-21 10:42:00 -07:00
Bolke de Bruin 1eeaaebdab Add suport for python 3.5 2015-10-21 10:42:00 -07:00