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

Behat suite tunning

XMLWordPrintable

    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE
    • MDL-43837_master
    • Hide
      1. Run the behat suite
      2. No failures are expected, sorry, you can not pass referring to the CI server results here. If there are failures ask integrators to ensure they are not caused by another issue integrated during this week cycle.
      Show
      Run the behat suite No failures are expected, sorry, you can not pass referring to the CI server results here. If there are failures ask integrators to ensure they are not caused by another issue integrated during this week cycle.

      Behat and fast seems opposite words, we should run steps as fast as possible but on the other hand we should keep compatibility with slow servers where loading a page + all JS & CSS dependencies requires more than behat_base::TIMEOUT.

      There are many places where we can and should improve the performance of the suite, most of the time the issue is the same, we should be sure that all the elements are there, places where some work can be done:

      • I should not see "ASD" is waiting until behat_base::TIMEOUT expires!! Last week I counted 284 appearances of the step in the code base; 6 seconds * 284 calls = 1704 seconds = 28.4 minutes!! An option would be to create a new constant for I should not see steps and reduce it's value to a couple of seconds
      • We look for the link to expand all fieldsets when we fill any form (not any field though) I'm not 100% sure, but we should be able to use a reduced timeout here also

      The most important point here would be to detect the bootlenecks, counting the time elapsed in each step (before and after hooks with microtime on each) and see which steps are requiring more time, checking if it makes sense or not that that much time is spend there.

            dmonllao David Monllaó
            dmonllao David Monllaó
            Rajesh Taneja Rajesh Taneja
            Damyon Wiese Damyon Wiese
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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