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

Behat failures rendering various H5P local files

XMLWordPrintable

    • HQ 2023 Planning i2 Moppies

      These failures started being detected around November/December 2022.

      Use to happen together, in the same run, and also together with the MDL-76859 ones, but those are in a different issue because the failure is different.

      Normally on Oracle or slow environments (for example I was able to reproduce them sometimes in my old windows laptop, but hardly in my Mac).

      Failed builds

      These 3 scenarios seem to be the affected ones (there may be more):

      • Render a local H5P file as teacher
      • Render a local H5P file with existing libraries
      • Render local H5P file with a disabled main library

      And the error, for all them is the same (javascript timeout):

      001 Scenario: Render a local H5P file as teacher                                                                                      # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:92
            Then I should see "Note that the libraries may exist in the file you uploaded, but you're not allowed to upload new libraries." # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:112
              Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow (core/first). If you are using a slow machine, consider setting $CFG->behat_increasetimeout. (Exception)
       
      002 Scenario: Render a local H5P file with existing libraries # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:117
            And I should see "missing-required-library"             # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:138
              Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow (core/first). If you are using a slow machine, consider setting $CFG->behat_increasetimeout. (Exception)
       
      003 Scenario: Render local H5P file with a disabled main library                             # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:176
            Then I should see "This file can't be displayed because its content type is disabled." # /var/www/html/filter/displayh5p/tests/behat/h5p_filter.feature:199
              Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow (core/first). If you are using a slow machine, consider setting $CFG->behat_increasetimeout. (Exception)
      

      Till now, only failures in master (4.2dev) have been detected, that may be a clue.

            sarjona Sara Arjona (@sarjona)
            stronk7 Eloy Lafuente (stronk7)
            Amaia Anabitarte Amaia Anabitarte
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 37 minutes
                3h 37m

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