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

Update upgrade_stale_php_files_present() before 4.5 release

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-83236-main
    • Hide

      Note: TARGET for this issue is:

      1. main

      web

      1. Create/check out a 4.4.x site. For example:

        git checkout v4.4.3
        

      2. Install the site.
      3. Check out the TARGET branch

        git checkout TARGET
        

      4. Apply the patch if you're not on the integration.git
      5. Create any of the following files that are being detected by the patch. (e.g. on Linux, use the "touch" command):
        • cache/classes/interfaces.php

          touch cache/classes/interfaces.php 

        • cache/lib.php

          touch cache/lib.php

        • cache/disabledlib.php

          touch cache/disabledlib.php
          

        • ...
      6. Open your Moodle instance on your browser.
      7. Log in as admin and proceed with the upgrade.
      8. Verify that a notice ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release.
      9. Delete the touched file(s) in point 5.
      10. Click "Reload".
      11. Verify that the upgrade now proceeds ok.

      cli

      1. Repeat points 1-5 from the "web" instructions.
      2. Run the CLI upgrade

        php admin/cli/upgrade.php
        

      3. Verify that a text ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release.
      4. Delete the touched file(s) in point web - 5.
      5. Run the CLI upgrade again

        php admin/cli/upgrade.php
        

      6. Verify that now the process runs ok, with a prompt asking you for confirmation and then a number of upgrade steps and settings being setup.
      7. Verify that the process ends with a text like this (the numbers are not important), the "successfully" is.:

        Command line upgrade from XXXXX (Build: XXXXX) (XXXXX) to XXXXX (Build: XXXXX) (XXXXX) completed successfully.

      Show
      Note: TARGET for this issue is: main web Create/check out a 4.4.x site. For example: git checkout v4.4.3 Install the site. Check out the TARGET branch git checkout TARGET Apply the patch if you're not on the integration.git Create any of the following files that are being detected by the patch. (e.g. on Linux, use the " touch " command): cache/classes/interfaces.php touch cache/classes/interfaces.php cache/lib.php touch cache/lib.php cache/disabledlib.php touch cache/disabledlib.php ... Open your Moodle instance on your browser. Log in as admin and proceed with the upgrade. Verify that a notice ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release. Delete the touched file(s) in point 5. Click " Reload ". Verify that the upgrade now proceeds ok. cli Repeat points 1-5 from the "web" instructions. Run the CLI upgrade php admin/cli/upgrade.php Verify that a text ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release. Delete the touched file(s) in point web - 5. Run the CLI upgrade again php admin/cli/upgrade.php Verify that now the process runs ok, with a prompt asking you for confirmation and then a number of upgrade steps and settings being setup. Verify that the process ends with a text like this (the numbers are not important), the "successfully" is.: Command line upgrade from XXXXX (Build: XXXXX) (XXXXX) to XXXXX (Build: XXXXX) (XXXXX) completed successfully.
    • 1
    • Team Hedgehog 2024 Sprint 3.3

      Simply verify we have a number (4-5) of files for the next major release. They all must be files deleted since last stable version (404) and current main.

      git diff --name-status MOODLE_XX_STABLE..main | grep ^D
      

      And, then, simply, add them to upgrade_stale_php_files_present().

      Note that it's better not to pick any plugin file that maybe reinstalled manually (exception being forum files because that plugin is mandatory).

      Note: (to avoid forgetting it in next iteration of this issue). Don't forget the leading slashes in the paths.

        1. (1) 11 Passed -- (Main)MDL-83236.png
          79 kB
          Kim Jared Lucas
        2. (1) 8 Passed -- (Main)MDL-83236.png
          96 kB
          Kim Jared Lucas
        3. (2) 3 Passed -- (Main)MDL-83236.png
          107 kB
          Kim Jared Lucas
        4. (2) 6 Passed -- (Main)MDL-83236.png
          74 kB
          Kim Jared Lucas
        5. (2) 7 Passed -- (Main)MDL-83236.png
          73 kB
          Kim Jared Lucas

            huongn@moodle.com Huong Nguyen
            huongn@moodle.com Huong Nguyen
            Meirza Meirza
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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