Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70519

test_get_file_writer() failures when running filtered tests

XMLWordPrintable

    • 2

      This failure has been detected running PHPUnit under Windows (where we run multiple, filtered instances in parallel). But is also reproducible under unix (mac):

      $ vendor/bin/phpunit --filter '/::test_[g]/' --stop-on-failure
       
      Moodle 4.0dev (Build: 20201217), 4ec279a2f063ae890804126e4886f87fe83b5cea
      Php: 7.4.13, pgsql: 9.6.20, OS: Darwin 20.2.0 x86_64
      PHPUnit 8.5.8 by Sebastian Bergmann and contributors.
       
      .............................................................   61 / 2724 (  2%)
      .............................................................  122 / 2724 (  4%)
      .............................................................  183 / 2724 (  6%)
      .............................................................  244 / 2724 (  8%)
      .............................................................  305 / 2724 ( 11%)
      .............................................................  366 / 2724 ( 13%)
      .............................................................  427 / 2724 ( 15%)
      .............................................................  488 / 2724 ( 17%)
      .............................................................  549 / 2724 ( 20%)
      .............................................................  610 / 2724 ( 22%)
      ....................................E
       
      Time: 56.76 seconds, Memory: 522.00 MB
       
      There was 1 error:
       
      1) core_files\archive_writer_testcase::test_get_file_writer
      Warning: unexpected database modification, resetting DB state
       
      /Users/stronk7/git_moodle/moodle/lib/phpunit/classes/util.php:297
      /Users/stronk7/git_moodle/moodle/lib/phpunit/classes/advanced_testcase.php:534
      /Users/stronk7/git_moodle/moodle/lib/phpunit/classes/advanced_testcase.php:132
       
      ERRORS!
      Tests: 647, Assertions: 12990, Errors: 1.
      

      Happens both with 311_STABLE and master.

      That test was introduced by MDL-68533 so it may be (or may be not) the cause of the problem.

      Ciao

            dobedobedoh Andrew Lyons
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            2 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.