1. 26 Sep, 2022 2 commits
    • Eloy Lafuente's avatar
      MDL-66902 tests: Fix all incorrect namespaces · 0ed53be9
      Eloy Lafuente authored
      This issue just goes over all the currently incorrect
      namespaces in test cases and:
      
      1. Change the namespace to the correct one.
      2. Move/rename it to correct location if needed (level 2 and down).
      3. Remove not needed MOODLE_INTERNAL check when possible.
      4. Remove file phpdoc when the file only has one class.
      5. Make small adjustments in case the change of namespace requires it.
      0ed53be9
    • sam marshall's avatar
      MDL-75738 tool_moodlenet: Upgrade clean user profile slow, pointless · 5afc4415
      sam marshall authored
      There is an upgrade to clean the moodlenetprofile field which
      performs very poorly, but it is also not needed because an upgrade
      further down sets this field to empty string anyway.
      5afc4415
  2. 20 Sep, 2022 1 commit
  3. 16 Sep, 2022 1 commit
  4. 09 Sep, 2022 1 commit
    • Paul Holden's avatar
      MDL-75708 reportbuilder: consider stress tests as requiring longtest. · b40d438f
      Paul Holden authored
      We should respect the value of the PHPUNIT_LONGTEST constant in the
      report source stress tests, as it was discovered after 165e26fa that
      the default configuration of some CIs (GHA) was not sufficient to run
      them.
      
      Hence, use the PHPUNIT_LONGTEST to determine whether to execute said
      tests. Note this constant is enabled on internal CI.
      b40d438f
  5. 05 Sep, 2022 2 commits
  6. 02 Sep, 2022 1 commit
    • Eloy Lafuente's avatar
      MDL-75223 tool_httpsreplace: Increase allowed timeout · 6b3e6558
      Eloy Lafuente authored
      Oracle 21 performs worse than previous versions and this
      is causing some tool_httpsreplace jobs to, near consistently,
      fail with timeouts.
      
      This can be workaround in a number of ways:
      
      1) Hacking tool_httpsreplace to detect when it's running a
         behat test and avoid running it completely. We did something
         like that for tool_customlang in the past. Ugly exception.
      2) For Oracle jobs, set BEHAT_INCREASE_TIMEOUT to 2 or higher, that
         will allow the whole behat run to have more time. Maybe too much
         if only the tool_httpsreplace scenarios are affected. And requires
         special configuration in sites running the tests.
      3) Improve Oracle 21 performance. There are some remaining tests to
         perform to achieve that, but it's extremely slow process, so it
         won't happen soon.
      4) Give more time to the failing tests using the step: "I mark this
         test as slow setting a timeout factor of X". It applies to all
         databases, but we are already using it, so no big problem. It's the
         same than solution 2) but from within the tests instead of affecting
         to the whole run.
      
      From all the alternatives above, this patch implements 4), doubling
      (from current 2 to 4), to give each test up to two minutes
      (30 secs * 4 = 120 secs) with the new allowed timeout-factor.
      6b3e6558
  7. 31 Aug, 2022 2 commits
  8. 30 Aug, 2022 1 commit
  9. 29 Aug, 2022 1 commit
  10. 22 Aug, 2022 1 commit
  11. 19 Aug, 2022 1 commit
  12. 18 Aug, 2022 1 commit
  13. 03 Aug, 2022 5 commits
  14. 02 Aug, 2022 2 commits
  15. 01 Aug, 2022 1 commit
  16. 22 Jul, 2022 2 commits
  17. 18 Jul, 2022 1 commit
  18. 13 Jul, 2022 1 commit
  19. 11 Jul, 2022 1 commit
  20. 09 Jul, 2022 1 commit
    • Eloy Lafuente's avatar
      MDL-71747 environment: Ensure that check_xmlrpc_usage is in >=39 · caa738b5
      Eloy Lafuente authored
      This is a partial backport of MDL-73270 to ensure that the
      check_xmlrpc_usage custom check is present in all the supported
      branches and it's applied to all branches able to run php80:
      
      - MOODLE_311_STABLE
      - MOODLE_400_STABLE
      - master (aka, 4.1 and up)
      
      Note that the whole patch has not been backported, only the
      environmental check (xml file and check implementation).
      caa738b5
  21. 08 Jul, 2022 3 commits
    • Eloy Lafuente's avatar
      MDL-71747 upgrade: remove all the < 3.9.0 upgrade steps · 58b56e23
      Eloy Lafuente authored
      This just deletes all the upgrade steps previous to 3.9.0. Some
      small adjustments, like tweaking globals can also be applied
      when needed.
      
      Also includes an upgrade step to prevent upgrading from any
      version < 2020061500 (v3.9.0) as anti-cheating measure.
      
      The next commits will proceed to deprecate / remove functions
      that were exclusively (usually belonging to upgradelib) being
      used by those, now removed, upgrade steps. This is the list
      of code to remove and document in upgrade.txt files:
      
        - upgrade_analytics_fix_contextids_defaults()
        - upgrade_convert_hub_config_site_param_names()
        - upgrade_rename_prediction_actions_useful_incorrectly_flagged()
        - \mod_forum\task\refresh_forum_post_counts adhoc task.
      
      And these is the code that has NOT been removed
      because it may be needed later (no matter there aren't uses now):
      
        - \core_search\manager::clean_up_non_existing_area(), used by
        - \core\task\clean_up_deleted_search_area_task adhoc task
      58b56e23
    • Eloy Lafuente's avatar
      MDL-71747 environment: Apply agreed changes · 1a25935d
      Eloy Lafuente authored
      - PHP 7.4 required.
      - Moodle 3.9 required.
      - MariaDB 10.4 required.
      - PostgreSQL 12 required.
      - Oracle 19c required.
      1a25935d
    • Eloy Lafuente's avatar
      MDL-71747 environment: 4.1 base information · 61bdc1e3
      Eloy Lafuente authored
      This is a direct copy of the 4.0 information, to
      have the changes under control in the next commit.
      61bdc1e3
  22. 06 Jul, 2022 1 commit
  23. 04 Jul, 2022 2 commits
  24. 01 Jul, 2022 1 commit
  25. 28 Jun, 2022 1 commit
  26. 23 Jun, 2022 1 commit
  27. 21 Jun, 2022 1 commit
  28. 20 Jun, 2022 1 commit