Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26232

The console validation of functional tests fails on the environment debugging information of failing tests

    XMLWordPrintable

Details

    • Unknown

    Description

      When a test fails in the CI, FailingTestDebuggingTestExecutionListener (XWiki Commons) displays environment debugging information (processes, open ports, Docker containers, the Docker events of the last 15 minutes, etc.) in the console, between ---- Start of environment debugging information and ---- End of environment debugging information markers.

      CaptureConsoleExtension (XWiki Commons) skips this information, but the console validation of the functional tests (ValidateConsoleExtension / LogCaptureValidator) doesn't, so any error-looking content in it (e.g. a Docker exec command line containing WHENEVER SQLERROR EXIT FAILURE) adds a misleading executionError failure to the test class. See https://ci.xwiki.org/job/XWiki%20Environment%20Tests/job/xwiki-platform/job/stable-18.10.x/17/testReport/ (NestedWikiManagerRestIT and NestedTagIT).

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: