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

airbnb / airflow / 7704
0%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2017 03:56PM UTC
Jobs 6
Files 167
Run time 6min
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
7704

push

travis-ci

Bolke de Bruin
[AIRFLOW-1177] Fix Variable.setdefault w/existing JSON

Previously due to a logic error if you attempt to
use
`Variable.setdefault()` with
`deserialize_json=True` and the value
already existed it would die with:

    ...
        my = Variable.setdefault('regions', ['uk'],
deserialize_json=True)
      File "/usr/local/lib/python3.5/site-
packages/airflow/models.py", line 3623, in
setdefault
        return json.loads(obj.val)
    AttributeError: 'str' object has no attribute
'val'

The problem was that the `Variable.get()` call was
returning the value,
not a variable object.

Closes #2540 from ashb/variable-setdefault-json

8223 of 11630 relevant lines covered (70.71%)

4.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7704.1 (TOX_ENV=py27-cdh-airflow_backend_mysql) 16 Sep 2017 04:00PM UTC 0
70.38
Travis Job 7704.1
2 7704.2 (TOX_ENV=py27-cdh-airflow_backend_sqlite) 16 Sep 2017 03:57PM UTC 0
70.31
Travis Job 7704.2
3 7704.3 (TOX_ENV=py27-cdh-airflow_backend_postgres) 16 Sep 2017 04:01PM UTC 0
70.4
Travis Job 7704.3
4 7704.4 (TOX_ENV=py34-cdh-airflow_backend_mysql) 16 Sep 2017 04:01PM UTC 0
69.99
Travis Job 7704.4
5 7704.5 (TOX_ENV=py34-cdh-airflow_backend_sqlite) 16 Sep 2017 03:56PM UTC 0
69.93
Travis Job 7704.5
6 7704.6 (TOX_ENV=py34-cdh-airflow_backend_postgres) 16 Sep 2017 04:03PM UTC 0
70.01
Travis Job 7704.6
Source Files on build 7704
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7704
  • 610f68b2 on github
  • Prev Build on master (#7701)
  • Next Build on master (#7707)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc