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

airbnb / airflow / 7706 / 4
69%
master: 0%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Sep 2017 04:08PM UTC
Files 155
Run time 6s
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

16 Sep 2017 03:55PM UTC coverage: 67.842% (+0.004%) from 67.838%
TOX_ENV=py34-cdh-airflow_backend_mysql

push

travis-ci

Bolke de Bruin
<a href="https://github.com/airbnb/airflow/commit/<a class=hub.com/airbnb/airflow/commit/6069075a7523794f626148b99992687e56e447b8">6069075a7<a href="https://github.com/airbnb/airflow/commit/6069075a7523794f626148b99992687e56e447b8">&quot;&gt;[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(&amp;#39;regions&amp;#39;, [&amp;#39;uk&amp;#39;],
deserialize_json=True)
      File &amp;quot;/usr/local/lib/python3.5/site-
packages/airflow/models.py&amp;quot;, line 3623, in
setdefault
        return json.loads(obj.val)
    AttributeError: &amp;#39;str&amp;#39; object has no attribute
&amp;#39;val&amp;#39;

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

Closes #2540 from ashb/variable-setdefault-json

(cherry picked from commit </a><a class="double-link" href="https://github.com/airbnb/airflow/commit/<a class="double-link" href="https://github.com/airbnb/airflow/commit/610f68b22a8277f9521d0b9989b4dd5ce7cbcfe0">610f68b22</a>">610f68b22</a><a href="https://github.com/airbnb/airflow/commit/6069075a7523794f626148b99992687e56e447b8">)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>

7333 of 10809 relevant lines covered (67.84%)

0.68 hits per line

Source Files on job 7706.4 (TOX_ENV=py34-cdh-airflow_backend_mysql)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7706
  • Travis Job 7706.4
  • 6069075a on github
  • Prev Job for TOX_ENV=py34-cdh-airflow_backend_mysql on v1-8-test (#7195.4)
  • Next Job for TOX_ENV=py34-cdh-airflow_backend_mysql on v1-8-test (#7849.4)
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