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

airbnb / airflow / 8376
0%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2017 06:16PM UTC
Jobs 5
Files 173
Run time 11min
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
8376

push

travis-ci

Bolke de Bruin
[AIRFLOW-387] Close SQLAlchemy sessions properly

This commit adopts the `provide_session` helper in
almost the entire
codebase. This ensures session are handled and
closed consistently.
In particular, this ensures we don't forget to
close and thus leak
database connections.

As an additional change, the `provide_session`
helper has been extended
to also rollback and close created connections
under error conditions.

As an additional helper, this commit also
introduces a contextmanager
that provides the same functionality as the
`provide_session`
decorator. This is helpful in cases where the
scope of a session should
be smaller than the entire method where it is
being used.

Closes #2739 from StephanErb/session_close

8683 of 11874 relevant lines covered (73.13%)

3.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8376.1 (TOX_ENV=py27-cdh-airflow_backend_mysql) 02 Nov 2017 06:27PM UTC 0
72.81
Travis Job 8376.1
2 8376.2 (TOX_ENV=py27-cdh-airflow_backend_sqlite) 02 Nov 2017 06:16PM UTC 0
72.78
Travis Job 8376.2
3 8376.3 (TOX_ENV=py27-cdh-airflow_backend_postgres) 02 Nov 2017 06:24PM UTC 0
72.83
Travis Job 8376.3
4 8376.4 (TOX_ENV=py34-cdh-airflow_backend_mysql) 02 Nov 2017 06:24PM UTC 0
72.44
Travis Job 8376.4
5 8376.5 (TOX_ENV=py34-cdh-airflow_backend_sqlite) 02 Nov 2017 06:19PM UTC 0
72.41
Travis Job 8376.5
Source Files on build 8376
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8376
  • 77652784 on github
  • Prev Build on master (#8374)
  • Next Build on master (#8377)
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