Testing custom XBlocks and plugins before an Open edX upgrade

A test plan for custom XBlocks, Tutor plugins, Django app plugins and MFE customizations before a named Open edX release upgrade, so breakages surface in a sandbox instead of production. Effort depends mostly on how much custom code the site carries and how far its releases sit behind the current one.

On this page

Testing custom XBlocks and plugins before an Open edX upgrade starts with a compatibility inventory

Custom code is the main upgrade risk on most Open edX sites, so test every custom XBlock, Tutor plugin, Django app plugin and MFE change in a sandbox before the production upgrade starts. If your team runs custom components that must move to the next named release, the first job is a written inventory of what you have, what each piece depends on and who owns it. Open edX supports only the latest named release and states that it cannot support more than one release at a time, so every custom component has to be brought along with the platform rather than left on an older release. Verawood is the current named release, and the next releases, Willow and Xylon, are listed for December 2026 and June 2027 in the release notes.

Start the inventory with the code you control. For each XBlock, record the repository, the Tutor plugin or Django app it is loaded through, the tutor plugins entries and any settings it adds to LMS_CFG or CMS_CFG, the frontend slots or MFE packages it touches and the Python and Node dependencies it pins. Note which custom pieces use built-in XBlocks or hooks that the release notes mark as changed. Verawood extracted several built-in XBlocks to the xblocks-core repository and planned removal of the deprecated built-in versions for Willow, so any custom XBlock that subclasses or depends on those components needs its own line in the inventory.

Tutor recommends checking that custom plugins are compatible with the newer release and testing the release in a sandboxed environment before upgrading, and the Tutor upgrading guide is the reference for that check. Confirm with your plugin authors and your Tutor version plan which components have a release-compatible version, which need a rewrite and which can be retired. Ask each owner for a named test case and a pass or fail result before you schedule the sandbox upgrade, because an inventory without owners tends to stay incomplete.

What Verawood changes for custom code

This table maps each Verawood change to the custom code it can affect and the test or confirmation to run before upgrading. Read it as a checklist: find the changes that touch your XBlocks, plugins and frontend customizations, then confirm each action in a sandbox copy of your site. Check the release notes for React version changes, since those versions are not listed here.

Verawood changeImpact on custom codeAction to test or confirm
Core XBlocks extracted to xblocks-coreCustom XBlocks that import or subclass extracted built-in XBlocks may fail to load or resolve to a different package path.Import every custom XBlock in a sandbox, confirm each extracted dependency resolves, and record any path changes.
Deprecated built-in XBlock versionsCustom code that depends on deprecated built-in versions will break when those versions are removed in Willow.List every built-in XBlock your courses and custom code use, then plan replacements before the Willow upgrade.
New Studio sidebarCustom Studio plugins, links or sidebar hooks may render in the wrong place or disappear.Open each custom Studio extension in the sandbox and confirm placement, access and behavior.
Redesigned instructor dashboardCustom instructor dashboard tabs or reports may not appear or may lose their data hooks.Log in as an course staff user, open every custom dashboard element, and check the data each one shows.
New frontend plugin slotsExisting MFE customizations may conflict with new slots or need to move to declared slot operations.Review each frontend customization against the release notes and confirm it still renders in the sandbox build.
AI Extensions FrameworkCustom AI-related code or third-party AI features may need configuration or may overlap with the new framework.Confirm which AI settings are active after upgrade and test any custom AI feature for access and data handling.
Tagging and taxonomy managementCustom metadata fields or course tagging code may conflict with the new taxonomy model.Create test tags and taxonomies in the sandbox and confirm your custom fields save, load and export correctly.
React version changesFrontend customizations built on the current React version may need code or dependency changes.Check the Verawood release notes for the React version change and rebuild each MFE customization against it.

What to inventory and back up before testing

These six preparation items form the baseline for an upgrade test. Each one gives the test team a known starting point: what custom code exists, who owns it, what data and images can be restored, and what environment the results apply to. Skip any of them and a failed test becomes hard to diagnose.

Custom code inventory with owners

List every custom XBlock, Tutor plugin, Django app plugin, hook and MFE customization in one register, with the repository, the version or commit it runs, and a named owner who can answer questions during testing. Ownership matters because a plugin with no owner often breaks silently and nobody is positioned to decide whether to fix, replace or retire it. Mark which items are still in use, since dead code still gets tested if it is not listed as retired.

Database and media backup

Take a full database backup and a copy of the media and file storage before any test run, and confirm that the backup restores on a separate host. Test migrations can alter course and user data in ways that are hard to reverse, and the Tutor upgrade path does not support downgrades, so a restorable backup is the only rollback. Record the backup time and checksum so the sandbox restore can be verified against it.

Sandbox that mirrors production

Build a sandbox with the same Tutor configuration, plugin list, settings, identity provider connections and external services as production, using sanitized data where learner records are sensitive. A sandbox that differs in its settings tests a different platform than the one you will upgrade. Document every known difference so test results can be read against it.

Tutor upgrade guidance

Pinned custom image build

Record the exact Tutor version, the base image tags and the custom image build that run production, including any config.yml values and plugin versions that feed the image. Pinning the current build lets you reproduce the existing behavior before changing anything, so any difference after the upgrade can be traced to the new release rather than to drift in dependencies. Store the build inputs in version control alongside the sandbox configuration.

Built-in XBlock usage list

List which built-in XBlocks your courses use, including the course and library components that depend on them. Verawood moved several built-in XBlocks to the xblocks-core repository, and the deprecated built-in versions are planned for removal in Willow, so the list shows which courses are exposed to the extraction. Confirm the exact set of extracted XBlocks against the release notes before drawing conclusions from it.

Verawood developer notes

How to test each kind of custom code

Custom XBlocks run inside both Studio and the LMS, so they need tests at the unit level and at the rendering level. Start with unit tests that exercise the block's grading logic, its handlers and the fields it stores, then confirm the block still renders in each place a learner or course author sees it. The extracted core XBlocks in Verawood matter here too: if your block imports or extends a built-in XBlock that moved to the xblocks-core repository, the import path or base class may change, and the deprecated built-in versions are planned for removal in Willow.

  • Unit tests: Run the block's existing test suite against the new release's dependencies. Add tests for scoring and state if they are missing.
  • Studio rendering: Add the block to a test course, open the authoring view and the preview, and confirm the editor fields save.
  • LMS rendering: Open the student view as a learner and as a staff user, then submit an answer and confirm the score appears in the progress page.
  • State persistence: Save partial answers, reload the page and confirm the stored state and grade survive an upgrade on a copy of production data.
  • Extracted core dependencies: Search the block for imports from built-in XBlocks and check each one against the Verawood developer and operator release notes.

A failure usually looks like a blank student view, a missing editor field, a grade that resets to zero after reload, or a Python import error at startup. Confirm each of these on a sandbox copy before the production upgrade.

How the test run sequence works before production

The sequence turns an upgrade into a series of checkpoints, each with a defined check and rollback point, so the team knows whether custom XBlocks, plugins and MFE customizations behave correctly on the target release before any production change. It ends in a recorded go or no-go decision that the sponsor can review.

  1. Freeze the custom code inventory

    The platform owner and the developers who wrote the custom code list every custom XBlock, Tutor plugin, Django app plugin, MFE customization and forked change, with the version or commit each one is pinned to. Record which components are used in live courses and which are dormant. Freeze the inventory and the current production image tags so the test run has a fixed starting point. The step is done when the inventory is signed off and stored with the upgrade ticket. Rollback point: no change has been made yet, so nothing needs reverting.

  2. Restore a production copy into a sandbox

    The operations team restores a recent production database backup and the media and object storage into a sandbox environment that matches production's Tutor configuration, plugins and hostnames as closely as possible. Confirm the restore by checking course counts, a sample of enrollments and a sample of learner accounts against production. Keep the sandbox isolated from learner email, payment and external integrations so test activity does not reach real users. Rollback point: the sandbox can be discarded and rebuilt from the same backup without touching production.

  3. Upgrade Tutor and rebuild custom images

    The team upgrades Tutor in the sandbox to the version that matches the target Open edX release, checks that each custom plugin is compatible with that release, and rebuilds every custom image from source. Tutor's upgrading guidance recommends confirming plugin compatibility and testing the release in a sandboxed environment before upgrading, so this step follows that order. Record each failing build and its cause. The step is done when all custom images build and the sandbox runs with its custom plugins loaded. Rollback point: the sandbox reverts to the pre-upgrade Tutor version and previous images.

  4. Run the platform migrations

    With the new images running, the team runs the platform database migrations and any release-specific data migration steps documented for the target release, and records the output of each command. Watch for failures in migrations that touch custom models or custom tables, since those belong to your code rather than to the core platform. Check that the services start cleanly and that the logs show no unexpected errors. The step is done when migrations complete and the platform serves the Studio and LMS home pages. Rollback point: restore the sandbox from the backup and re-run the sequence, because downgrades are not supported on Tutor upgrade paths, so you should confirm the exact rollback procedure for your version with the Tutor documentation.

  5. Exercise each custom component with scripted cases

    Testers run written scripts for each custom component. Learner cases cover enrollment, viewing and submitting the custom XBlock, progress and grading, certificates and any custom analytics events. Course team cases cover authoring the component in Studio, editing its settings, duplicating and importing courses that contain it, and checking the instructor dashboard views that depend on it. Check the extracted core XBlocks in the same run, because several built-in XBlocks moved to the xblocks-core repository in Verawood and their deprecated built-in versions are planned for removal in Willow. Each case records pass or fail, the expected result and the evidence. Rollback point: the sandbox is reset to the restored backup between runs so each run starts from the same data.

  6. Fix defects and retest the affected cases

    Developers fix each failed case in the custom code, rebuild the affected images and rerun the scripted cases that touch the change, plus a short regression set covering the core learner and author paths. Log each fix against the case it resolves and note any change to the frozen inventory, since a changed component needs its own test coverage. The step is done when every case is either passing or has a documented, accepted exception. Rollback point: the fix is committed to version control as a separate change, so it can be reverted without rolling back the other fixes.

  7. Record the go or no-go decision

    The platform owner, the security and compliance lead where relevant, and the business sponsor review the test results, the open exceptions and the rollback plan, then record a go or no-go decision in writing. A go decision names the production change window and the backup taken immediately before it. A no-go decision names the blocking defects and the conditions for the next run. The record is kept with the upgrade ticket. Rollback point: a no-go leaves production unchanged, so the work continues in the sandbox until the conditions are met.

