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

Random failures with some calendar unit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.1.4, 3.2.1, 3.3
    • Unit tests
    • MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE

      It seems that these 2 tests:

      • core_calendar_rrule_manager_testcase::test_monthly_events
      • core_calendar_rrule_manager_testcase::test_yearly_events

      Are failing consistently everywhere right now (AU Feb 1st 2017 - 00:55 / EU Jan 31th - 17:55). Some hours ago they weren't. Reproducible in CIs, also nightly and locally, all them around the same time:

      $ vendor/bin/phpunit core_calendar_rrule_manager_testcase calendar/tests/rrule_manager_test.php
      Moodle 3.3dev (Build: 20170127), 45bda4d996d2a635667350115cb36e5be109a463
      Php: 5.6.29, pgsql: 9.3.15, OS: Darwin 16.4.0 x86_64
      PHPUnit 5.5.7 by Sebastian Bergmann and contributors.
       
      .....FF                                                             7 / 7 (100%)
       
      Time: 1.13 seconds, Memory: 58.25MB
       
      There were 2 failures:
       
      1) core_calendar_rrule_manager_testcase::test_monthly_events
      Failed asserting that 4 matches expected 3.
       
      /Users/stronk7/git_moodle/integration/calendar/tests/rrule_manager_test.php:242
      /Users/stronk7/git_moodle/integration/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit core_calendar_rrule_manager_testcase calendar/tests/rrule_manager_test.php
       
      2) core_calendar_rrule_manager_testcase::test_yearly_events
      Failed asserting that 5 matches expected 6.
       
      /Users/stronk7/git_moodle/integration/calendar/tests/rrule_manager_test.php:423
      /Users/stronk7/git_moodle/integration/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit core_calendar_rrule_manager_testcase calendar/tests/rrule_manager_test.php
       
      FAILURES!
      Tests: 7, Assertions: 76, Failures: 2.
      

      I imagine this problem is transient and will stop happening soon, but have not verified it. In fact I don't remember this happening in the past, hence, have annotated the exact time it failed.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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