• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

airbnb / airflow / 9017
0%

Build:
DEFAULT BRANCH: master
Ran 19 Dec 2017 08:23PM UTC
Jobs 6
Files 177
Run time 13min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9017

push

travis-ci

Bolke de Bruin
[AIRFLOW-1916] Don't upload logs to remote from `run --raw`

In a previous change we removed the
airflow.task.raw handler (which
printed to stdout directly) and replaced it with
one that wrote to the
log file itself. The problem comes that python
automatically calls
`logging.shutdown()` itself on process clean exit.
This ended up
uploading the log file twice: once from the end of
`airflow run --raw`,
and then again from the explicit shutdown() call
at the end of cli's
`run()`

Since logging is automatically shutdown this
change adds and explicit
flag to control if the GC and S3 handlers should
upload the file or not,
and we tell them not to when running with `--raw`

Closes #2880 from ashb/AIRFLOW-1916-dont-upload-
logs-twice

12 of 12 new or added lines in 4 files covered. (100.0%)

8932 of 12187 relevant lines covered (73.29%)

4.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
100.0
airflow/utils/log/gcs_task_handler.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
airflow/executors/base_executor.py
1
100.0
airflow/task_runner/bash_task_runner.py
2
100.0
airflow/hooks/base_hook.py
2
100.0
airflow/utils/log/logging_mixin.py
4
100.0
airflow/config_templates/default_celery.py
5
100.0
airflow/utils/helpers.py
8
100.0
airflow/utils/log/file_task_handler.py
11
100.0
airflow/hooks/dbapi_hook.py
15
100.0
airflow/utils/log/gcs_task_handler.py
17
100.0
airflow/task_runner/base_task_runner.py
22
100.0
airflow/executors/dask_executor.py
27
100.0
airflow/configuration.py
55
100.0
airflow/utils/db.py
104
100.0
airflow/jobs.py
121
100.0
airflow/bin/cli.py
197
100.0
airflow/models.py
Jobs
ID Job ID Ran Files Coverage
1 9017.1 (TOX_ENV=py27-backend_mysql) 19 Dec 2017 08:26PM UTC 0
72.96
Travis Job 9017.1
2 9017.2 (TOX_ENV=py27-backend_sqlite) 19 Dec 2017 08:23PM UTC 0
73.13
Travis Job 9017.2
3 9017.3 (TOX_ENV=py27-backend_postgres) 19 Dec 2017 08:31PM UTC 0
73.0
Travis Job 9017.3
4 9017.4 (TOX_ENV=py35-backend_mysql) 19 Dec 2017 08:27PM UTC 0
72.88
Travis Job 9017.4
5 9017.5 (TOX_ENV=py35-backend_sqlite) 19 Dec 2017 08:24PM UTC 0
73.05
Travis Job 9017.5
6 9017.6 (TOX_ENV=py35-backend_postgres) 19 Dec 2017 08:36PM UTC 0
72.91
Travis Job 9017.6
Source Files on build 9017
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9017
  • 4ce4faae on github
  • Prev Build on master (#416)
  • Next Build on master (#9018)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc