[tei-council] Build errors locally, but not on Jenkins
Martin Holmes
mholmes at uvic.ca
Tue Apr 19 22:57:52 EDT 2011
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
More information about the tei-council
mailing list