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

test_get_file_writer() failures when running filtered tests

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Lyons
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: