From 0ba4a2278652d49ae5bca26cc30b120be7c73d7b Mon Sep 17 00:00:00 2001 From: DawoudSheraz Date: Fri, 3 May 2024 11:57:29 +0500 Subject: [PATCH] v18.0.0 upgrade to redwood --- CHANGELOG.md | 39 +++++++++++++++++++ ...aria.grimaldi_fix_django4_import_errors.md | 1 - changelog.d/20231219_214829_i_atlas.md | 1 - .../20240124_080753_i_plugins_xblocks.md | 1 - .../20240318_154804_kyle_assets_build.md | 21 ---------- ...40329_164354_dawoud.sheraz_mongo_update.md | 10 ----- changelog.d/20240410_102248_regis_node18.md | 1 - .../20240425_105236_braden_bind_mount_docs.md | 1 - .../20240502_200434_dawoud.sheraz_py311.md | 1 - .../20240508_111720_dave_fix_cors_headers.md | 1 - .../20240531_094930_kyle_assets_link.md | 1 - ...31_132815_rohan.saeed_supply_mysql8_4_0.md | 2 - ...07_111921_regis_edx_platform_code_cache.md | 1 - docs/configuration.rst | 6 +-- docs/dev.rst | 2 +- docs/install.rst | 4 +- docs/quickstart.rst | 2 +- docs/reference/indexes.rst | 10 ++--- docs/tutorials/edx-platform.rst | 2 +- requirements/plugins.txt | 28 ++++++------- tests/test_env.py | 2 +- tutor/__about__.py | 4 +- tutor/commands/upgrade/__init__.py | 3 +- tutor/commands/upgrade/compose.py | 1 + tutor/commands/upgrade/k8s.py | 1 + tutor/env.py | 1 + tutor/templates/build/openedx/Dockerfile | 9 +---- tutor/templates/build/openedx/revisions.yml | 2 +- tutor/templates/config/defaults.yml | 2 +- 29 files changed, 77 insertions(+), 83 deletions(-) delete mode 100644 changelog.d/20231212_140233_maria.grimaldi_fix_django4_import_errors.md delete mode 100644 changelog.d/20231219_214829_i_atlas.md delete mode 100644 changelog.d/20240124_080753_i_plugins_xblocks.md delete mode 100644 changelog.d/20240318_154804_kyle_assets_build.md delete mode 100644 changelog.d/20240329_164354_dawoud.sheraz_mongo_update.md delete mode 100644 changelog.d/20240410_102248_regis_node18.md delete mode 100644 changelog.d/20240425_105236_braden_bind_mount_docs.md delete mode 100644 changelog.d/20240502_200434_dawoud.sheraz_py311.md delete mode 100644 changelog.d/20240508_111720_dave_fix_cors_headers.md delete mode 100644 changelog.d/20240531_094930_kyle_assets_link.md delete mode 100644 changelog.d/20240531_132815_rohan.saeed_supply_mysql8_4_0.md delete mode 100644 changelog.d/20240607_111921_regis_edx_platform_code_cache.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f1161d57..239925c3d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,45 @@ instructions, because git commits are used to generate release notes: + +## v18.0.0 (2024-06-19) + +- 💥[Feature] Upgrade to Redwood (by @dawoudsheraz) +- [Bugfix] Wrap Django5 warning imports in try-except block to avoid failures in django3 that's still in use in edx-platform's master branch (by @mariajgrimaldi). +- 💥[Feature] Pull translations via `atlas` during Docker build. This breaks the `openedx-i18n` custom locale Tutor feature in favor of [OEP-58](https://docs.openedx.org/en/latest/developers/concepts/oep58.html) in favor of . (by @omarithawi) +- 💥[Feature] The `openedx-assets` command is replaced with `npm run` subcommands. This will slightly reduce the build time for edx-platform assets and comprehensive themes. It will also open up the door for more significant build time reductions in the future. Here is a migration guide, where each command is to be run in the `lms` or `cms` container: + + **Before** | **After** + -----------------------------------------|------------------------------------------------------------------------------------- + `openedx-assets build --env=prod ARGS` | `npm run build -- ARGS` + `openedx-assets build --env=dev ARGS` | `npm run build-dev -- ARGS` + `openedx-assets common --env=prod ARGS` | `npm run compile-sass -- --skip-themes ARGS` + `openedx-assets common --env=dev ARGS` | `npm run compile-sass-dev -- --skip-themes ARGS` + `openedx-assets webpack --env=prod ARGS` | `npm run webpack -- ARGS` + `openedx-assets webpack --env=dev ARGS` | `npm run webpack-dev -- ARGS` + `openedx-assets npm` | `npm run postinstall` (`npm clean-install` runs this automatically) + `openedx-assets xmodule` | (no longer necessary) + `openedx-assets collect ARGS` | `./manage.py lms collectstatic --noinput ARGS && ./manage.py cms collectstatic ARGS` + `openedx-assets watch-themes ARGS` | `npm run watch-themes -- ARGS` + +For more details, see the [deprecation notice for paver](https://github.com/openedx/edx-platform/issues/34467) +and the [static assets reference](https://github.com/openedx/edx-platform/tree/open-release/redwood.master/docs/references/static-assets.rst) +in edx-platform. + +- 💥[Feature] Update MongoDB to v7.0.7 (by @dawoudsheraz) MongoDB is upgraded from version 4.4 to 7.0. Since there have been major releases since 4.4, the upgrade will need to go through them before running Mongo 7. MongoDB would need to follow 4.4 --> 5.0 --> 6.0 --> 7.0 upgrade path to work correctly. The container will keep on restarting with featureCompatibility error if the upgrade path is not followed. To upgrade mongo, run the following command based in the appropriate environment: + + tutor upgrade --from=quince + +For k8s only, the above command will not perform the upgrade automatically. Instead, the command will output a series of commands that would need to be run manually to carry out the upgrade. + +- [Improvement] Upgrade Nodejs from 16.14.0 to 18.20.1 in edx-platform. (by @regisb) +- [Improvement] Auto-detect bind mounts of openedx-learning for edx-platform (by @bradenmacdonald) +- [Feature] Upgrade Open edX image to use Python 3.11 (by @dawoudsheraz) +- [Bugfix] Remove CORS_ALLOW_HEADERS setting from the LMS/Studio config template. This setting, which holds site-agnostic application logic, is now consistently set to a reasonable value upstream by LMS and CMS config. Using the upstream values fixes a bug where course import in Studio using the new Course Authoring MFE was broken in Tutor deployments because it required additional headers to be allowed (content-range and content-disposition) (by @ormsbee) +- [Improvement] Made Docker cache hits more frequent during the openedx image build via BuildKit's `COPY --link` feature (by @kdmccormick). +- 💥[Improvement] Upgrade MySQL to 8.4.0. The upgrade should be automatic for most users. However, if you are running a third-party MySQL (i.e., RUN_MYSQL=false), you are expected to upgrade manually. Please refer to the third-party provider's documentation for detailed upgrade instructions. Ensuring that your MySQL version is up-to-date is crucial for maintaining compatibility and security. (by @rohansaeed) +- 💥[Improvement] Ensure that the edx-platform repository git checkout is cached by Docker during image build. This means that the cache will automatically be cleared any time there is an upstream change. Thus, it is no longer necessary to run `tutor images build --no-cache` just to fetch the latest edx-platform changes. For this to work, any GitHub repository referenced by `EDX_PLATFORM_REPOSITORY` needs to end with ".git". Make sure that this is the case if you have modified the value of this setting in the past. (by @regisb) + ## v17.0.6 (2024-06-13) diff --git a/changelog.d/20231212_140233_maria.grimaldi_fix_django4_import_errors.md b/changelog.d/20231212_140233_maria.grimaldi_fix_django4_import_errors.md deleted file mode 100644 index ad88d1cb42..0000000000 --- a/changelog.d/20231212_140233_maria.grimaldi_fix_django4_import_errors.md +++ /dev/null @@ -1 +0,0 @@ -- [Bugfix] Wrap Django5 warning imports in try-except block to avoid failures in django3 that's still in use in edx-platform's master branch (by @mariajgrimaldi). diff --git a/changelog.d/20231219_214829_i_atlas.md b/changelog.d/20231219_214829_i_atlas.md deleted file mode 100644 index 6c3ef1b7d4..0000000000 --- a/changelog.d/20231219_214829_i_atlas.md +++ /dev/null @@ -1 +0,0 @@ -- 💥[Feature] Pull translations via `atlas` during Docker build. This breaks the `openedx-i18n` custom locale Tutor feature in favor of [OEP-58](https://docs.openedx.org/en/latest/developers/concepts/oep58.html) in favor of . (by @omarithawi) diff --git a/changelog.d/20240124_080753_i_plugins_xblocks.md b/changelog.d/20240124_080753_i_plugins_xblocks.md deleted file mode 100644 index 652f5375c3..0000000000 --- a/changelog.d/20240124_080753_i_plugins_xblocks.md +++ /dev/null @@ -1 +0,0 @@ -- [Feature] `atlas pull` translations for XBlocks and Plugins (by @OmarIthawi) diff --git a/changelog.d/20240318_154804_kyle_assets_build.md b/changelog.d/20240318_154804_kyle_assets_build.md deleted file mode 100644 index de11359740..0000000000 --- a/changelog.d/20240318_154804_kyle_assets_build.md +++ /dev/null @@ -1,21 +0,0 @@ -- 💥[Feature] The `openedx-assets` command is replaced with `npm run` subcommands. - This will slightly reduce the build time for edx-platform assets and comprehensive themes. - It will also open up the door for more significant build time reductions in the future. - Here is a migration guide, where each command is to be run in the `lms` or `cms` container. - - **Before** | **After** - -----------------------------------------|------------------------------------------------------------------------------------- - `openedx-assets build --env=prod ARGS` | `npm run build -- ARGS` - `openedx-assets build --env=dev ARGS` | `npm run build-dev -- ARGS` - `openedx-assets common --env=prod ARGS` | `npm run compile-sass -- --skip-themes ARGS` - `openedx-assets common --env=dev ARGS` | `npm run compile-sass-dev -- --skip-themes ARGS` - `openedx-assets webpack --env=prod ARGS` | `npm run webpack -- ARGS` - `openedx-assets webpack --env=dev ARGS` | `npm run webpack-dev -- ARGS` - `openedx-assets npm` | `npm run postinstall` (`npm clean-install` runs this automatically) - `openedx-assets xmodule` | (no longer necessary) - `openedx-assets collect ARGS` | `./manage.py lms collectstatic --noinput ARGS && ./manage.py cms collectstatic ARGS` - `openedx-assets watch-themes ARGS` | `npm run watch-themes -- ARGS` - - For more details, see the [deprecation notice for paver](https://github.com/openedx/edx-platform/issues/34467) - and the [static assets reference](https://github.com/openedx/edx-platform/tree/open-release/redwood.master/docs/references/static-assets.rst) - in edx-platform. diff --git a/changelog.d/20240329_164354_dawoud.sheraz_mongo_update.md b/changelog.d/20240329_164354_dawoud.sheraz_mongo_update.md deleted file mode 100644 index 3dcd45f4e0..0000000000 --- a/changelog.d/20240329_164354_dawoud.sheraz_mongo_update.md +++ /dev/null @@ -1,10 +0,0 @@ -- 💥[Feature] Update MongoDB to v7.0.7 (by @dawoudsheraz) - - MongoDB is updating from 4.4 to 7. Since there have been major releases since 4.4, the upgrade would need to go through them before running Mongo 7. Mongo would need to follow 4.4 --> 5.0 --> 6.0 --> 7.0 upgrade path to work correctly. - The container will keep on restarting with featureCompatibility error if the upgrade path is not followed. - - To upgrade mongo, run the following command based in the appropriate environment: - ``` - tutor upgrade --from=quince - ``` - For k8s only, the above command will not perform the upgrade automatically. Instead, the command will output a series of commands that would need to be run manually to carry out the upgrade. \ No newline at end of file diff --git a/changelog.d/20240410_102248_regis_node18.md b/changelog.d/20240410_102248_regis_node18.md deleted file mode 100644 index 17308dfb30..0000000000 --- a/changelog.d/20240410_102248_regis_node18.md +++ /dev/null @@ -1 +0,0 @@ -- [Improvement] Upgrade Nodejs from 16.14.0 to 18.20.1 in edx-platform. (by @regisb) diff --git a/changelog.d/20240425_105236_braden_bind_mount_docs.md b/changelog.d/20240425_105236_braden_bind_mount_docs.md deleted file mode 100644 index 9b24a89e1e..0000000000 --- a/changelog.d/20240425_105236_braden_bind_mount_docs.md +++ /dev/null @@ -1 +0,0 @@ -- [Improvement] Auto-detect bind mounts of openedx-learning for edx-platform (by @bradenmacdonald) diff --git a/changelog.d/20240502_200434_dawoud.sheraz_py311.md b/changelog.d/20240502_200434_dawoud.sheraz_py311.md deleted file mode 100644 index e0986615cf..0000000000 --- a/changelog.d/20240502_200434_dawoud.sheraz_py311.md +++ /dev/null @@ -1 +0,0 @@ -- [Feature] Upgrade Open edX image to use Python 3.11 (by @dawoudsheraz) diff --git a/changelog.d/20240508_111720_dave_fix_cors_headers.md b/changelog.d/20240508_111720_dave_fix_cors_headers.md deleted file mode 100644 index 5af383eb36..0000000000 --- a/changelog.d/20240508_111720_dave_fix_cors_headers.md +++ /dev/null @@ -1 +0,0 @@ -- [Bugfix] Remove CORS_ALLOW_HEADERS setting from the LMS/Studio config template. This setting, which holds site-agnostic application logic, is now consistently set to a reasonable value upstream by LMS and CMS config. Using the upstream values fixes a bug where course import in Studio using the new Course Authoring MFE was broken in Tutor deployments because it required additional headers to be allowed (content-range and content-disposition) (by @ormsbee) diff --git a/changelog.d/20240531_094930_kyle_assets_link.md b/changelog.d/20240531_094930_kyle_assets_link.md deleted file mode 100644 index 42b41b01eb..0000000000 --- a/changelog.d/20240531_094930_kyle_assets_link.md +++ /dev/null @@ -1 +0,0 @@ -- [Improvement] Made Docker cache hits more frequent during the openedx image build via BuildKit's `COPY --link` feature (by @kdmccormick). diff --git a/changelog.d/20240531_132815_rohan.saeed_supply_mysql8_4_0.md b/changelog.d/20240531_132815_rohan.saeed_supply_mysql8_4_0.md deleted file mode 100644 index 7191b7ecb3..0000000000 --- a/changelog.d/20240531_132815_rohan.saeed_supply_mysql8_4_0.md +++ /dev/null @@ -1,2 +0,0 @@ -- 💥[Improvement] Upgrade MySQL to 8.4.0 (by @rohansaeed) - The upgrade should be automatic for most users. However, if you are running a third-party MySQL (i.e., RUN_MYSQL=false), you are expected to upgrade manually. Please refer to the third-party provider's documentation for detailed upgrade instructions. Ensuring that your MySQL version is up-to-date is crucial for maintaining compatibility and security. diff --git a/changelog.d/20240607_111921_regis_edx_platform_code_cache.md b/changelog.d/20240607_111921_regis_edx_platform_code_cache.md deleted file mode 100644 index f56c6f8dd3..0000000000 --- a/changelog.d/20240607_111921_regis_edx_platform_code_cache.md +++ /dev/null @@ -1 +0,0 @@ -- 💥[Improvement] Ensure that the edx-platform repository git checkout is cached by Docker during image build. This means that the cache will automatically be cleared any time there is an upstream change. Thus, it is no longer necessary to run `tutor images build --no-cache` just to fetch the latest edx-platform changes. For this to work, any GitHub repository referenced by `EDX_PLATFORM_REPOSITORY` needs to end with ".git". Make sure that this is the case if you have modified the value of this setting in the past. (by @regisb) diff --git a/docs/configuration.rst b/docs/configuration.rst index 928f3ad357..4897a46206 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -132,7 +132,7 @@ Open edX customisation This defines the git repository from which you install Open edX platform code. If you run an Open edX fork with custom patches, set this to your own git repository. You may also override this configuration parameter at build time, by providing a ``--build-arg`` option. -- ``OPENEDX_COMMON_VERSION`` (default: ``"open-release/quince.1"``, or ``master`` in :ref:`nightly `) +- ``OPENEDX_COMMON_VERSION`` (default: ``"open-release/redwood.1"``, or ``master`` in :ref:`nightly `) This defines the default version that will be pulled from all Open edX git repositories. @@ -378,9 +378,9 @@ Note that your edx-platform version must be a fork of the latest release **tag** If you don't create your fork from this tag, you *will* have important compatibility issues with other services. In particular: -- Do not try to run a fork from an older (pre-Quince) version of edx-platform: this will simply not work. +- Do not try to run a fork from an older (pre-Redwood) version of edx-platform: this will simply not work. - Do not try to run a fork from the edx-platform master branch: there is a 99% probability that it will fail. -- Do not try to run a fork from the open-release/quince.master branch: Tutor will attempt to apply security and bug fix patches that might already be included in the open-release/quince.master but which were not yet applied to the latest release tag. Patch application will thus fail if you base your fork from the open-release/quince.master branch. +- Do not try to run a fork from the open-release/redwood.master branch: Tutor will attempt to apply security and bug fix patches that might already be included in the open-release/redwood.master but which were not yet applied to the latest release tag. Patch application will thus fail if you base your fork from the open-release/redwood.master branch. .. _i18n: diff --git a/docs/dev.rst b/docs/dev.rst index f2d274d22a..c7c95616e7 100644 --- a/docs/dev.rst +++ b/docs/dev.rst @@ -113,7 +113,7 @@ The ``openedx-dev`` Docker image is based on the same ``openedx`` image used by - The user that runs inside the container has the same UID as the user on the host, to avoid permission problems inside mounted volumes (and in particular in the edx-platform repository). - Additional Python and system requirements are installed for convenient debugging: `ipython `__, `ipdb `__, vim, telnet. -- The edx-platform `development requirements `__ are installed. +- The edx-platform `development requirements `__ are installed. If you are using a custom ``openedx`` image, then you will need to rebuild ``openedx-dev`` every time you modify ``openedx``. To so, run:: diff --git a/docs/install.rst b/docs/install.rst index b058ddced5..7645fbf49d 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -123,11 +123,11 @@ Major Open edX releases are published twice a year, in June and December, by the 4. Test the new release in a sandboxed environment. 5. If you are running edx-platform, or some other repository from a custom branch, then you should rebase (and test) your changes on top of the latest release tag (see :ref:`edx_platform_fork`). -The process for upgrading from one major release to the next works similarly to any other upgrade, with the ``launch`` command (see above). The single difference is that if the ``launch`` command detects that your tutor environment was generated with an older release, it will perform a few release-specific upgrade steps. These extra upgrade steps will be performed just once. But they will be ignored if you updated your local environment (for instance: with ``tutor config save``) before running ``launch``. This situation typically occurs if you need to re-build some Docker images (see above). In such a case, you should make use of the ``upgrade`` command. For instance, to upgrade a local installation from Palm to Quince and rebuild some Docker images, run:: +The process for upgrading from one major release to the next works similarly to any other upgrade, with the ``launch`` command (see above). The single difference is that if the ``launch`` command detects that your tutor environment was generated with an older release, it will perform a few release-specific upgrade steps. These extra upgrade steps will be performed just once. But they will be ignored if you updated your local environment (for instance: with ``tutor config save``) before running ``launch``. This situation typically occurs if you need to re-build some Docker images (see above). In such a case, you should make use of the ``upgrade`` command. For instance, to upgrade a local installation from Quince to Redwood and rebuild some Docker images, run:: tutor config save tutor images build all # list the images that should be rebuilt here - tutor local upgrade --from=palm + tutor local upgrade --from=quince tutor local launch .. _autocomplete: diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 58cf4d4e32..0c774f8b4a 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -22,7 +22,7 @@ Yes :) This is what happens when you run ``tutor local launch``: 2. Configuration files are generated from templates. 3. Docker images are downloaded. 4. Docker containers are provisioned. -5. A full, production-ready Open edX platform (`Quince `__ release) is run with docker-compose. +5. A full, production-ready Open edX platform (`Redwood `__ release) is run with docker-compose. The whole procedure should require less than 10 minutes, on a server with good bandwidth. Note that your host environment will not be affected in any way, since everything runs inside docker containers. Root access is not even necessary. diff --git a/docs/reference/indexes.rst b/docs/reference/indexes.rst index e9c337ea33..45fff4b3c0 100644 --- a/docs/reference/indexes.rst +++ b/docs/reference/indexes.rst @@ -7,10 +7,10 @@ Plugin indexes are a great way to have your plugins discovered by other users. P Index file paths ================ -A plugin index is a yaml-formatted file. It can be stored on the web or on your computer. In both cases, the index file location must end with "/plugins.yml". For instance, the following are valid index locations if you run the Open edX "Quince" release: +A plugin index is a yaml-formatted file. It can be stored on the web or on your computer. In both cases, the index file location must end with "/plugins.yml". For instance, the following are valid index locations if you run the Open edX "Redwood" release: -- https://overhang.io/tutor/main/quince/plugins.yml -- ``/path/to/your/local/index/quince/plugins.yml`` +- https://overhang.io/tutor/main/redwood/plugins.yml +- ``/path/to/your/local/index/redwood/plugins.yml`` To add either indexes, run the ``tutor plugins index add`` command without the suffix. For instance:: @@ -106,9 +106,9 @@ Manage plugins in development Plugin developers and maintainers often want to install local versions of their plugins. They usually achieve this with ``pip install -e /path/to/tutor-plugin``. We can improve that workflow by creating an index for local plugins:: # Create the plugin index directory - mkdir -p ~/localindex/quince/ + mkdir -p ~/localindex/redwood/ # Edit the index - vim ~/localindex/quince/plugins.yml + vim ~/localindex/redwood/plugins.yml Add the following to the index:: diff --git a/docs/tutorials/edx-platform.rst b/docs/tutorials/edx-platform.rst index afc39002cd..793498a248 100644 --- a/docs/tutorials/edx-platform.rst +++ b/docs/tutorials/edx-platform.rst @@ -69,7 +69,7 @@ Quite often, developers don't want to work on edx-platform directly, but on a de cd /my/workspace/edx-ora2 git clone https://github.com/openedx/edx-ora2 . -Then, check out the right version of the package. This is the version that is indicated in the `edx-platform/requirements/edx/base.txt `__. Be careful that the version that is currently in use in your version of edx-platform is **not necessarily the head of the master branch**:: +Then, check out the right version of the package. This is the version that is indicated in the `edx-platform/requirements/edx/base.txt `__. Be careful that the version that is currently in use in your version of edx-platform is **not necessarily the head of the master branch**:: git checkout diff --git a/requirements/plugins.txt b/requirements/plugins.txt index 36e7c0a5e5..2c4be2fe12 100644 --- a/requirements/plugins.txt +++ b/requirements/plugins.txt @@ -1,14 +1,14 @@ -# change version ranges when upgrading from quince -tutor-android>=17.0.0,<18.0.0 -tutor-cairn>=17.0.0,<18.0.0 -tutor-credentials>=17.0.0,<18.0.0 -tutor-discovery>=17.0.0,<18.0.0 -tutor-ecommerce>=17.0.0,<18.0.0 -tutor-forum>=17.0.0,<18.0.0 -tutor-indigo>=17.0.0,<18.0.0 -tutor-jupyter>=17.0.0,<18.0.0 -tutor-mfe>=17.0.0,<18.0.0 -tutor-minio>=17.0.0,<18.0.0 -tutor-notes>=17.0.0,<18.0.0 -tutor-webui>=17.0.0,<18.0.0 -tutor-xqueue>=17.0.0,<18.0.0 +# change version ranges when upgrading from redwood +tutor-android>=18.0.0,<19.0.0 +tutor-cairn>=18.0.0,<19.0.0 +tutor-credentials>=18.0.0,<19.0.0 +tutor-discovery>=18.0.0,<19.0.0 +tutor-ecommerce>=18.0.0,<19.0.0 +tutor-forum>=18.0.0,<19.0.0 +tutor-indigo>=18.0.0,<19.0.0 +tutor-jupyter>=18.0.0,<19.0.0 +tutor-mfe>=18.0.0,<19.0.0 +tutor-minio>=18.0.0,<19.0.0 +tutor-notes>=18.0.0,<19.0.0 +tutor-webui>=18.0.0,<19.0.0 +tutor-xqueue>=18.0.0,<19.0.0 diff --git a/tests/test_env.py b/tests/test_env.py index 27cff9678b..e2ba7bbe1d 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -260,7 +260,7 @@ def test_current_version_in_latest_env(self) -> None: ) as f: f.write(__version__) self.assertEqual(__version__, env.current_version(root)) - self.assertEqual("quince", env.get_env_release(root)) + self.assertEqual("redwood", env.get_env_release(root)) self.assertIsNone(env.should_upgrade_from_release(root)) self.assertTrue(env.is_up_to_date(root)) diff --git a/tutor/__about__.py b/tutor/__about__.py index 04bcbbf459..8c37f09911 100644 --- a/tutor/__about__.py +++ b/tutor/__about__.py @@ -2,7 +2,7 @@ # Increment this version number to trigger a new release. See # docs/tutor.html#versioning for information on the versioning scheme. -__version__ = "17.0.6" +__version__ = "18.0.0" # The version suffix will be appended to the actual version, separated by a # dash. Use this suffix to differentiate between the actual released version and @@ -10,7 +10,7 @@ # the nightly branch. # The suffix is cleanly separated from the __version__ in this module to avoid # conflicts when merging branches. -__version_suffix__ = "nightly" +__version_suffix__ = "" # The app name will be used to define the name of the default tutor root and # plugin directory. To avoid conflicts between multiple locally-installed diff --git a/tutor/commands/upgrade/__init__.py b/tutor/commands/upgrade/__init__.py index b7a4e028de..44592344a5 100644 --- a/tutor/commands/upgrade/__init__.py +++ b/tutor/commands/upgrade/__init__.py @@ -1,4 +1,4 @@ -# Note: don't forget to change this when we upgrade from quince +# Note: don't forget to change this when we upgrade from redwood OPENEDX_RELEASE_NAMES = [ "ironwood", "juniper", @@ -9,4 +9,5 @@ "olive", "palm", "quince", + "redwood", ] diff --git a/tutor/commands/upgrade/compose.py b/tutor/commands/upgrade/compose.py index b23f3e7058..df54c71d8b 100644 --- a/tutor/commands/upgrade/compose.py +++ b/tutor/commands/upgrade/compose.py @@ -48,6 +48,7 @@ def upgrade_from(context: click.Context, from_release: str) -> None: if running_release == "quince": upgrade_from_quince(context, config) + running_release = "redwood" def upgrade_from_ironwood(context: click.Context, config: Config) -> None: diff --git a/tutor/commands/upgrade/k8s.py b/tutor/commands/upgrade/k8s.py index 19e81243cc..db18835704 100644 --- a/tutor/commands/upgrade/k8s.py +++ b/tutor/commands/upgrade/k8s.py @@ -47,6 +47,7 @@ def upgrade_from(context: click.Context, from_release: str) -> None: if running_release == "quince": upgrade_from_quince(config) + running_release = "redwood" def upgrade_from_ironwood(config: Config) -> None: diff --git a/tutor/env.py b/tutor/env.py index 6f150fd792..4b91d2d539 100644 --- a/tutor/env.py +++ b/tutor/env.py @@ -467,6 +467,7 @@ def get_release(version: str) -> str: "15": "olive", "16": "palm", "17": "quince", + "18": "redwood", }[version.split(".", maxsplit=1)[0]] diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index 65b7e6a2da..6964dedea1 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -53,13 +53,6 @@ RUN git config --global user.email "tutor@overhang.io" \ # Patches in nightly node {%- else %} # Patches in non-nightly mode -# Prevent course structure cache infinite growth -# https://github.com/openedx/edx-platform/pull/34210 -RUN curl -fsSL https://github.com/openedx/edx-platform/commit/ad201cd664b6c722cbefcbda23ae390c06daf621.patch | git am -# Security patch for "Privilege re-escalation in Studio after staff access removed" -# https://github.com/openedx/edx-platform/security/advisories/GHSA-99vw-2wrq-xh9x -# https://discuss.openedx.org/t/upcoming-security-fix-for-edx-platform-on-2024-05-17/13004 -RUN curl -fsSL https://github.com/openedx/edx-platform/commit/3ff69fd5813256f935f19c237ea0c42d4c16edbf.patch | git am {%- endif %} {# Example: RUN curl -fsSL https://github.com/openedx/edx-platform/commit/.patch | git am #} @@ -111,7 +104,7 @@ RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared \ {{ patch("openedx-dockerfile-post-python-requirements") }} # Install scorm xblock -RUN pip install "openedx-scorm-xblock>=17.0.0,<18.0.0" +RUN pip install "openedx-scorm-xblock>=18.0.0,<19.0.0" {% for extra_requirements in OPENEDX_EXTRA_PIP_REQUIREMENTS %} RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared \ diff --git a/tutor/templates/build/openedx/revisions.yml b/tutor/templates/build/openedx/revisions.yml index c01e271e53..d30d0cbc0e 100644 --- a/tutor/templates/build/openedx/revisions.yml +++ b/tutor/templates/build/openedx/revisions.yml @@ -1 +1 @@ -EDX_PLATFORM_REVISION: quince +EDX_PLATFORM_REVISION: redwood diff --git a/tutor/templates/config/defaults.yml b/tutor/templates/config/defaults.yml index c60e9f0e58..a7f70c8948 100644 --- a/tutor/templates/config/defaults.yml +++ b/tutor/templates/config/defaults.yml @@ -61,7 +61,7 @@ OPENEDX_LMS_UWSGI_WORKERS: 2 OPENEDX_MYSQL_DATABASE: "openedx" OPENEDX_MYSQL_USERNAME: "openedx" # the common version will be automatically set to "master" in the nightly branch -OPENEDX_COMMON_VERSION: "open-release/quince.3" +OPENEDX_COMMON_VERSION: "open-release/redwood.1" OPENEDX_EXTRA_PIP_REQUIREMENTS: [] MYSQL_HOST: "mysql" MYSQL_PORT: 3306