How the test environments and gates fit together

The flow starts with a production backup restored into a sandbox, where the upgrade runs on a copy of real data rather than on production. In parallel, the inventory of custom code feeds separate test suites for XBlocks, Tutor plugins, Django app plugins and MFE customizations. Any failure sends the work back to fixes and a rerun of the affected suite. Only when the sandbox upgrade and every suite pass does the go or no-go gate open the production upgrade.

Sandbox upgrade and custom code suites must both pass before the production gate opens.

What a rollback plan must cover when downgrades are unsupported

Your rollback point is the verified backup taken before the upgrade and the sandbox result that shows the upgrade worked on a copy of your site, not a downgrade. Tutor's upgrade guidance asks you to check that custom plugins are compatible with the newer release and to test the release in a sandboxed environment before upgrading production, so the sandbox run is where your restore path gets rehearsed. Treat the production backup and the sandbox run as a pair: the backup is what you restore, and the sandbox run is the evidence that the code you deploy at that point behaves as expected. Before the upgrade starts, record what you need to rebuild or restore the site: the Tutor version in use, a copy of the configuration, the commit of every custom XBlock, Tutor plugin, Django app plugin and MFE customization, and the digest of each custom image you built.

Keep the evidence in one place that the sign-off owner can read without asking an engineer. It should include the test results for each custom XBlock and plugin, the plugin and dependency versions in the sandbox and in the target build, the image digests that the production deployment will pull, the database and file storage backup identifiers, and the named person who approved the production cutover. Ask your team to confirm the restore procedure in your own environment: how long a restore takes, whether the database and media or object storage snapshots are taken at the same point, and what learner activity written after the backup is lost if you restore. Those answers come from your infrastructure and your backup tooling, not from the upgrade guidance, so check them in a dry run rather than assuming them.

Decide before the cutover whether a failure will be fixed forward or handled by restoring from backup, and write the criteria into the plan. An illustrative rule: if a failing custom XBlock or plugin has a tested patch, the core data migrations completed without errors, and no course or learner data was altered, fix forward and redeploy the corrected images. If a data migration stopped partway, if learner or course records look inconsistent, or if the fix depends on untested changes, restore from the verified backup and rerun the upgrade from the sandbox-proven build. Name the person who makes that call, the time limit after which the team switches to restore, and the communication to learners and course teams. Without those decisions written down, teams often keep patching under pressure while the data drifts further from the backup.

What makes custom code testing take longer

This table lists the factors that most change how much testing a custom Open edX codebase needs before an upgrade. Read each row as a question to answer about your own code: the more a driver applies, the wider the test plan and the more time it takes. The main takeaway is that the number of custom components matters less than how deeply they depend on core behavior that changed between releases.

