Assertion failed while buildign manpages
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter. So perhaps somebody has hints to fix this.
--WjW
Build output:
Running Sphinx v1.4.8
Exception occurred:
File "conf.py", line 27, in _get_description
AssertionError
The full traceback has been saved in /tmp/sphinx-err-_Gk2q9.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! gmake[2]: *** [doc/man/CMakeFiles/manpages.dir/build.make:137: doc/man/ceph-syn.8] Error 1
The log file looks like:
# Sphinx version: 1.4.8
# Python version: 2.7.14 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line
243, in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py",
line 137, in __init__
confoverrides or {}, self.tags)
File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line
287, in __init__
execfile_(filename, config)
File
"/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py", line 130, in execfile_
exec_(code, _globals)
File "/usr/local/lib/python2.7/site-packages/six.py", line 709, in exec_
exec("""exec _code_ in _globs_, _locs_""") File "<string>", line 1, in <module>
File "conf.py", line 56, in <module>
File "conf.py", line 47, in _get_manpages
File "conf.py", line 27, in _get_description
AssertionError
And the relevant piece of code:
def _get_description(fname, base):
with open(fname) as f:
one = None
while True:
line = f.readline().rstrip('\n')
if not line:
continue
if line.startswith(':') and line.endswith(':'):
continue
one = line
break
two = f.readline().rstrip('\n')
three = f.readline().rstrip('\n')
assert one == three
assert all(c=='=' for c in one)
name, description = two.split('--', 1)line 27: assert name.strip() == base
return description.strip()
Quoted 5 lines · Willem Jan Withagen
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter.
So perhaps somebody has hints to fix this.
This looks pretty obscure, but the one thing I see different is that you are using a version of Sphinx that we don't
We are pinned to 1.6.3 currently.
The ceph-syn man page hasn't changed in a while, so maybe try bumping Sphinx?
Quoted 71 lines
--WjW
Build output:
Running Sphinx v1.4.8Exception occurred:
File "conf.py", line 27, in_get_description
AssertionError
The full traceback has been saved in/tmp/sphinx-err-_Gk2q9.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks!
gmake[2]: *** [doc/man/CMakeFiles/manpages.dir/build.make:137:
doc/man/ceph-syn.8] Error 1The log file looks like:
# Sphinx version: 1.4.8
# Python version: 2.7.14 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:# Loaded extensions:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 243,
in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line
137, in__init__
confoverrides or {}, self.tags)
File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line 287,
in__init__
execfile_(filename, config)
File "/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py",
line 130, inexecfile_
exec_(code, _globals)
File "/usr/local/lib/python2.7/site-packages/six.py", line 709, inexec_exec("""exec _code_ in _globs_, _locs_""")File "<string>", line 1, in <module>
File "conf.py", line 56, in <module>
File "conf.py", line 47, in_get_manpages
File "conf.py", line 27, in_get_description
AssertionErrorAnd the relevant piece of code:
def_get_description(fname, base):with open(fname) as f: one = None while True: line = f.readline().rstrip('\n') if not line: continue if line.startswith(':') and line.endswith(':'): continue one = line break two = f.readline().rstrip('\n') three = f.readline().rstrip('\n') assert one == three assert all(c=='=' for c in one) name, description = two.split('--', 1)line 27: assert
name.strip()== base
returndescription.strip()
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Alfredo Deza
Quoted 5 lines · Willem Jan Withagen
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter.
So perhaps somebody has hints to fix this.This looks pretty obscure, but the one thing I see different is that you are using a version of Sphinx that we don't
We are pinned to 1.6.3 currently.
Auch, that is way much further in life....
Quoted 1 line
The ceph-syn man page hasn't changed in a while, so maybe try bumping Sphinx?
I did try to upgrade to the most recent FreeBSD package, but that got me 1.4.8.2 versus 1.4.8.1. So that was not much to gain.
But then it would be much easier if I can keep it in sync with FreeBSD packages, versus brewing my own. Even more so when I want to start building Ceph as a FreeBSD package.
Weird thing is that it worked oke, until this mornings build. :( And most of the stuff needed for building the man-page has not changed either.
I guess I'll have to start disecting things.
--WjW
Quoted 71 lines
Quoted 71 lines
--WjW
Build output:
Running Sphinx v1.4.8Exception occurred:
File "conf.py", line 27, in_get_description
AssertionError
The full traceback has been saved in/tmp/sphinx-err-_Gk2q9.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks!
gmake[2]: *** [doc/man/CMakeFiles/manpages.dir/build.make:137:
doc/man/ceph-syn.8] Error 1The log file looks like:
# Sphinx version: 1.4.8
# Python version: 2.7.14 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:# Loaded extensions:
Traceback (most recent call last):File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 243,in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line
137, in__init__
confoverrides or {}, self.tags)
File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line 287,
in__init__
execfile_(filename, config)
File "/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py",
line 130, inexecfile_
exec_(code, _globals)
File "/usr/local/lib/python2.7/site-packages/six.py", line 709, inexec_exec("""exec _code_ in _globs_, _locs_""")File "<string>", line 1, in <module>
File "conf.py", line 56, in <module>
File "conf.py", line 47, in_get_manpages
File "conf.py", line 27, in_get_description
AssertionErrorAnd the relevant piece of code:
def_get_description(fname, base):with open(fname) as f: one = None while True: line = f.readline().rstrip('\n') if not line: continue if line.startswith(':') and line.endswith(':'): continue one = line break two = f.readline().rstrip('\n') three = f.readline().rstrip('\n') assert one == three assert all(c=='=' for c in one) name, description = two.split('--', 1)line 27: assert
name.strip()== base
returndescription.strip()
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Alfredo Deza
Quoted 5 lines · Willem Jan Withagen
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter.
So perhaps somebody has hints to fix this.
Quoted 6 lines
This looks pretty obscure, but the one thing I see different is that you are using a version of Sphinx that we don't
We are pinned to 1.6.3 currently.
The ceph-syn man page hasn't changed in a while, so maybe try bumping Sphinx?
I pinged the port-owner, and he is working on an update. But since lots of packages depend on sphinx for the man-pages, other things need to be fixed as well since it breaks building lots of other stuff.
But it is the works, so for now I'll run Jenkins without building the manpages.
--WjW
Quoted 72 lines
Quoted 72 lines
--WjW
Build output:
Running Sphinx v1.4.8Exception occurred:
File "conf.py", line 27, in_get_description
AssertionError
The full traceback has been saved in/tmp/sphinx-err-_Gk2q9.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks!
gmake[2]: *** [doc/man/CMakeFiles/manpages.dir/build.make:137:
doc/man/ceph-syn.8] Error 1The log file looks like:
# Sphinx version: 1.4.8
# Python version: 2.7.14 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:# Loaded extensions:
Traceback (most recent call last):File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 243,in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line
137, in__init__
confoverrides or {}, self.tags)
File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line 287,
in__init__
execfile_(filename, config)
File "/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py",
line 130, inexecfile_
exec_(code, _globals)
File "/usr/local/lib/python2.7/site-packages/six.py", line 709, inexec_exec("""exec _code_ in _globs_, _locs_""")File "<string>", line 1, in <module>
File "conf.py", line 56, in <module>
File "conf.py", line 47, in_get_manpages
File "conf.py", line 27, in_get_description
AssertionErrorAnd the relevant piece of code:
def_get_description(fname, base):with open(fname) as f: one = None while True: line = f.readline().rstrip('\n') if not line: continue if line.startswith(':') and line.endswith(':'): continue one = line break two = f.readline().rstrip('\n') three = f.readline().rstrip('\n') assert one == three assert all(c=='=' for c in one) name, description = two.split('--', 1)line 27: assert
name.strip()== base
returndescription.strip()
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 21 lines · Willem Jan Withagen
Quoted 11 lines · Alfredo Deza
Quoted 6 lines · Willem Jan Withagen
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter.
So perhaps somebody has hints to fix this.Quoted 7 lines
This looks pretty obscure, but the one thing I see different is that you are using a version of Sphinx that we don't
We are pinned to 1.6.3 currently.
The ceph-syn man page hasn't changed in a while, so maybe try bumping Sphinx?
Quoted 6 lines
I pinged the port-owner, and he is working on an update. But since lots of packages depend on sphinx for the man-pages, other things need to be fixed as well since it breaks building lots of other stuff.
But it is the works, so for now I'll run Jenkins without building the manpages.
This turned out to be a problem introduced by my change updating the title on ceph-disk's man page:
https://github.com/ceph/ceph/pull/19241/commits/bd00560c20caeeb1ded211cb81533280338014d1
This has since been reverted with
https://github.com/ceph/ceph/pull/19325 and all builds are now passing
Plain asserts in Python aren't a good way to report errors, so it was very difficult to identify what made this break.
Sorry for the misleading hint on version disparity there!
Quoted 83 lines
--WjW
Quoted 77 lines
Quoted 77 lines
--WjW
Build output:
Running Sphinx v1.4.8Exception occurred:
File "conf.py", line 27, in_get_description
AssertionError
The full traceback has been saved in/tmp/sphinx-err-_Gk2q9.log, if you want
to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks! gmake[2]: *** [doc/man/CMakeFiles/manpages.dir/build.make:137:
doc/man/ceph-syn.8] Error 1The log file looks like:
# Sphinx version: 1.4.8
# Python version: 2.7.14 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:# Loaded extensions:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line
243,
in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py",
line
137, in__init__
confoverrides or {}, self.tags)
File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line
287,
in__init__
execfile_(filename, config)
File "/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py",
line 130, inexecfile_
exec_(code, _globals)
File "/usr/local/lib/python2.7/site-packages/six.py", line 709, inexec_exec("""exec _code_ in _globs_, _locs_""")File "<string>", line 1, in <module>
File "conf.py", line 56, in <module>
File "conf.py", line 47, in_get_manpages
File "conf.py", line 27, in_get_description
AssertionErrorAnd the relevant piece of code:
def_get_description(fname, base):with open(fname) as f: one = None while True: line = f.readline().rstrip('\n') if not line: continue if line.startswith(':') and line.endswith(':'): continue one = line break two = f.readline().rstrip('\n') three = f.readline().rstrip('\n') assert one == three assert all(c=='=' for c in one) name, description = two.split('--', 1)line 27: assert
name.strip()== base
returndescription.strip()
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 32 lines · Alfredo Deza
Quoted 21 lines · Willem Jan Withagen
Quoted 11 lines · Alfredo Deza
Quoted 6 lines · Willem Jan Withagen
Hi
My FreeBSD-Jenkins complains about a failed assertion, but I'm blissfully ignorant in this matter.
So perhaps somebody has hints to fix this.Quoted 7 lines
This looks pretty obscure, but the one thing I see different is that you are using a version of Sphinx that we don't
We are pinned to 1.6.3 currently.
The ceph-syn man page hasn't changed in a while, so maybe try bumping Sphinx?
Quoted 6 lines
I pinged the port-owner, and he is working on an update. But since lots of packages depend on sphinx for the man-pages, other things need to be fixed as well since it breaks building lots of other stuff.
But it is the works, so for now I'll run Jenkins without building the manpages.
This turned out to be a problem introduced by my change updating the title on ceph-disk's man page:
Quoted 7 lines
https://github.com/ceph/ceph/pull/19241/commits/bd00560c20caeeb1ded211cb81533280338014d1
This has since been reverted with
https://github.com/ceph/ceph/pull/19325 and all builds are now passingPlain asserts in Python aren't a good way to report errors, so it was very difficult to identify what made this break.
Hi Alfredo,
Right, I'll enable manapages again. And we'll see in the next build.
Thanx for the update,
--WjW
Quoted 8 lines · Willem Jan Withagen
Quoted 8 lines
This turned out to be a problem introduced by my change updating the title on ceph-disk's man page:
https://github.com/ceph/ceph/pull/19241/commits/bd00560c20caeeb1ded211cb81533280338014d1
This has since been reverted with
https://github.com/ceph/ceph/pull/19325 and all builds are now passing
Quoted 6 lines
Quoted 2 lines
Plain asserts in Python aren't a good way to report errors, so it was very difficult to identify what made this break.
Hi Alfredo,
Right, I'll enable manapages again. And we'll see in the next build.
Building is back to normal.
--WjW