
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: unstable
Observed behavior
Errors and logs
FAILED test_restore_channel.py::QTIRestoreTestCase::test_dual_published_node_restores_each_question_once
FAILED test_restore_channel.py::QTIRestoreTestCase::test_qti_only_node_restores_editor_and_legacy_items_as_qti
SUBFAILED(order=1) test_restore_channel.py::QTIRestoreTestCase::test_perseus_question_in_package_restores_as_perseus_question
E AssertionError: '<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<qti-assess[1250 chars]tem>' != '<?xml version="1.0" encoding="UTF-8"?><qti-assessment-i[1247 chars]tem>'
contentcuration/contentcuration/tests/test_restore_channel.py:417: AssertionError
User-facing consequences
- CI is red for every Studio PR, so real regressions in the Python suite are hidden.
Steps to reproduce
- Check out
unstable at 51657a6d9.
- Run
pytest contentcuration/contentcuration/tests/test_restore_channel.py -k QTIRestore.
Acceptance Criteria
AI usage
Claude Code found the failure while fixing CI on #6273, bisected it to the #6241/#6243 merge, and drafted this issue.
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: unstable
Observed behavior
raw_databy passing the packaged XML throughrewrite_qti_media_paths(import_tools.py#L585-L588, from Restore QTI exercises when restoring a channel #6243).rewrite_qti_media_pathsreparses the item and returns lxml's serialization (media.py#L33-L34), so the restoredraw_datadiffers from the source item's.unstablesince then, and on every PR based on it.Errors and logs
User-facing consequences
Steps to reproduce
unstableat51657a6d9.pytest contentcuration/contentcuration/tests/test_restore_channel.py -k QTIRestore.Acceptance Criteria
pytest contentcuration/contentcuration/tests/test_restore_channel.pypasses onunstable.raw_dataequals its source item'sraw_data.AI usage
Claude Code found the failure while fixing CI on #6273, bisected it to the #6241/#6243 merge, and drafted this issue.