[
https://issues.apache.org/jira/browse/AIRFLOW-3885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770784#comment-16770784
]
ASF subversion and git services commented on AIRFLOW-3885:
----------------------------------------------------------
Commit b39a6795691f10a1eba9432971feed9893dd5c4e in airflow's branch
refs/heads/master from Andrew Stahlman
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=b39a679 ]
[AIRFLOW-3885] ~20x speed-up of slowest unit test (#4726)
The test `SchedulerJobTest.test_scheduler_start_date` is the slowest test,
taking ~5 minutes on average:
>>> [success] 12.99%
tests.test_jobs.SchedulerJobTest.test_scheduler_start_date: 295.1935s
[success] 6.79%
tests.test_jobs.SchedulerJobTest.test_scheduler_multiprocessing: 154.2304s
[success] 6.72%
tests.test_jobs.SchedulerJobTest.test_scheduler_task_start_date: 152.7215s
[success] 4.34%
tests.test_jobs.SchedulerJobTest.test_new_import_error_replaces_old: 98.7339s
[success] 3.63%
tests.test_jobs.SchedulerJobTest.test_remove_error_clears_import_error: 82.4062s
After setting the subdirectory and eliminating (I think) redundant scheduler
loops, the test time comes down to ~15 seconds.
> 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)