Skip to content

Clean up after the local codejail removal #39427

Done

Description

@feanil

Follow-up to #39382, which removed local codejail execution from the platform as part of #36639. We landed that PR as is so it wouldn't hold up #39416, and the rest of the cleanup happens here.

Remove:

  • The debug run_python view: the view in lms/djangoapps/debug/views.py, its URL in lms/urls.py, the lms/templates/debug/run_python_form.html template, the ENABLE_DEBUG_RUN_PYTHON setting in lms/envs/common.py and its entries in both mock.yml files.
  • The xmodule/capa/safe_exec/remote_exec.py shim, which has been deprecated since Verawood.

Both removals need a line in the Willow operator notes: https://openedx.atlassian.net/wiki/spaces/COMM/pages/6476169217/Willow+-+Operator+Dev+Notes The shim line should say that CODE_JAIL_REST_SERVICE_REMOTE_EXEC has to point at xblock_problem.capa.safe_exec.remote_exec.send_safe_exec_request_v0.

Update the docs that still describe local codejail:

  • xmodule/util/sandboxing.py::can_execute_unsafe_code: the docstring and the comment above the loop say a match lets the course run outside the sandbox. Since xblocks-core 3.0.0 a match makes the course's Python fail with ImproperlyConfigured, so update both to say that and link [DEPR]: Local codejail #36639.
  • requirements/README.rst: drop the edx-sandbox paragraph.
  • .github/workflows/check-consistent-dependencies.yml: drop the requirements/edx-sandbox mention from the comment above the requirements/ pattern. The workflow still needs to watch requirements/ for the requirements/edx/*.txt exports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions