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

Bump to Behat 3.10.x

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • Hide

      Requirements:

      • composer 2.x should be used.
        • Option 1: System composer
        • Option 2: MDK
          • If you use MDK, run `mdk phpunit`
          • There should be a composer.phar file in your moodle root folder.
          • Check version "php composer.phar --version"
          • Optional: You can move it to the /usr/bin ("sudo mv composer.phar /usr/bin/composer") so you can use the composer commands below as is. Otherwise, replace the "composer" commands below with "php composer.phar"
      • The php version being used to run the composer commands below must be the lowest allowed for every branch (php72 for 39 and 310, php73 for 311 and master).

      Steps:

      1. Remove vendor & composer.lock: rm -fr vendor composer.lock
      2. Clear composer caches: composer clearcache
      3. Install: composer update
      4. Verify that a new composer.lock file has been created.
      5. Verify that it's the same (using git diff) that the included in this patch (some minor versions / dates differences are allowed).
      6. Run vendor/bin/behat --version
      7. DON'T DO THIS!: Verify that "behat 3.10.0" is the version installed (this is a bug, they forgot to update the version constant to 3.10.0). (link).
      8. Open vendor/behat/behat/CHANGELOG.md
      9. Verify that you can see ## 3.10.0 - 2021-11-02 as the more recent (first) version.

      Apart from this, automated test will tell us if everything is ok.

      Show
      Requirements: composer 2.x should be used. Option 1: System composer Check if you have composer installed and its version " composer --version " If it is less than version 2, follow the Command-line installation instructions . Option 2: MDK If you use MDK, run `mdk phpunit` There should be a composer.phar file in your moodle root folder. Check version " php composer.phar --version " Optional: You can move it to the /usr/bin (" sudo mv composer.phar /usr/bin/composer ") so you can use the composer commands below as is. Otherwise, replace the " composer " commands below with " php composer.phar " The php version being used to run the composer commands below must be the lowest allowed for every branch (php72 for 39 and 310, php73 for 311 and master). Steps: Remove vendor & composer.lock: rm -fr vendor composer.lock Clear composer caches: composer clearcache Install: composer update Verify that a new composer.lock file has been created. Verify that it's the same (using git diff ) that the included in this patch (some minor versions / dates differences are allowed). Run vendor/bin/behat --version DON'T DO THIS!: Verify that "behat 3.10.0" is the version installed (this is a bug, they forgot to update the version constant to 3.10.0). ( link ). Open vendor/behat/behat/CHANGELOG.md Verify that you can see ## 3.10.0 - 2021-11-02 as the more recent (first) version. Apart from this, automated test will tell us if everything is ok.

    Description

      Note this is part of the release process (8 weeks prior):

      Ensure we are running latest/good behat, phpunit and nodejs (npm) versions.

      There have been various fixes since Behat 3.8.1, adding initial php81 support, better php80 support, renewed libraries...

      In the other side, the minimum requirements haven't changed and it works for php72 and up. So we can apply this change to all current supported branches: 39, 310, 311 & 400.

      Generate them following the steps in the docs.

      Worth noting that, as part of the updates, phpunit also will get (minor) updates:

      • no changes (7.5.20) for 39_STABLE
      • from 8.5.22 to 8.5.23 for 310_STABLE
      • from 9.5.11 to 9.5.13 for 311_STABLE and master,

      Attachments

        1. MDL-73711_master_step 4, 5.webm
          1.90 MB
        2. MDL-73711_master_step 9.png
          MDL-73711_master_step 9.png
          241 kB
        3. MDL-73711_v310_step 4, 5.webm
          2.19 MB
        4. MDL-73711_v310_step 9.png
          MDL-73711_v310_step 9.png
          240 kB
        5. MDL-73711_v311_step 4, 5.webm
          2.14 MB
        6. MDL-73711_v311_step 9.png
          MDL-73711_v311_step 9.png
          240 kB
        7. MDL-73711_v39_step 4, 5.webm
          2.28 MB
        8. MDL-73711_v39_step 9.png
          MDL-73711_v39_step 9.png
          243 kB

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Carlos Escobedo Carlos Escobedo
              Jun Pataleta Jun Pataleta
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Mar/22

                Time Tracking

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