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

Random phpunit failure on analytics_analysis_testcase (maybe oracle only)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.7.1, 3.8
    • Fix Version/s: 3.7.1
    • Component/s: Analytics, Unit tests
    • Labels:

      Description

      Hi,

      along the last days, I've seen this happening at least twice:

      1) analytics_analysis_testcase::test_fill_firstanalyses_cache
      Failed asserting that actual size 8 matches expected size 7.
       
      /var/www/html/analytics/tests/analysis_test.php:81
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit --verbose "analytics_analysis_testcase" analytics/tests/analysis_test.php
      

      Links:

      Apparently only affecting to Oracle runs, so it maybe some incorrect assumption of ordering in returned recordsets or so (just based on previous cases experience).

      So creating this issue, both as an existing reference and to see if it can be fixed at some point.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              Andrew Nicols
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Elizabeth Dalton, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 10 minutes
                  1h 10m