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

Need to execute init script twice when re-initialising Behat for parallel runs for upgraded instances

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Checkout Moodle 3.4.0

        git checkout v3.4.0
        

      2. Initialise parallel Behat.

        php admin/tool/behat/cli/init.php -j=2
        

      3. Check out the appropriate branch for your Moodle instance. (e.g. if you're on 3.6, then you do a git checkout of the MOODLE_36_STABLE branch)
      4. Initialise parallel Behat again.

        php admin/tool/behat/cli/init.php -j=2
        

      5. Confirm that after the database tables have been dropped, the process proceeds with the installation of the Behat sites right away.
      Show
      Checkout Moodle 3.4.0 git checkout v3.4.0 Initialise parallel Behat. php admin/tool/behat/cli/init.php -j=2 Check out the appropriate branch for your Moodle instance. (e.g. if you're on 3.6, then you do a git checkout of the MOODLE_36_STABLE branch) Initialise parallel Behat again. php admin/tool/behat/cli/init.php -j=2 Confirm that after the database tables have been dropped, the process proceeds with the installation of the Behat sites right away.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-64597-master

      Description

      What happens:

      1. Moodle instance with parallel Behat sites is set up.
      2. Moodle code base gets updated.
      3. Run init script:

        php admin/tool/behat/cli/init.php -j=N
        

      4. Expected: The script should drop all the tables and reinstall the Behat sites.
      5. Actual: The script only drops the outdated tables and you have to run the script again in order to reinstall the Behat sites.

        Attachments

          Activity

            People

            Assignee:
            jpataleta Jun Pataleta
            Reporter:
            jpataleta Jun Pataleta
            Peer reviewer:
            Mathew May
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Mar/19

                Time Tracking

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