metanorma / mnconvert-ruby

Ruby gem wrapper for mnconvert
2 stars 0 forks source link

(URGENT) Failed action in tag_repo step #17

Closed ronaldtse closed 1 year ago

ronaldtse commented 1 year ago

Looks like the release action failed at: https://github.com/metanorma/mnconvert-ruby/actions/runs/3981275258

@CAMOBAP can you have a look? Thanks.

Intelligent2013 commented 1 year ago

This issue occurs due validation errors:

Validate XML against DTD /home/runner/work/mnconvert-ruby/mnconvert-ruby/spec/../ieee/stl/standards-1-7-DTD/standards-1-7-dtd/standards.dtd...
       /tmp/rspec-20230123-1830-1cv3nth/p9[87](https://github.com/metanorma/mnconvert-ruby/actions/runs/3981275258/jobs/6839732837#step:10:88).6.xml is NOT valid reason:
Error: [ERROR] org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 47; Attribute "xmlns:tbx" must be declared for element type "front".
Error: [ERROR] org.xml.sax.SAXParseException; lineNumber: 828; columnNumber: 46; Attribute "xmlns:tbx" must be declared for element type "body".
Error: [ERROR] org.xml.sax.SAXParseException; lineNumber: 1621; columnNumber: 46; Attribute "xmlns:tbx" must be declared for element type "back".

I'll fix it.

CAMOBAP commented 1 year ago

@Intelligent2013 I have tried to reproduce it locally, but all tests passed, maybe I missing something?

Intelligent2013 commented 1 year ago

@CAMOBAP I've downloaded artifact ieee-test-input from page https://github.com/metanorma/mnconvert-ruby/actions/runs/3981275258 and tried to run mnconvert on xml from .zip - the error occurs. In progress...

Intelligent2013 commented 1 year ago

Strange namespaces in the resulted XML:

<front xmlns:tbx="urn:iso:std:iso:30042:ed-1">
...
<body xmlns:tbx="urn:iso:std:iso:30042:ed-1">
...
<back xmlns:tbx="urn:iso:std:iso:30042:ed-1">

Will investigate.

Intelligent2013 commented 1 year ago

Fixed: https://github.com/metanorma/mnconvert-ruby/actions/runs/3990590111