[tei-council] Build errors locally, but not on Jenkins
Martin Holmes
mholmes at uvic.ca
Tue Apr 26 11:11:34 EDT 2011
Hi Sebastian,
Did an update and a test build this morning, and although the problem
with testmeta_new3 is fixed, there's now a problem with the subsequent
test, new4:
Process testmeta2010.odd to create
testmeta2010_new4{.dtd|.xsd|.doc.xml|.rng|.rnc} in .
========= Roma starts execution at 2011-04-26 08:06:54.782804595 ===========
using /home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/../p5subset.xml
as default source
1. expand and simplify ODD
2. make RELAX NG from compiled ODD
3. make RELAX NG compact from XML
9. extract Schematron from compiled ODD
========= 2011-04-26 08:07:02.278719535 Roma ends
Now validating instances documents against testmeta2010_new4 schema
Validate using Jing for RelaxNG...
/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/testmeta2010.xml:18:27:
error: attribute "n" not allowed here; expected attribute "decls",
"org", "part", "sample" or "subtype"
/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/testmeta2010.xml:18:27:
error: attribute "rend" not allowed here; expected attribute "decls",
"org", "part", "sample" or "subtype"
/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/testmeta2010.xml:20:24:
error: attribute "xml:id" not allowed here; expected attribute "decls"
/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/testmeta2010.xml:21:38:
error: attribute "xml:id" not allowed here; expected attribute "decls"
/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test/testmeta2010.xml:21:38:
error: attribute "xml:lang" not allowed here; expected attribute "decls"
Elapsed time 299+47=346 milliseconds
Validate using RNV....
stdin:18:6: error: attribute ^n not allowed
required:
after
allowed:
element http://www.tei-c.org/ns/1.0^head
element http://www.tei-c.org/ns/1.0^div
element http://www.tei-c.org/ns/1.0^p
element http://www.tei-c.org/ns/1.0^label
element http://www.tei-c.org/ns/1.0^list
attribute ^org
attribute ^sample
attribute ^part
attribute ^subtype
attribute ^decls
stdin:20:8: error: attribute http://www.w3.org/XML/1998/namespace^id not
allowed
required:
after
allowed:
text
element http://www.tei-c.org/ns/1.0^hi
element http://www.tei-c.org/ns/1.0^title
element http://www.tei-c.org/ns/1.0^label
element http://www.tei-c.org/ns/1.0^list
attribute ^decls
stdin:21:8: error: attribute http://www.w3.org/XML/1998/namespace^id not
allowed
required:
after
allowed:
text
element http://www.tei-c.org/ns/1.0^hi
element http://www.tei-c.org/ns/1.0^title
element http://www.tei-c.org/ns/1.0^label
element http://www.tei-c.org/ns/1.0^list
attribute ^decls
error: invalid input
make[1]: *** [testmeta2010] Error 1
make[1]: Leaving directory
`/home/mholmes/WorkData/tei/sf_repo/trunk/P5/Test'
make: *** [test] Error 2
mholmes at spudbuntu:~/WorkData/tei/sf_repo/trunk/P5$
Cheers,
Martin
On 11-04-19 07:57 PM, Martin Holmes wrote:
> Hi Sebastian,
>
> Not intending to ruin your holiday -- just writing while this is fresh
> in my mind, so you can get to it when you come back:
>
> I'm still seeing build errors in the P5 tests on two different local
> installs of TEI, where the same errors do not occur on Jenkins, but I
> think I might have a clue about them. The last block of console output
> is reproduced at the end, but I think these are the key lines:
>
>
> using /home/mholmes/tei/trunk/P5/Test/../p5subset.xml as default source
> ...
> Error: odd2odd.xsl: Source /usr/share/xml/tei/odd/p5subset.xml not readable
>
> Now, it looks as though it's intending to use
> /home/mholmes/tei/trunk/P5/p5subset.xml, but it actually then tries to
> read /usr/share/xml/tei/odd/p5subset.xml. On my machines,
> /usr/share/xml/tei/odd/ (the entire folder) does not exist; there's only
> "custom",m "schema" and "stylesheet".
>
> Jenkins reports this:
>
> Process testmeta2010.odd to create
> testmeta2010_new3{.dtd|.xsd|.doc.xml|.rng|.rnc} in .
> ========= Roma starts execution at 2011-04-19 22:59:50.277757529 ===========
> using /srv/hudson/jobs/TEIP5-Test/workspace/Test/../p5subset.xml as
> default source
>
> However, the subsequent fail does not happen, presumably because EITHER
> it's actually using what it says it's going to use, OR because when it
> tries to use /usr/share/xml/tei/odd/p5subset.xml, it actually finds it.
>
> When I look inside trunk/P5/Test/testmeta2010.odd, I think I find the
> culprit:
>
> <p>The schema build using defaults</p>
> <schemaSpec ident="testmeta2010_new3" start="TEI">
> <moduleRef key="tei"/>
> <moduleRef key="figures" except="table row cell"
> source="/usr/share/xml/tei/odd/p5subset.xml"/>
> <specGrpRef target="#Include"/>
> <specGrpRef target="#Changes"/>
> </schemaSpec>
>
> <p>The schema build using local fixed reference</p>
> <schemaSpec ident="testmeta2010_new4" start="TEI"
> source="/usr/share/xml/tei/odd/p5subset.xml">
> <moduleRef key="tei"/>
> <specGrpRef target="#Include"/>
> <specGrpRef target="#Changes"/>
> </schemaSpec>
>
> These<schemaSpec> elements appear to have hard-coded paths to the
> source p5subset.xml file, but of course it's not there on my computers.
> I'm not sure whether this is because something went wrong with my
> teiDebian install, but in any case, I would have thought that the build
> should use the newly-built p5subset.xml file in my source tree, as it
> says it's going to.
>
> Apologies if I'm missing something obvious here, and I certainly don't
> know how to fix it -- other .odd files in the Test directory don't seem
> to work the same way exactly -- but if the fix is obvious and you tell
> me what it is, then I can make it and test it on my machines before
> committing it.
>
>
> LAST SECTION OF OUTPUT FROM make:
>
> found schemaSpec testmeta2010_new3 in testmeta2010
> ========= Roma starts at 2011-04-19 19:36:01 ===========
> TEI stylesheet tree: /usr/share/xml/tei/stylesheet
> Results to: .
> Process testmeta2010.odd to create
> testmeta2010_new3{.dtd|.xsd|.doc.xml|.rng|.rnc} in .
> ========= Roma starts execution at 2011-04-19 19:36:01.663331920 ===========
> using /home/mholmes/tei/trunk/P5/Test/../p5subset.xml as default source
> 1. expand and simplify ODD
> Error: odd2odd.xsl: Source /usr/share/xml/tei/odd/p5subset.xml not readable
> Processing terminated by xsl:message at line 2264 in odd2odd.xsl
>
>
> ERROR: odd2odd process failed.
> This was a fatal error. 2011-04-19 19:36:04
> Now validating instances documents against testmeta2010_new3 schema
> Validate using Jing for RelaxNG...
> fatal: file not found:
> /home/mholmes/tei/trunk/P5/Test/testmeta2010_new3.rng (No such file or
> directory)
> Elapsed time 36+0=36 milliseconds
> Validate using RNV....
> testmeta2010_new3.rnc:-1:-1: error: I/O error: No such file or directory
>
> found schemaSpec testmeta2010_new4 in testmeta2010
> ========= Roma starts at 2011-04-19 19:36:04 ===========
> TEI stylesheet tree: /usr/share/xml/tei/stylesheet
> Results to: .
> Process testmeta2010.odd to create
> testmeta2010_new4{.dtd|.xsd|.doc.xml|.rng|.rnc} in .
> ========= Roma starts execution at 2011-04-19 19:36:04.792428988 ===========
> using /home/mholmes/tei/trunk/P5/Test/../p5subset.xml as default source
> 1. expand and simplify ODD
> Error: odd2odd.xsl: Source /usr/share/xml/tei/odd/p5subset.xml not readable
> Processing terminated by xsl:message at line 2264 in odd2odd.xsl
>
>
> ERROR: odd2odd process failed.
> This was a fatal error. 2011-04-19 19:36:06
> Now validating instances documents against testmeta2010_new4 schema
> Validate using Jing for RelaxNG...
> fatal: file not found:
> /home/mholmes/tei/trunk/P5/Test/testmeta2010_new4.rng (No such file or
> directory)
> Elapsed time 36+0=36 milliseconds
> Validate using RNV....
> testmeta2010_new4.rnc:-1:-1: error: I/O error: No such file or directory
>
> make[1]: *** [testmeta2010] Error 1
> make[1]: Leaving directory `/home/mholmes/tei/trunk/P5/Test'
> make: *** [test] Error 2
> mholmes at linux-2009:~/tei/trunk/P5$
>
>
> Cheers,
> Martin
> _______________________________________________
> tei-council mailing list
> tei-council at lists.village.Virginia.EDU
> http://lists.village.Virginia.EDU/mailman/listinfo/tei-council
>
> PLEASE NOTE: postings to this list are publicly archived
> .
>
--
Martin Holmes
University of Victoria Humanities Computing and Media Centre
(mholmes at uvic.ca)
More information about the tei-council
mailing list