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

airbnb / airflow / 7706
69%
master: 0%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Sep 2017 03:55PM UTC
Jobs 6
Files 155
Run time 14min
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
7706

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>

2 of 2 new or added lines in 1 file covered. (100.0%)

7420 of 10809 relevant lines covered (68.65%)

4.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7706.1 (TOX_ENV=py27-cdh-airflow_backend_mysql) 16 Sep 2017 03:59PM UTC 0
68.22
Travis Job 7706.1
2 7706.2 (TOX_ENV=py27-cdh-airflow_backend_sqlite) 16 Sep 2017 03:55PM UTC 0
68.41
Travis Job 7706.2
3 7706.3 (TOX_ENV=py27-cdh-airflow_backend_postgres) 16 Sep 2017 04:01PM UTC 0
68.27
Travis Job 7706.3
4 7706.4 (TOX_ENV=py34-cdh-airflow_backend_mysql) 16 Sep 2017 04:08PM UTC 0
67.84
Travis Job 7706.4
5 7706.5 (TOX_ENV=py34-cdh-airflow_backend_sqlite) 16 Sep 2017 04:01PM UTC 0
68.01
Travis Job 7706.5
6 7706.6 (TOX_ENV=py34-cdh-airflow_backend_postgres) 16 Sep 2017 04:10PM UTC 0
67.92
Travis Job 7706.6
Source Files on build 7706
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7706
  • 6069075a on github
  • Prev Build on v1-8-test (#7195)
  • Next Build on v1-8-test (#7849)
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