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

Random failures in BBB automated tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • BigBlueButton
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Prerequisites

      1. Install oracle OCI driver for PHP (https://docs.moodle.org/310/en/Installing_Oracle_for_PHP)
      2. Use the moodle docker image for oracle (https://github.com/moodlehq/moodle-db-oracle)
      3. Or use the moodle docker image (https://moodle.org/mod/forum/discuss.php?d=351402#p1424156)
      4. Setup behat & PHP unit
      5. Run the latest mock server for BBB:

      docker run -p 8001:80 --add-host bigbluebuttonm.behat:<YourIP> moodlehq/bigbluebutton_mock:latest

      Test steps:

      Run 10 times behat and phpunit:

       seq 10 | xargs -Iz moodle-plugin-ci behat mod/bigbluebuttonbn/ -p chrome --auto-rerun false

      And:

      seq 10 | xargs -Iz vendor/bin/behat -vv --config /home/laurentd/websites/data/bigbluebuttonm.local_behat/behatrun/behat/behat.yml mod/bigbluebuttonbn/tests/behat/recordings.feature --name="I can delete a recording" -p chrome

      Ensure there are no failures.

      Show
      Prerequisites Install oracle OCI driver for PHP ( https://docs.moodle.org/310/en/Installing_Oracle_for_PHP ) Use the moodle docker image for oracle ( https://github.com/moodlehq/moodle-db-oracle ) Or use the moodle docker image ( https://moodle.org/mod/forum/discuss.php?d=351402#p1424156) Setup behat & PHP unit Run the latest mock server for BBB: docker run -p 8001 : 80 --add-host bigbluebuttonm.behat:<YourIP> moodlehq/bigbluebutton_mock:latest Test steps: Run 10 times behat and phpunit:  seq 10 | xargs -Iz moodle-plugin-ci behat mod/bigbluebuttonbn/ -p chrome --auto-rerun false And: seq 10 | xargs -Iz vendor/bin/behat -vv --config /home/laurentd/websites/data/bigbluebuttonm.local_behat/behatrun/behat/behat.yml mod/bigbluebuttonbn/tests/behat/recordings.feature --name= "I can delete a recording" -p chrome Ensure there are no failures.

      There are some tests that are randomly failing, all of them related to recordings.

      PHPUnit test:

      • mod_bigbluebuttonbn\task\upgrade_recordings_test::test_upgrade_recordings(example)
      • mod_bigbluebuttonbn\task\upgrade_recordings_imported_test::test_upgrade_recordings (example)

      Behat tests:

            lmdavid Laurent DAVID
            vmdef Victor Déniz Falcón
            eloylafuente eloylafuente
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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