DriverEffect on testing effortHow to keep it down
Custom XBlocks using extracted built-in XBlocksRaises effort when XBlocks import or subclass built-in components that moved to the xblocks-core repository in Verawood, since those imports need checking and the deprecated built-in versions are planned for removal in WillowInventory every import of built-in XBlocks, replace them with the extracted packages where possible, and record each dependency
Number of Tutor plugins and hooksRaises effort with each plugin, because every plugin must be checked for compatibility with the newer release and its patches or hooks may target changed templates or settingsKeep plugins small, list each one with its owner and the Open edX settings it touches, and remove unused ones before testing
Django app plugins that touch models or settingsRaises effort most when they add migrations, override models, or read settings that were renamed or removed, because data and configuration tests become necessaryLimit model changes, document every setting read, and keep plugin migrations in version control
MFE slot customizationsRaises effort when slot operations depend on React or frontend plugin APIs that changed between releases, since each customized slot needs a visual and functional checkCount the slots in use, confirm they are declared in the current frontend framework, and test each one in a built MFE bundle
Size of the production databaseRaises effort when custom XBlock state, course data or plugin tables are large, because migration rehearsals take longer and must run against realistic copiesAsk for a sanitized copy of production for rehearsal, and confirm which custom tables grow fastest
Lack of automated testsRaises effort sharply, because each custom component must be tested by hand in a sandbox and regressions are found laterAdd unit tests for XBlock handlers and plugin logic, and smoke tests for key learner and author flows before the upgrade starts
Original authors no longer on the teamRaises effort when nobody knows why a customization exists or how it interacts with core, so the team must reverse-engineer behavior before judging whether it still worksDocument intent and dependencies now, assign an owner for each component, and confirm whether a partner can review the code

Questions teams ask before testing custom code for an Open edX upgrade

How much effort and cost does testing custom code add to an Open edX upgrade?

Testing adds work in proportion to how much custom code you run and how many of its parts depend on the release you are leaving. The main cost components are the time to inventory custom XBlocks, Tutor plugins, Django app plugins and MFE customizations, the time to build and run a sandbox that matches production, the time to fix what fails, and the time to retest after each fix. Most of this is one-time work for the upgrade, but a sandbox and a repeatable test suite can be reused for later releases, which lowers the cost of future cycles. When you request a quote, ask for the inventory, the sandbox build, the test cases per component type, the fixes in scope, and whether retesting is included. Also ask who pays for fixes to code the vendor did not write.

How long does a test cycle for custom code take, and what sets its length?

The length depends on the number of custom components, how many of them touch changed APIs, and how well the existing code is covered by automated tests. Teams with a documented inventory and tests that already run in continuous integration typically finish faster than teams that must discover behavior by hand. Other drivers include the number of MFE customizations that need a rebuild, whether a database copy is available for migration rehearsals, how many stakeholders must sign off on course behavior, and how long your own release approvals take. Tutor recommends checking plugin compatibility with the newer release and testing it in a sandboxed environment before upgrading, so the sandbox step is not optional. Ask for a written plan with a start point, the components covered, and the exit criteria before agreeing to a schedule.

What must our team provide before testing starts?

You need to provide four things: the source code for every custom XBlock, Tutor plugin, Django app plugin and MFE customization, a named owner for each component who can answer behavior questions, a sandbox environment that runs the current release, and a copy of the database that reflects real course and learner data with personal information handled under your own policies. Without the code, the test team cannot build or inspect anything. Without owners, failures take longer to classify as bugs or intended behavior. Without a sandbox, results will not predict production. Without a database copy, migration problems tend to appear only after cutover. Tutor's upgrade guidance recommends testing in a sandboxed environment before upgrading, which is why the sandbox is the first item to confirm.

Can our internal engineers test custom code for an upgrade on their own?

Yes, if they have the skills and time, and the work is well defined. Internal teams know their code and their courses, which helps with judgment calls. The gaps usually are not in writing tests but in keeping the sandbox current with the target release, reading changed release notes for each component type, and running the upgrade rehearsal alongside normal duties. The release notes for each named Open edX release list changes to developer and operator behavior, and the extracted built-in XBlocks in Verawood are an example of a change that affects custom code indirectly. Decide early who owns the test plan, who signs off on results and who handles fixes. If those roles are not clear, an outside partner can run the plan, but your team should still own sign-off and the code.

What happens when a plugin has no release for the new Open edX version?

