Skip to content

Move CAPA code and static assets from edx-platform to xblocks-contrib/problem - #38045

Merged
kdmccormick merged 1 commit into
masterfrom
purge-xmodule/capa
Mar 10, 2026
Merged

kdmccormick merged 1 commit into
masterfrom
purge-xmodule/capa

Conversation

@irtazaakram

@irtazaakram irtazaakram commented Feb 24, 2026 •

Copy link
Copy Markdown
Member

This PR removes the following folders from edx-platform:

  • xmodule/capa/
  • common/static/applets/capa/
  • common/static/images/capa/
  • common/static/js/capa/

These directories have been moved to xblocks-contrib/problem as-is and will now be maintained and used from there.

All relevant imports in edx-platform have been updated to reference the new paths in xblocks-contrib/problem.

This removes duplication and consolidates CAPA-related code and static assets within the Problem XBlock repository.

TESTING

GUILDINES:
Problem XBlock Testing.txt

DATA:
Problem Block Test Data.zip

Settings

XQUEUE_DOCKER_IMAGE: docker.io/overhangio/openedx-xqueue:21.0.0
CODEJAIL_ENABLE_K8S_DAEMONSET: true

Tutor requirements

pip install git+https://github.com/irtazaakram/tutor-xqueue.git@fix-url
pip install git+https://github.com/eduNEXT/tutor-contrib-codejail.git@main
tutor plugins enable codejail xqueue

@irtazaakram irtazaakram added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Feb 24, 2026
Comment thread openedx/envs/common.py Resolved
@irtazaakram irtazaakram added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Feb 25, 2026
@irtazaakram
irtazaakram force-pushed the purge-xmodule/capa branch 2 times, most recently from 90d5d48 to 2f73347 Compare February 26, 2026 10:07
@kaustavb12 kaustavb12 added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Feb 26, 2026
@irtazaakram irtazaakram added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Feb 26, 2026
@irtazaakram
irtazaakram changed the base branch from master to remove-capa-folders February 26, 2026 14:25
@kaustavb12 kaustavb12 added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Feb 26, 2026
@irtazaakram irtazaakram added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Feb 26, 2026
@irtazaakram
irtazaakram changed the base branch from remove-capa-folders to master March 3, 2026 07:28
@irtazaakram
irtazaakram force-pushed the purge-xmodule/capa branch 2 times, most recently from c1c0a13 to 64d2479 Compare March 3, 2026 08:49
@irtazaakram irtazaakram moved this to 👀 In review in Aximprovements Team Mar 4, 2026
@irtazaakram irtazaakram self-assigned this Mar 4, 2026
@irtazaakram
irtazaakram marked this pull request as ready for review March 10, 2026 11:29

@farhan farhan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR seems alright to me.
I am trusting on Irtaza's testing.

Looking forward to the Final Extracted Problem Block Sandbox.

@kdmccormick
kdmccormick merged commit cd733fe into master Mar 10, 2026
69 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Aximprovements Team Mar 10, 2026
@kdmccormick
kdmccormick deleted the purge-xmodule/capa branch March 10, 2026 13:58
taimoor-ahmed-1 pushed a commit to edly-io/edx-platform that referenced this pull request Mar 18, 2026
This commit removes the following folders:

* `xmodule/capa/`
* `common/static/applets/capa/`
* `common/static/images/capa/`
* `common/static/js/capa/`

These directories have been moved to `xblocks-contrib/problem` as-is and will
now be maintained and used from there. All relevant imports in openedx-platform
have been updated to reference the new paths in `xblocks-contrib/problem`. This
removes duplication and consolidates CAPA-related code and static assets within
the same repository as the Problem XBlock.

Part of: openedx#36538
blarghmatey added a commit to mitodl/mitx-grading-library that referenced this pull request Nov 18, 2026
…er (#362)

* Run the Tutor integration test on PRs against Ulmo, Verawood and master

The monthly run has failed since at least September: it only had a
schedule trigger but imported the course from the pull request's head
repo and ref, which are empty on a schedule, and it pinned Tutor below
20 (Sumac). python_lib.zip is also no longer committed. This runs it on
PRs that touch the library or the demo course, monthly and by hand,
against Tutor 21 (Ulmo), 22 (Verawood) and Tutor main (edx-platform
master), and imports the course from the checkout with the zip built
into it.

Claude-Session: https://claude.ai/code/session_01FGZebDvGwVSXfw1tvwmscW

* Fix the integration test on Verawood and Tutor main

safe_exec moved out of xmodule.capa in openedx/openedx-platform#38045, so
the import fails on Verawood and master. No codejail plugin release
allows Tutor main yet, so pip can't resolve the master row; it now
installs the Verawood plugin without its tutor requirement.

Claude-Session: https://claude.ai/code/session_01FGZebDvGwVSXfw1tvwmscW

* Name the modules and packages safe_exec comes from

Claude-Session: https://claude.ai/code/session_01FGZebDvGwVSXfw1tvwmscW
feanil added a commit to feanil/openedx-platform that referenced this pull request Nov 25, 2026
The shim was added in openedx#38045 when capa moved to xblocks-core, so that
deployments with CODE_JAIL_REST_SERVICE_REMOTE_EXEC pointing at the old
module path kept working.  It has warned since Verawood, and the default
already points at the new path.

Closes part of openedx#39427
Shim added in openedx#38045

BREAKING CHANGE: the xmodule.capa.safe_exec.remote_exec module is gone,
so code that imports it directly breaks.  A
CODE_JAIL_REST_SERVICE_REMOTE_EXEC setting that still points at
xmodule.capa.safe_exec.remote_exec.send_safe_exec_request_v0, or at
xblocks_contrib.problem.capa.safe_exec.remote_exec.send_safe_exec_request_v0
as the Verawood warning suggested, keeps working: xblocks-core can't
import it and falls back to the default sender.  Remove the override,
or point it at
xblock_problem.capa.safe_exec.remote_exec.send_safe_exec_request_v0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants