[
https://issues.apache.org/jira/browse/AIRFLOW-3885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788047#comment-16788047
]
ASF subversion and git services commented on AIRFLOW-3885:
----------------------------------------------------------
Commit f1ed9552f98213dcdefb851c2a09c4ad8170c26d in airflow's branch
refs/heads/v1-10-stable from Andrew Stahlman
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=f1ed955 ]
[AIRFLOW-3885] ~10x speed-up of SchedulerJobTest suite (#4730)
The SchedulerJobTest suite now takes ~90 seconds on my laptop (down from
~900 seconds == 15 minutes) on Jenkins.
There are a few optimizations here:
1. Don't sleep() for 1 second every scheduling loop (in unit tests)
2. Don't process the example DAGs
3. Use `subdir` to process only the DAGs we need, for a couple of tests
that actually run the scheduler
4. Only load the DagBag once instead of before each test
I've also added a few tables to the list of tables that are cleaned up
in between test runs to make the tests re-entrant.
> Improve Travis buildtime
> ------------------------
>
> Key: AIRFLOW-3885
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3885
> Project: Apache Airflow
> Issue Type: Bug
> Components: travis
> Affects Versions: 1.10.2
> Reporter: Drew Sonne
> Assignee: Drew Sonne
> Priority: Major
> Fix For: 1.10.3
>
>
> * Remove the "install" action on the "pre-test" stage to avoid performing
> lengthy Docker pulls to perform pre-checks
> * Set nosetests to return on any test failures
> ** Given the lengthy runtime of the airflow CI test suites, if any tests
> fail, we should fail immediately and return the failed test locally. Users
> can run the tests locally to get full lists of failed tests.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)