The component cannot be upgraded as-is, and you have three paths to evaluate: wait for a compatible release from its maintainers, port the behavior to a supported extension point, or retire the feature. Open edX states that the latest named release is the only supported release, so staying on an older release to keep the plugin is not a long-term option. Check the plugin's repository for a release or open issue, and confirm whether its maintainers plan support. If you own the plugin, estimate the rewrite against the new interfaces, including any changes to React versions in MFE code or extracted core XBlocks. Record the decision, the owner and the test evidence in the upgrade plan so the risk is visible before cutover.

Which parts of custom code are most likely to break in a new release?

Changes to dependencies and interfaces break code most often. For XBlocks, the risk is highest where the code depends on built-in XBlocks that were extracted to the xblocks-core repository in Verawood, and where deprecated built-in versions are planned for removal in Willow. For MFE customizations, React version changes and slot or plugin API changes can break builds even when the logic is unchanged. For Tutor plugins, check hooks and configuration keys against the release's notes. Django app plugins are sensitive to changes in the platform's Python and Django code. Start with the release's developer and operator release notes, then test the components that touch those areas first.

Should we test custom code before or after we decide to fork edx-platform?

Decide before the test plan is final, because a fork changes what must be tested. Custom changes in a forked edx-platform must be rebased onto the next release, and Tutor images must be built from the fork, so the test scope grows to include the rebase conflicts and the image build. Where a change can become a Tutor plugin or hook, the test scope usually shrinks because the plugin is isolated from core code. Ask for a review of each fork change to decide whether it should stay, become a plugin, or be dropped before the upgrade tests begin.

When an outside team helps with custom code upgrade testing

An outside team adds the most value when the custom code cannot be tested by the people who own it today. The common cases are a set of custom XBlocks written by staff who have since left, Tutor plugins or Django app plugins with no active maintainer, and MFE customizations that still depend on the legacy frontend-plugin-framework env.config.jsx files and need to move to the newer frontend-base stack. In each case the first task is inventory: which components exist, which Open edX APIs they import, which settings and feature toggles they read, and which of them are still used by learners or course teams. Confirm that inventory with your own team before any partner is engaged, because the quality of the scope depends on it.

A partner is also useful when the upgrade must produce evidence. Compliance, security and internal audit teams often ask for a record of what was tested, against which release, with what results and who approved the outcome. Building that record means writing a test matrix that maps each custom component to its dependencies, running the sandbox upgrade described in the Tutor upgrading documentation, and keeping logs of failures, fixes and retests. Ask any partner how they would structure this record and who in your organization owns sign-off. Several built-in XBlocks were extracted to the xblocks-core repository in Verawood, so if your components depend on them, confirm that dependency early.

The practical next step is the scoping conversation. Bring the component inventory, the Tutor version and plugin list you run today, the target Open edX release, and any MFE forks or Django apps you maintain. A written scope should state which components are in the test plan, which environments are used, what evidence is delivered and what happens if a fix is needed during the retest. DeployOpen provides a quote once the scope is agreed in writing, so ask for the scope, deliverables and timeline in that document rather than comparing informal estimates.

How DeployOpen works on this

DeployOpen scopes custom code upgrade testing as a written, fixed-scope piece of work that covers your XBlocks, Tutor plugins, Django app plugins and MFE customizations for the release you are moving to. We build the test environment in infrastructure you control, run the checks, and hand over a documented result you can take into your own change process.

How we scope

  • We inventory every custom XBlock, Tutor plugin, Django app plugin and MFE customization against the current and target releases.
  • The written scope names which extracted core XBlocks, React version changes and plugin hooks are in and out of testing.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.

How we build

  • We build a sandboxed copy of your Tutor deployment so the upgrade is rehearsed before anything touches production.
  • We run compatibility checks on each custom component and record every failure with its cause and proposed fix.
  • We test the MFE customizations and the XBlocks against the new release in the sandbox, including the learner and course team paths you use.

How we hand over

  • You receive a test report listing each component, the test cases run, the results and the open issues.
  • You receive the fixes we made, the sandbox configuration and a runbook for repeating the test before the production upgrade.
  • We document any plugin or XBlock changes so your team can review, own and maintain them after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer for sites that upgrade on a regular cycle.
  • A retainer can cover the next named release, so the test plan carries forward instead of being rebuilt each time.
  • Ask us to confirm the release-specific steps and dates against the official Open edX and Tutor documentation for your target version.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.