Skip to content

fix: upgrade ora2 dependency to version 6.17.2 and remove loremipsum d… - #307

Merged
alenkadev merged 8 commits into
release-ulmofrom
alenka/fixing-edx-platform-workflow
May 31, 2026
Merged

fix: upgrade ora2 dependency to version 6.17.2 and remove loremipsum d…#307
alenkadev merged 8 commits into
release-ulmofrom
alenka/fixing-edx-platform-workflow

Conversation

@alenkadev

@alenkadev alenkadev commented May 27, 2026

Copy link
Copy Markdown

Description

This PR upgrades the ora2 (Open Response Assessment) XBlock from version 6.16.4 to 6.17.2 which matches the upstream-PR, which removes the loremipsum dependency. This change fixes the ModuleNotFoundError: No module named 'pkg_resources' error that was occurring in the translation extraction GitHub Actions workflow.

Root Cause:
The older version of ora2 (6.16.4) depended on loremipsum==1.0.5, which imports pkg_resources from setuptools during its build/installation process. When the CI workflow attempted to install dependencies without setuptools being explicitly installed first, the build would fail.

Changes:

  • Updated requirements/edx/base.txt: Upgraded ora2==6.16.4 to ora2==6.17.2
  • Removed loremipsum==1.0.5 from requirements/edx/base.txt (no longer needed)

jira link: https://2u-internal.atlassian.net/browse/AU-2810

Copilot AI review requested due to automatic review settings May 27, 2026 09:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the bundled Open Response Assessment XBlock dependency to avoid the removed loremipsum transitive dependency and address the translation extraction workflow failure.

Changes:

  • Raises ora2 minimum version in bundled requirements input.
  • Updates the base compiled requirement from ora2==6.16.4 to ora2==7.0.0.
  • Removes loremipsum from the base compiled requirements.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
requirements/edx/bundled.in Raises the bundled ora2 requirement floor to 7.0.0.
requirements/edx/base.txt Updates the compiled base lockfile for ora2 and removes loremipsum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread requirements/edx/base.txt Outdated
Copilot AI review requested due to automatic review settings May 27, 2026 09:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread requirements/edx/doc.txt Outdated
Comment thread requirements/edx/base.txt
@alenkadev alenkadev changed the title fix: upgrade ora2 dependency to version 7.0.0 and remove loremipsum d… fix: upgrade ora2 dependency to version 6.17.2 and remove loremipsum d… May 27, 2026
Copilot AI review requested due to automatic review settings May 28, 2026 01:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comment thread Makefile Outdated
Comment thread requirements/edx/bundled.in Outdated
@michaelroytman

Copy link
Copy Markdown
Member

Also, if you could include a link to the upstream PR in your PR description, that would be great!

Copilot AI review requested due to automatic review settings May 29, 2026 13:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread requirements/edx/base.txt
optimizely-sdk==5.2.0
# via -r requirements/edx/bundled.in
ora2==6.16.4
ora2==6.17.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hm. Copilot is right that bundle.in is included in base.in, but I assume that the override here is good enough, especially because this is how the requirements are written in openedx/edx-platform.

If this doesn't fix it and we still run into issues, we could consider addressing this issue and contributing the change upstream.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for catching this. bundled.in is included via base.in, so I agree there is a theoretical possibility of future resolves selecting a different version. However, this override pattern matches the current approach used in upstream edx-platform, and the explicit pin in base.txt ensures the compiled requirements use ora2==6.17.2. Given that, I'd prefer to keep this aligned with upstream for now and revisit updating the source constraint if we continue to see dependency resolution issues.

@alenkadev

Copy link
Copy Markdown
Author

Also, if you could include a link to the upstream PR in your PR description, that would be great!

sure, I will do that!

Comment thread requirements/edx/base.txt
optimizely-sdk==5.2.0
# via -r requirements/edx/bundled.in
ora2==6.16.4
ora2==6.17.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hm. Copilot is right that bundle.in is included in base.in, but I assume that the override here is good enough, especially because this is how the requirements are written in openedx/edx-platform.

If this doesn't fix it and we still run into issues, we could consider addressing this issue and contributing the change upstream.

@alenkadev
alenkadev merged commit 43b77d4 into release-ulmo May 31, 2026
64 checks passed
@alenkadev
alenkadev deleted the alenka/fixing-edx-platform-workflow branch May 31, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants