chihyu0917 commented on PR #1017:
URL: https://github.com/apache/maven-doxia/pull/1017#issuecomment-3590475616

   `mvn verify` or `mvn test` passes because it runs with a deterministic 
order. I used `NonDex`, a maven tool to shuffle in random seed to find bugs in 
non-deterministic order. It failed in seed=933178, 974622. Also, I provided the 
error message in this thread. Likely cause: iteration over HTML table children 
(or attributes) that relies on unspecified order, so NonDex shuffling exposes 
it. Some renderers also emit intermittent whitespace as text and <tbody> 
markers as unknown, which changes the event stream around tableRows.
   My env: 
   Apache Maven 3.8.7
   Maven home: /usr/share/maven
   Java version: 1.8.0_472, vendor: Private Build, runtime: 
/usr/lib/jvm/java-8-openjdk-amd64/jre
   Default locale: en, platform encoding: UTF-8
   OS name: "linux", version: "6.8.0-88-generic", arch: "amd64", family: "unix"
   
   ```
   org.apache.maven.doxia.module.markdown.MarkdownParserTest.testHtmlContent -- 
Time elapsed: 0.850 s <<< FAILURE!
   org.opentest4j.AssertionFailedError: 
   expected: <head
   head_
   body
   division
   text
   paragraph
   inline
   text
   inline_
   text
   inline
   text
   inline_
   text
   paragraph_
   text
   division_
   text
   horizontalRule
   section1
   sectionTitle1
   text
   sectionTitle1_
   paragraph
   text
   paragraph_
   text
   table
   tableRows
   text
   unknown
   tableRow
   tableHeaderCell
   text
   tableHeaderCell_
   tableRow_
   text
   tableRow
   tableCell
   text
   tableCell_
   tableRow_
   text
   unknown
   tableRows_
   table_
   text
   section1_
   body_
   > but was: <head
   head_
   body
   division
   text
   paragraph
   inline
   text
   inline_
   text
   inline
   text
   inline_
   text
   paragraph_
   text
   division_
   text
   horizontalRule
   section1
   sectionTitle1
   text
   sectionTitle1_
   paragraph
   text
   paragraph_
   text
   table
   tableRows
   unknown
   tableRow
   tableHeaderCell
   text
   tableHeaderCell_
   tableRow_
   tableRow
   tableCell
   text
   tableCell_
   tableRow_
   unknown
   tableRows_
   table_
   section1_
   body_
   >
        at 
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
        at 
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
        at 
org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
        at 
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
        at 
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
        at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
        at 
org.apache.maven.doxia.parser.AbstractParserTest.assertSinkEquals(AbstractParserTest.java:305)
        at 
org.apache.maven.doxia.module.markdown.MarkdownParserTest.testHtmlContent(MarkdownParserTest.java:599)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to