make doctest failed

Bug #1252543 reported by JunJie Nan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Liang Chen

Bug Description

cd doc; make doctest
sphinx-build -b doctest -d build/doctrees source build/doctest
Running Sphinx v1.1.3
Generating source documentation for heat
...
Excluded module heat.openstack.common.db.sqlalchemy.
loading pickled environment... done
Using openstack theme from /usr/local/lib/python2.7/dist-packages/oslo/sphinx/theme
building [doctest]: targets for 84 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] sourcecode/autoindex

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
running tests...

Document: sourcecode/heat/heat.engine.parser
--------------------------------------------
**********************************************************************
File "sourcecode/heat/heat.engine.parser.rst", line 13, in default
Failed example:
    template = Template(template_format.parse(template_str))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest default[2]>", line 1, in <module>
        template = Template(template_format.parse(template_str))
    NameError: name 'Template' is not defined
**********************************************************************
File "sourcecode/heat/heat.engine.parser.rst", line 14, in default
Failed example:
    parameters = Parameters('stack', template, {'KeyName': 'my_key'})
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest default[3]>", line 1, in <module>
        parameters = Parameters('stack', template, {'KeyName': 'my_key'})
    NameError: name 'Parameters' is not defined
**********************************************************************
File "sourcecode/heat/heat.engine.parser.rst", line 15, in default
Failed example:
    resolve_static_data(template, None, parameters, {'Ref': 'KeyName'})
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest default[4]>", line 1, in <module>
        resolve_static_data(template, None, parameters, {'Ref': 'KeyName'})
    NameError: name 'resolve_static_data' is not defined
**********************************************************************
1 items had failures:
   3 of 5 in default
5 tests in 1 items.
2 passed and 3 failed.
***Test Failed*** 3 failures.

Doctest summary
===============
    5 tests
    3 failures in tests
    0 failures in setup code
    0 failures in cleanup code
build finished with problems.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I don't see any doctests in Heat's documentation, so can you explain why you think this might be relevant?

Changed in heat:
status: New → Incomplete
importance: Undecided → Medium
Liang Chen (cbjchen)
Changed in heat:
assignee: nobody → Liang Chen (cbjchen)
Revision history for this message
Liang Chen (cbjchen) wrote :

Just found some in parser.resolve_static_data.

I think Junjie hit this issue while working on https://review.openstack.org/#/c/57082/ .

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/57101

Changed in heat:
status: Incomplete → In Progress
Revision history for this message
Liang Chen (cbjchen) wrote :

The issue has gone with the removal of the original resolve_static_data function.

JunJie Nan (nanjj)
Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.