-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Airflow 1.10.14 as a bridge before switching to Airflow 2.0 * Update dependencies to fit Airflow 2.0.0 * Udpate cwl-airflow init to upgrade to Airflow 2.0.0 * Update logging template to correspond to Airflow 2.0.0 * Fix bug in triggering dags from API, updated readme * Remove deprecated add_connections function * Set lower number of scheduler parsing processes in travis tests * Add DAG to resend all missed progress reports and results * Print error category in cwl-airflow test * Add docker pull limit error category * No need in --conn-extra when adding new connection
- Loading branch information
1 parent
a2bdc32
commit 945fc76
Showing
21 changed files
with
1,093 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ jobs: | |
before_script: | ||
- cwl-airflow init --upgrade | ||
- rm -f ~/airflow/dags/bam-bedgraph-bigwig-single.cwl | ||
script: airflow list_dags --report # to check if all DAGs are correct | ||
script: airflow dags list # to check if all DAGs are correct | ||
- name: Test packaging for Ubuntu 18.04, Python 3.6 | ||
install: | ||
- ./packaging/portable/ubuntu/pack.sh 18.04 3.6 $TRAVIS_BRANCH | ||
|
@@ -89,37 +89,44 @@ jobs: | |
before_script: | ||
- ./python3/bin_portable/airflow --help # to generate airflow.cfg | ||
- sed -i'.backup' -e 's/^executor.*/executor = LocalExecutor/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^parsing_processes.*/parsing_processes = 1/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^sql_alchemy_pool_enabled.*/sql_alchemy_pool_enabled = False/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^dag_dir_list_interval =.*/dag_dir_list_interval = 60/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^parallelism =.*/parallelism = 1/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^sql_alchemy_conn.*/sql_alchemy_conn = mysql:\/\/airflow:[email protected]:6603\/airflow/g' ~/airflow/airflow.cfg | ||
- ./python3/bin_portable/cwl-airflow init # to init database | ||
- ./python3/bin_portable/airflow connections --add --conn_id process_report --conn_type http --conn_host localhost --conn_port 3070 --conn_extra "{\"endpoint\":\"/airflow/\"}" # to add process_report connection | ||
- ./python3/bin_portable/cwl-airflow init | ||
- ./python3/bin_portable/airflow connections add process_report --conn-type http --conn-host localhost --conn-port 3070 # to add process_report connection | ||
- ./python3/bin_portable/airflow scheduler > /dev/null 2>&1 & | ||
- ./python3/bin_portable/cwl-airflow api > /dev/null 2>&1 & | ||
- sleep 5 # to let scheduler to parse all dags, otherwise we can't run the following command | ||
- ./python3/bin_portable/airflow dags unpause resend_results | ||
script: ./python3/bin_portable/cwl-airflow test --suite workflows/tests/conformance_tests.yaml --spin --range 1 | ||
|
||
before_install: | ||
- git clone https://github.com/datirium/workflows.git --recursive | ||
- docker pull mysql/mysql-server:5.7 | ||
- docker run -v ~/database:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=airflow -e MYSQL_DATABASE=airflow -e MYSQL_USER=airflow -e MYSQL_PASSWORD=airflow -p 6603:3306 -d mysql/mysql-server:5.7 --explicit-defaults-for-timestamp=1 | ||
install: | ||
- pip install ".[mysql,crypto]" --constraint ./packaging/constraints/constraints-$TRAVIS_PYTHON_VERSION.txt | ||
- pip install ".[mysql]" --constraint ./packaging/constraints/constraints-$TRAVIS_PYTHON_VERSION.txt | ||
before_script: | ||
- airflow --help # to generate airflow.cfg | ||
- sed -i'.backup' -e 's/^executor.*/executor = LocalExecutor/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^parsing_processes.*/parsing_processes = 1/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^sql_alchemy_pool_enabled.*/sql_alchemy_pool_enabled = False/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^dag_dir_list_interval =.*/dag_dir_list_interval = 60/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^parallelism =.*/parallelism = 1/g' ~/airflow/airflow.cfg | ||
- sed -i'.backup' -e 's/^sql_alchemy_conn.*/sql_alchemy_conn = mysql:\/\/airflow:[email protected]:6603\/airflow/g' ~/airflow/airflow.cfg | ||
- cwl-airflow init # to init database | ||
- airflow connections --add --conn_id process_report --conn_type http --conn_host localhost --conn_port 3070 --conn_extra "{\"endpoint\":\"/airflow/\"}" # to add process_report connection | ||
- cwl-airflow init | ||
- airflow connections add process_report --conn-type http --conn-host localhost --conn-port 3070 # to add process_report connection | ||
- airflow scheduler > /dev/null 2>&1 & | ||
- cwl-airflow api > /dev/null 2>&1 & | ||
- sleep 5 # to let scheduler to parse all dags, otherwise we can't run the following command | ||
- airflow dags unpause resend_results | ||
script: cwl-airflow test --suite workflows/tests/conformance_tests.yaml --spin --range $NTEST | ||
|
||
branches: | ||
only: | ||
- master | ||
- /^*_devel$/ | ||
- /^([1-9]\d*!)?(0|[1-9]\d*)(\.(0|[1-9]\d*))*((a|b|rc)(0|[1-9]\d*))?(\.post(0|[1-9]\d*))?(\.dev(0|[1-9]\d*))?$/ | ||
|
||
notifications: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.