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

21 Коммитов

Автор SHA1 Сообщение Дата
Tomek Urbaszek 1f77f943d5
[AIRFLOW-6980] Improve system tests and building providers package (#7615)
This PR removes initdb from system tests setup as it seems unneccessary operation.
Also some automatic code changes has been added before building providers package.

fixup! [AIRFLOW-6980] Improve system tests and building providers package

fixup! [AIRFLOW-6980] Improve system tests and building providers package

fixup! fixup! [AIRFLOW-6980] Improve system tests and building providers package
2020-03-10 14:05:08 +01:00
Jarek Potiuk ff7034f39a
[AIRFLOW-6816] Simplified common functions in breeze scripts (#7430) 2020-02-16 20:05:50 +01:00
Jarek Potiuk 319714f07c
[AIRFLOW-6766] Fix "cannot import ensure_text" error for pre-commit (#7393)
* [AIRFLOW-6766] Fix "cannot import ensure_text" error for pre-commit

As of today Travis bundles six version 1.11.0 with their python
3.6 image and it misses ensure_text method. Bumping to 1.14+
solves the problem.
2020-02-10 13:26:44 +01:00
Jarek Potiuk 73403cc8f4
[AIRFLOW-5704] Improve Kind Kubernetes scripts for local testing (#6516)
* Fixed problem that Kubernetes tests were testing latest master
  rather than what came from the local sources.
* Kind (Kubernetes in Dcocker) is run in the same Docker as Breeze env
* Moved Kubernetes scripts to 'in_container' dir where they belong now
* Kubernetes cluster is reused until it is stopped
* Kubernetes image is build from image in docker already + mounted sources
* Kubectl version name is corrected in the Dockerfile
* KUBERNETES_VERSION can now be used to select Kubernetes version
* Running kubernetes scripts is now easy in Breeze
* We can start/recreate/stop cluster using  --<ACTION>-kind-cluster
* Instructions on how to run Kubernetes tests are updated
* The old "bare" environment is replaced by --no-deps switch
2020-01-11 16:25:19 +01:00
Jarek Potiuk 1b3af10246 Revert "[AIRFLOW-5704] Improve Kind Kubernetes scripts for local testing (#6496)"
This reverts commit 8e789a33a3.
2019-11-07 13:36:05 +01:00
Jarek Potiuk 8e789a33a3
[AIRFLOW-5704] Improve Kind Kubernetes scripts for local testing (#6496)
* [AIRFLOW-5704] Improve Kind Kubernetes scripts for local testing

* Fixed problem that Kubernetes tests were testing latest master
  rather than what came from the local sources.
* Moved Kubernetes scripts to 'in_container' dir where they belong now
* Kubernetes tests are now better suited for running locally
* Kubernetes cluster is not deleted until environment is stopped
* Kubernetes image is built outside of the container and passed as .tar
* Kubectl version name is corrected in the Dockerfile
* Kubernetes Version can be used to select Kubernetes versio
* Running kubernetes scripts is now easy in Breeze
* Instructions on how to run Kubernetes tests are updated
* Better flags in Breeze are used to run Kubernetes environment/tests
* The old "bare" environment is replaced by --no-deps switch
2019-11-06 17:25:11 +01:00
Jarek Potiuk d2595de91d
[AIRFLOW-5826] Added auto-generation of breeze output in BREEZE.rst (#6490)
This is needed to keep breeze --help in sync with the documentation.

It makes it easier for the follow-up changes needed for production
image to keep the docs in sync with the code.
2019-11-04 10:37:31 +01:00
Gerardo Curiel e62056b225 [AIRFLOW-5223] Use kind for Kubernetes in CI (#5837)
This PR reimplements Kubernetes integration testing using kind,
a tool for running local Kubernetes clusters using Docker container
"nodes". The "nodes" are deployed to a separate docker daemon
(dind) started through docker-compose.
2019-10-15 12:56:09 +02:00
Jarek Potiuk 30c442c9b8 [AIRFLOW-5537] Yamllint is not needed as dependency on host
It used to be needed for pre-commits but is not needed any more
as it is automatically installed as dependency in the virtualenv
created by pre-commit
2019-09-22 19:47:44 +01:00
Jarek Potiuk 1815ef32d8 [AIRFLOW-5533] Fixed failing CRON build
This change optimises further image building and removes unnecessary
verbosity in building the images for CI builds.

After this change is merged, only the necessary images are built for
each type of check:
* Tests -> only CI
* Static checks (with/without pylint) -> Only CI_SLIM
* Docs -> only CI_SLIM
* Licence checks -> Only CHECKLICENCE

Previously the right images only were built in ci_before_install.sh
but then in case of static checks, the pre-commit build image step
also rebuilt CHECKLICENCE and CI images - which was not necessary
and very long in case of CRON job - this caused the CRON job to
fail at 10m of inactivity.
2019-09-22 19:47:44 +01:00
Jarek Potiuk 857788e305
[AIRFLOW-5369] Adds interactivity to pre-commits (#5976)
This commit adds full interactivity to pre-commits. Whenever you run pre-commit
and it detects that the image should be rebuild, an interactive question will
pop up instead of failing the build and asking to rebuild with REBUILD=yes

This is much nicer from the user perspective. You can choose whether to:
1) Rebuild the image (which will take some time)
2) Not rebuild the image (this will use the old image with hope it's OK)
3) Quit.

Answer to that question is carried across all images needed to rebuild.
There is the special "build" pre-commit hook that takes care about that.

Note that this interactive question cannot be asked if you run only
single pre-commit hook with Dockerfile because it can run multiple processes
and you can start building in parallel. This is not desired so instead we fail
such builds.
2019-09-18 13:43:30 +02:00
Jarek Potiuk 35e7b622c2 [AIRFLOW-5411] Remove the noise produced while running failed pre-commits 2019-09-06 14:35:24 +02:00
Jarek Potiuk 286aa7a581
[AIRFLOW-3611] Simplified development environment (#4932) 2019-08-27 14:39:36 -04:00
Jarek Potiuk d24db825ff
[AIRFLOW-5285] Pylint pre-commit filters out pylint_todo files (#5884)
* [AIRFLOW-5285] Pylint pre-commit filters out pylint_todo files
2019-08-23 16:19:27 -04:00
Jarek Potiuk e1cb8ce99b
[AIRFLOW-5180] Added static checks (yamllint) + auto-licences for yaml file (#5790) 2019-08-22 10:13:56 -04:00
Jarek Potiuk 64207120fd
[AIRFLOW-5204] Shellcheck + common licences + executable shebangs in shell files (#5807)
* [AIRFLOW-5204] Shellcheck + common licence in shell files
2019-08-20 00:07:39 -04:00
Jarek Potiuk 70e937a8d8
[AIRFLOW-5161] Static checks are run automatically in pre-commit hooks (#5777) 2019-08-14 20:53:28 -04:00
Jarek Potiuk 8cf0635793
[AIRFLOW-5159] Checklicence image is not built when not needed (#5774) 2019-08-10 18:11:51 +03:00
Jarek Potiuk 9267c5e19e
[AIRFLOW-5083] Move image building to before_install for licence (#5695) 2019-08-06 15:34:18 +02:00
Jarek Potiuk 94209a8ec9
[AIRFLOW-5001] Moving building image to before_install phase (#5648)
(cherry picked from commit 15d78b723db3bf05f845025fcceafe3170563063)
2019-07-24 10:24:57 +02:00
Jarek Potiuk 2d086d77f1
[AIRFLOW-4117] Travis CI uses multi-stage images to run tests (#4938) 2019-07-17 22:42:43 +02:00