-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues causing gulp to choke #732
Conversation
The commit that ultimately fixed the build for me locally was addressing the listings with multiple root nodes - i.e., changing them from .xml to .txt. |
CI has failed:
This is puzzling, because when running unit and integration tests locally as described in the README, they all pass. Any ideas? |
The failing xqsuite test is here: https://github.com/eXist-db/documentation/blob/master/src/main/xar-resources/modules/test-suite.xql#L137-L157. Running this test locally returns the following output: <testcase name="Pro angular brackets" class="tests:no-ecaped-listings">
<failure message="assertEmpty failed." type="failure-error-code-1"/>
<output>fo-render.xml</output>
</testcase> So it looks like fo-render.xml contains instances of Wouldn't this make more sense to perform this check in Schematron, so that it's caught up front by @adamretter In #726 you committed a lot of files to the |
@joewiz the last changes to how integration tests are run locally are from #599 maybe @adamretter has an idea. The errors flagged by CI in the original PR are reported correctly, so they should never have passed running the tests locally.
this xqs test very likely predates the schema and schematron rules, so refactoring it to be part of one instead of the other is certainly an option. the basic idea that:
are both covered in the author guide. Both lead are due to problems with display and search. Unless we find a way to add a There should actually be another check to hunt for non-referenced listings, if they exist that's certainly another error. |
Actually the style guide says that using CDATA inline is ok. As that is no longer the case, we should update the style guide... |
I have realigned the All tests pass locally, including a manually-triggered XQSuite: <testsuite package="http://exist-db.org/xquery/documentation/tests"
timestamp="2022-01-13T14:46:04.241-05:00" tests="6" failures="0" errors="0" pending="1"
time="PT1.517S">
<testcase name="Listing consistency" class="tests:equal-listing"/>
<testcase name="section-headings" class="tests:missing-id"/>
<testcase name="Pro angular brackets" class="tests:no-ecaped-listings"/>
<testcase name="wellformed xml" class="tests:no-txt-xmls">
<pending/>
</testcase>
<testcase name="diagnose listings" class="tests:orphan-listing"/>
<testcase name="ToC rendering" class="tests:toc-inline"/>
</testsuite> Now we'll see if CI agrees... |
It does! :) |
@adamretter @duncdrum @dizzzz @line-o Thanks, guys! |
Closes #731.
I also spotted several of the files in the listings directory that aren't referenced in the article with
<programlisting>
, but my primary goal in this PR is to fix the build.It would be nice if the build process could catch such errors and flag which files are the cause of the error. These errors weren't caught by
mvn validate
. Onlymvn test
failed - and didn't tell us which file caused the problem.